diff --git a/.drone.yml b/.drone.yml
index 672c3c821..57514a086 100644
--- a/.drone.yml
+++ b/.drone.yml
@@ -1,18 +1,55 @@
+---
+### Drone configuration file for GoToSocial.
+### Connects to https://drone.superseriousbusiness.org to perform testing, linting, and automatic builds/pushes to docker.
+###
+### For documentation on drone, see: https://docs.drone.io/
+### For documentation on drone docker pipelines in particular: https://docs.drone.io/pipeline/docker/overview/
+
kind: pipeline
type: docker
-name: dockerpublish
+name: default
steps:
- - name: publish image
- image: plugins/docker
- settings:
- auto_tag: true
- username:
- from_secret: gts_docker_username
- password:
- from_secret: gts_docker_password
- repo: superseriousbusiness/gotosocial
- tags: latest
- when:
- event:
- exclude:
- - pull_request
+
+# We use golangci-lint for linting.
+# See: https://golangci-lint.run/
+- name: lint
+ image: golangci/golangci-lint:v1.41.1
+ commands:
+ - golangci-lint run --timeout 5m0s --tests=false --verbose
+
+- name: test
+ image: golang:1.16.4
+ environment:
+ GTS_DB_ADDRESS: postgres
+ commands:
+ # `-count 1` => run all tests at least once
+ # `-p 1` => run maximum one test at a time
+ # `./...` => run all tests
+ - go test -count 1 -p 1 ./...
+
+- name: publish
+ image: plugins/docker
+ settings:
+ auto_tag: true
+ username: gotosocial
+ password:
+ from_secret: gts_docker_password
+ repo: superseriousbusiness/gotosocial
+ tags: latest
+ when:
+ event:
+ exclude:
+ - pull_request
+
+services:
+# We need this postgres service running for the test step.
+# See: https://docs.drone.io/pipeline/docker/syntax/services/
+- name: postgres
+ image: postgres
+ environment:
+ POSTGRES_PASSWORD: postgres
+---
+kind: signature
+hmac: 78dd20d97444a9e2904552d56eb52f43ad30ba27e1d897a5ea6808971f9a0ae2
+
+...
diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml
deleted file mode 100644
index aa5ee2124..000000000
--- a/.github/workflows/golangci-lint.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: golangci-lint
-on:
- push:
- tags:
- - v*
- branches:
- - main
- pull_request:
-jobs:
- golangci:
- name: lint
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v2
- - name: golangci-lint
- uses: golangci/golangci-lint-action@v2
- with:
- # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version
- version: v1.29
-
- # Optional: working directory, useful for monorepos
- # working-directory: somedir
-
- # Optional: golangci-lint command line arguments.
- # args: --issues-exit-code=0
-
- # Optional: show only new issues if it's a pull request. The default value is `false`.
- # only-new-issues: true
-
- # Optional: if set to true then the action will use pre-installed Go.
- # skip-go-installation: true
-
- # Optional: if set to true then the action don't cache or restore ~/go/pkg.
- # skip-pkg-cache: true
-
- # Optional: if set to true then the action don't cache or restore ~/.cache/go-build.
- # skip-build-cache: true
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index c09832bfb..97220f221 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -10,9 +10,7 @@ Check the [issues](https://github.com/superseriousbusiness/gotosocial/issues) to
## Communications
-Before starting on something, please comment on an issue to say that you're working on it, and send a message to `@dumpsterqueer@ondergrond.org` (Mastodon) to let them know.
-
-You can also drop into the GoToSocial Matrix room [here](https://matrix.to/#/!mdShFtfScQvVSmjIKX:ondergrond.org?via=ondergrond.org).
+Before starting on something, please comment on an issue to say that you're working on it, and/or drop into the GoToSocial Matrix room [here](https://matrix.to/#/#gotosocial:superseriousbusiness.org).
This is the recommended way of keeping in touch with other developers, asking direct questions about code, and letting everyone know what you're up to.
@@ -36,6 +34,38 @@ If there are no errors, great, you're good to go!
To work with the stylesheet for templates, you need [Node.js](https://nodejs.org/en/download/), then run `yarn install` in `web/source/`. Recompiling the bundle.css is `node build.js` but can be automated with [nodemon](https://www.npmjs.com/package/nodemon) on file change: `nodemon -w style.css build.js`.
+### Golang forking quirks
+
+One of the quirks of Golang is that it relies on the source management path being the same as the one used within `go.mod` and in package imports within individual Go files. This makes working with forks a bit awkward.
+
+Let's say you fork GoToSocial to `github.com/yourgithubname/gotosocial`, and then clone that repository to `~/go/src/github.com/yourgithubname/gotosocial`. You will probably run into errors trying to run tests or build, so you might change your `go.mod` file so that the module is called `github.com/yourgithubname/gotosocial` instead of `github.com/superseriousbusiness/gotosocial`. But then this breaks all the imports within the project. Nightmare! So now you have to go through the source files and painstakingly replace `github.com/superseriousbusiness/gotosocial` with `github.com/yourgithubname/gotosocial`. This works OK, but when you decide to make a pull request against the original repo, all the changed paths are included! Argh!
+
+The correct solution to this is to fork, then clone the upstream repository, then set `origin` of the upstream repository to that of your fork.
+
+See [this blogpost](https://blog.sgmansfield.com/2016/06/working-with-forks-in-go/) for more details.
+
+In case this post disappears, here are the steps (slightly modified):
+
+>
+> Pull the original package from the canonical place with the standard go get command:
+>
+> `go get github.com/superseriousbusiness/gotosocial`
+>
+> Fork the repository on Github or set up whatever other remote git repo you will be using. In this case, I would go to Github and fork the repository.
+>
+> Navigate to the top level of the repository on your computer. Note that this might not be the specific package you’re using:
+>
+> `cd $GOPATH/src/github.com/superseriousbusiness/gotosocial`
+>
+> Rename the current origin remote to upstream:
+>
+> `git remote rename origin upstream`
+>
+> Add your fork as origin:
+>
+> `git remote add origin git@github.com/yourgithubname/gotosocial`
+>
+
## Setting up your test environment
GoToSocial provides a [testrig](https://github.com/superseriousbusiness/gotosocial/tree/main/testrig) with a bunch of mock packages you can use in integration tests.
diff --git a/Dockerfile b/Dockerfile
index 21d704c38..9f220fd2c 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -12,8 +12,11 @@ ADD cmd /go/src/github.com/superseriousbusiness/gotosocial/cmd
ADD internal /go/src/github.com/superseriousbusiness/gotosocial/internal
ADD testrig /go/src/github.com/superseriousbusiness/gotosocial/testrig
ADD docs/swagger.go /go/src/github.com/superseriousbusiness/gotosocial/docs/swagger.go
+
+# dependencies and vendor
ADD go.mod /go/src/github.com/superseriousbusiness/gotosocial/go.mod
ADD go.sum /go/src/github.com/superseriousbusiness/gotosocial/go.sum
+ADD vendor /go/src/github.com/superseriousbusiness/gotosocial/vendor
# move .git dir and version for versioning
ADD .git /go/src/github.com/superseriousbusiness/gotosocial/.git
diff --git a/README.md b/README.md
index c99f31c06..f336b440a 100644
--- a/README.md
+++ b/README.md
@@ -107,6 +107,10 @@ Proper documentation for running and maintaining GoToSocial will be forthcoming
For now (if you want to run it pre-alpha, like a beast), check out the [quick and dirty getting started guide](https://docs.gotosocial.org/en/latest/installation_guide/quick_and_dirty/).
+## Contributing
+
+You wanna contribute to GtS? Great! ❤️❤️❤️ Check out the issues page to see if there's anything you wanna jump in on, and read the [CONTRIBUTING.md](./CONTRIBUTING.md) file for guidelines and setting up your dev environment.
+
## Contact
For questions and comments, you can [join our Matrix channel](https://matrix.to/#/#gotosocial:superseriousbusiness.org) at `#gotosocial:superseriousbusiness.org`. This is the quickest way to reach the devs. You can also mail [admin@gotosocial.org](mailto:admin@gotosocial.org).
diff --git a/internal/api/client/media/mediacreate_test.go b/internal/api/client/media/mediacreate_test.go
index a61a36324..5c48a4381 100644
--- a/internal/api/client/media/mediacreate_test.go
+++ b/internal/api/client/media/mediacreate_test.go
@@ -156,7 +156,7 @@ func (suite *MediaCreateTestSuite) TestStatusCreatePOSTImageHandlerSuccessful()
}
// check response
- suite.EqualValues(http.StatusAccepted, recorder.Code)
+ suite.EqualValues(http.StatusOK, recorder.Code)
result := recorder.Result()
defer result.Body.Close()
diff --git a/internal/api/client/status/statuscreate_test.go b/internal/api/client/status/statuscreate_test.go
index 603432724..c175a54ec 100644
--- a/internal/api/client/status/statuscreate_test.go
+++ b/internal/api/client/status/statuscreate_test.go
@@ -93,13 +93,13 @@ func (suite *StatusCreateTestSuite) TestPostNewStatus() {
ctx.Set(oauth.SessionAuthorizedAccount, suite.testAccounts["local_account_1"])
ctx.Request = httptest.NewRequest(http.MethodPost, fmt.Sprintf("http://localhost:8080/%s", status.BasePath), nil) // the endpoint we're hitting
ctx.Request.Form = url.Values{
- "status": {"this is a brand new status! #helloworld"},
- "spoiler_text": {"hello hello"},
- "sensitive": {"true"},
- "visibility_advanced": {"mutuals_only"},
- "likeable": {"false"},
- "replyable": {"false"},
- "federated": {"false"},
+ "status": {"this is a brand new status! #helloworld"},
+ "spoiler_text": {"hello hello"},
+ "sensitive": {"true"},
+ "visibility": {string(model.VisibilityMutualsOnly)},
+ "likeable": {"false"},
+ "replyable": {"false"},
+ "federated": {"false"},
}
suite.statusModule.StatusCreatePOSTHandler(ctx)
@@ -120,7 +120,7 @@ func (suite *StatusCreateTestSuite) TestPostNewStatus() {
assert.Equal(suite.T(), "hello hello", statusReply.SpoilerText)
assert.Equal(suite.T(), "
this is a brand new status! #helloworld
", statusReply.Content)
assert.True(suite.T(), statusReply.Sensitive)
- assert.Equal(suite.T(), model.VisibilityPrivate, statusReply.Visibility)
+ assert.Equal(suite.T(), model.VisibilityPrivate, statusReply.Visibility) // even though we set this status to mutuals only, it should serialize to private, because masto has no idea about mutuals_only
assert.Len(suite.T(), statusReply.Tags, 1)
assert.Equal(suite.T(), model.Tag{
Name: "helloworld",
@@ -161,13 +161,11 @@ func (suite *StatusCreateTestSuite) TestPostAnotherNewStatus() {
b, err := ioutil.ReadAll(result.Body)
assert.NoError(suite.T(), err)
- fmt.Println(string(b))
-
statusReply := &model.Status{}
err = json.Unmarshal(b, statusReply)
assert.NoError(suite.T(), err)
- assert.Equal(suite.T(), "#test alright, should be able to post #links with fragments in them now, let's see........
docs.gotosocial.org/en/latest/user_guide/posts/#links
#gotosocial
(tobi remember to pull the docker image challenge)
", statusReply.Content)
+ assert.Equal(suite.T(), "\u003cp\u003e\u003ca href=\"http://localhost:8080/tags/test\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\"\u003e#\u003cspan\u003etest\u003c/span\u003e\u003c/a\u003e alright, should be able to post \u003ca href=\"http://localhost:8080/tags/links\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\"\u003e#\u003cspan\u003elinks\u003c/span\u003e\u003c/a\u003e with fragments in them now, let\u0026#39;s see........\u003cbr/\u003e\u003cbr/\u003e\u003ca href=\"https://docs.gotosocial.org/en/latest/user_guide/posts/#links\" rel=\"noopener nofollow noreferrer\" target=\"_blank\"\u003edocs.gotosocial.org/en/latest/user_guide/posts/#links\u003c/a\u003e\u003cbr/\u003e\u003cbr/\u003e\u003ca href=\"http://localhost:8080/tags/gotosocial\" class=\"mention hashtag\" rel=\"tag nofollow noreferrer noopener\" target=\"_blank\"\u003e#\u003cspan\u003egotosocial\u003c/span\u003e\u003c/a\u003e\u003cbr/\u003e\u003cbr/\u003e(tobi remember to pull the docker image challenge)\u003c/p\u003e", statusReply.Content)
}
func (suite *StatusCreateTestSuite) TestPostNewStatusWithEmoji() {
diff --git a/internal/federation/federator_test.go b/internal/federation/federator_test.go
index d74070487..cb21d44c2 100644
--- a/internal/federation/federator_test.go
+++ b/internal/federation/federator_test.go
@@ -19,18 +19,13 @@
package federation_test
import (
- "bytes"
"context"
- "crypto/x509"
- "encoding/pem"
- "fmt"
- "io/ioutil"
"net/http"
"net/http/httptest"
- "strings"
"testing"
"github.com/go-fed/activity/pub"
+ "github.com/go-fed/httpsig"
"github.com/sirupsen/logrus"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/suite"
@@ -117,63 +112,31 @@ func (suite *ProtocolTestSuite) TestAuthenticatePostInbox() {
sendingAccount := suite.accounts["remote_account_1"]
inboxAccount := suite.accounts["local_account_1"]
- encodedPublicKey, err := x509.MarshalPKIXPublicKey(sendingAccount.PublicKey)
- assert.NoError(suite.T(), err)
- publicKeyBytes := pem.EncodeToMemory(&pem.Block{
- Type: "PUBLIC KEY",
- Bytes: encodedPublicKey,
- })
- publicKeyString := strings.ReplaceAll(string(publicKeyBytes), "\n", "\\n")
-
- // for this test we need the client to return the public key of the activity creator on the 'remote' instance
- responseBodyString := fmt.Sprintf(`
- {
- "@context": [
- "https://www.w3.org/ns/activitystreams",
- "https://w3id.org/security/v1"
- ],
-
- "id": "%s",
- "type": "Person",
- "preferredUsername": "%s",
- "inbox": "%s",
-
- "publicKey": {
- "id": "%s",
- "owner": "%s",
- "publicKeyPem": "%s"
- }
- }`, sendingAccount.URI, sendingAccount.Username, sendingAccount.InboxURI, sendingAccount.PublicKeyURI, sendingAccount.URI, publicKeyString)
-
- // create a transport controller whose client will just return the response body string we specified above
- tc := testrig.NewTestTransportController(testrig.NewMockHTTPClient(func(req *http.Request) (*http.Response, error) {
- r := ioutil.NopCloser(bytes.NewReader([]byte(responseBodyString)))
- return &http.Response{
- StatusCode: 200,
- Body: r,
- }, nil
- }), suite.db)
-
+ tc := testrig.NewTestTransportController(testrig.NewMockHTTPClient(nil), suite.db)
// now setup module being tested, with the mock transport controller
federator := federation.NewFederator(suite.db, testrig.NewTestFederatingDB(suite.db), tc, suite.config, suite.log, suite.typeConverter, testrig.NewTestMediaHandler(suite.db, suite.storage))
- // setup request
+ request := httptest.NewRequest(http.MethodPost, "http://localhost:8080/users/the_mighty_zork/inbox", nil)
+ // we need these headers for the request to be validated
+ request.Header.Set("Signature", activity.SignatureHeader)
+ request.Header.Set("Date", activity.DateHeader)
+ request.Header.Set("Digest", activity.DigestHeader)
+
+ verifier, err := httpsig.NewVerifier(request)
+ assert.NoError(suite.T(), err)
+
ctx := context.Background()
// by the time AuthenticatePostInbox is called, PostInboxRequestBodyHook should have already been called,
// which should have set the account and username onto the request. We can replicate that behavior here:
ctxWithAccount := context.WithValue(ctx, util.APAccount, inboxAccount)
ctxWithActivity := context.WithValue(ctxWithAccount, util.APActivity, activity)
+ ctxWithVerifier := context.WithValue(ctxWithActivity, util.APRequestingPublicKeyVerifier, verifier)
- request := httptest.NewRequest(http.MethodPost, "http://localhost:8080/users/the_mighty_zork/inbox", nil) // the endpoint we're hitting
- // we need these headers for the request to be validated
- request.Header.Set("Signature", activity.SignatureHeader)
- request.Header.Set("Date", activity.DateHeader)
- request.Header.Set("Digest", activity.DigestHeader)
// we can pass this recorder as a writer and read it back after
recorder := httptest.NewRecorder()
// trigger the function being tested, and return the new context it creates
- newContext, authed, err := federator.AuthenticatePostInbox(ctxWithActivity, recorder, request)
+ newContext, authed, err := federator.AuthenticatePostInbox(ctxWithVerifier, recorder, request)
assert.NoError(suite.T(), err)
assert.True(suite.T(), authed)
diff --git a/internal/oauth/clientstore_test.go b/internal/oauth/clientstore_test.go
index 58c5148b2..c515ff513 100644
--- a/internal/oauth/clientstore_test.go
+++ b/internal/oauth/clientstore_test.go
@@ -21,12 +21,10 @@ import (
"context"
"testing"
- "github.com/sirupsen/logrus"
"github.com/stretchr/testify/suite"
- "github.com/superseriousbusiness/gotosocial/internal/config"
"github.com/superseriousbusiness/gotosocial/internal/db"
- "github.com/superseriousbusiness/gotosocial/internal/db/pg"
"github.com/superseriousbusiness/gotosocial/internal/oauth"
+ "github.com/superseriousbusiness/gotosocial/testrig"
"github.com/superseriousbusiness/oauth2/v4/models"
)
@@ -43,7 +41,7 @@ const ()
// SetupSuite sets some variables on the suite that we can use as consts (more or less) throughout
func (suite *PgClientStoreTestSuite) SetupSuite() {
- suite.testClientID = "test-client-id"
+ suite.testClientID = "01FCVB74EW6YBYAEY7QG9CQQF6"
suite.testClientSecret = "test-client-secret"
suite.testClientDomain = "https://example.org"
suite.testClientUserID = "test-client-user-id"
@@ -51,50 +49,13 @@ func (suite *PgClientStoreTestSuite) SetupSuite() {
// SetupTest creates a postgres connection and creates the oauth_clients table before each test
func (suite *PgClientStoreTestSuite) SetupTest() {
- log := logrus.New()
- log.SetLevel(logrus.TraceLevel)
- c := config.Empty()
- c.DBConfig = &config.DBConfig{
- Type: "postgres",
- Address: "localhost",
- Port: 5432,
- User: "postgres",
- Password: "postgres",
- Database: "postgres",
- ApplicationName: "gotosocial",
- }
- db, err := pg.NewPostgresService(context.Background(), c, log)
- if err != nil {
- logrus.Panicf("error creating database connection: %s", err)
- }
-
- suite.db = db
-
- models := []interface{}{
- &oauth.Client{},
- }
-
- for _, m := range models {
- if err := suite.db.CreateTable(m); err != nil {
- logrus.Panicf("db connection error: %s", err)
- }
- }
+ suite.db = testrig.NewTestDB()
+ testrig.StandardDBSetup(suite.db, nil)
}
// TearDownTest drops the oauth_clients table and closes the pg connection after each test
func (suite *PgClientStoreTestSuite) TearDownTest() {
- models := []interface{}{
- &oauth.Client{},
- }
- for _, m := range models {
- if err := suite.db.DropTable(m); err != nil {
- logrus.Panicf("error dropping table: %s", err)
- }
- }
- if err := suite.db.Stop(context.Background()); err != nil {
- logrus.Panicf("error closing db connection: %s", err)
- }
- suite.db = nil
+ testrig.StandardDBTeardown(suite.db)
}
func (suite *PgClientStoreTestSuite) TestClientStoreSetAndGet() {
diff --git a/internal/typeutils/astointernal_test.go b/internal/typeutils/astointernal_test.go
index 2e33271c5..5b8e30134 100644
--- a/internal/typeutils/astointernal_test.go
+++ b/internal/typeutils/astointernal_test.go
@@ -25,7 +25,6 @@ import (
"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/gotosocial/internal/ap"
@@ -375,62 +374,6 @@ func (suite *ASToInternalTestSuite) TestParseGargron() {
// TODO: write assertions here, rn we're just eyeballing the output
}
-func (suite *ASToInternalTestSuite) TestParseStatus() {
- m := make(map[string]interface{})
- err := json.Unmarshal([]byte(statusWithEmojisAndTagsAsActivityJson), &m)
- assert.NoError(suite.T(), err)
-
- t, err := streams.ToType(context.Background(), m)
- assert.NoError(suite.T(), err)
-
- create, ok := t.(vocab.ActivityStreamsCreate)
- assert.True(suite.T(), ok)
-
- obj := create.GetActivityStreamsObject()
- assert.NotNil(suite.T(), obj)
-
- first := obj.Begin()
- assert.NotNil(suite.T(), first)
-
- rep, ok := first.GetType().(ap.Statusable)
- assert.True(suite.T(), ok)
-
- status, err := suite.typeconverter.ASStatusToStatus(rep)
- assert.NoError(suite.T(), err)
-
- assert.Len(suite.T(), status.GTSEmojis, 3)
- // assert.Len(suite.T(), status.GTSTags, 2) TODO: implement this first so that it can pick up tags
-}
-
-func (suite *ASToInternalTestSuite) TestParseStatusWithMention() {
- m := make(map[string]interface{})
- err := json.Unmarshal([]byte(statusWithMentionsActivityJson), &m)
- assert.NoError(suite.T(), err)
-
- t, err := streams.ToType(context.Background(), m)
- assert.NoError(suite.T(), err)
-
- create, ok := t.(vocab.ActivityStreamsCreate)
- assert.True(suite.T(), ok)
-
- obj := create.GetActivityStreamsObject()
- assert.NotNil(suite.T(), obj)
-
- first := obj.Begin()
- assert.NotNil(suite.T(), first)
-
- rep, ok := first.GetType().(ap.Statusable)
- assert.True(suite.T(), ok)
-
- status, err := suite.typeconverter.ASStatusToStatus(rep)
- assert.NoError(suite.T(), err)
-
- fmt.Printf("%+v", status)
-
- assert.Len(suite.T(), status.GTSMentions, 1)
- fmt.Println(status.GTSMentions[0])
-}
-
func (suite *ASToInternalTestSuite) TearDownTest() {
testrig.StandardDBTeardown(suite.db)
}
diff --git a/internal/typeutils/frontendtointernal.go b/internal/typeutils/frontendtointernal.go
index 6bb45d61b..75c5168aa 100644
--- a/internal/typeutils/frontendtointernal.go
+++ b/internal/typeutils/frontendtointernal.go
@@ -32,6 +32,8 @@ func (c *converter) MastoVisToVis(m model.Visibility) gtsmodel.Visibility {
return gtsmodel.VisibilityUnlocked
case model.VisibilityPrivate:
return gtsmodel.VisibilityFollowersOnly
+ case model.VisibilityMutualsOnly:
+ return gtsmodel.VisibilityMutualsOnly
case model.VisibilityDirect:
return gtsmodel.VisibilityDirect
}
diff --git a/testrig/db.go b/testrig/db.go
index f34f7936b..659a74ca2 100644
--- a/testrig/db.go
+++ b/testrig/db.go
@@ -20,6 +20,7 @@ package testrig
import (
"context"
+ "os"
"github.com/sirupsen/logrus"
"github.com/superseriousbusiness/gotosocial/internal/db"
@@ -52,9 +53,17 @@ var testModels []interface{} = []interface{}{
&oauth.Client{},
}
-// NewTestDB returns a new initialized, empty database for testing
+// NewTestDB returns a new initialized, empty database for testing.
+//
+// If the environment variable GTS_DB_ADDRESS is set, it will take that
+// value as the database address instead.
func NewTestDB() db.DB {
config := NewTestConfig()
+ alternateAddress := os.Getenv("GTS_DB_ADDRESS")
+ if alternateAddress != "" {
+ config.DBConfig.Address = alternateAddress
+ }
+
l := logrus.New()
l.SetLevel(logrus.TraceLevel)
testDB, err := pg.NewPostgresService(context.Background(), config, l)
diff --git a/vendor/github.com/aymerick/douceur/LICENSE b/vendor/github.com/aymerick/douceur/LICENSE
new file mode 100644
index 000000000..6ce87cd37
--- /dev/null
+++ b/vendor/github.com/aymerick/douceur/LICENSE
@@ -0,0 +1,22 @@
+The MIT License (MIT)
+
+Copyright (c) 2015 Aymerick JEHANNE
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
+
diff --git a/vendor/github.com/aymerick/douceur/css/declaration.go b/vendor/github.com/aymerick/douceur/css/declaration.go
new file mode 100644
index 000000000..61d29d335
--- /dev/null
+++ b/vendor/github.com/aymerick/douceur/css/declaration.go
@@ -0,0 +1,60 @@
+package css
+
+import "fmt"
+
+// Declaration represents a parsed style property
+type Declaration struct {
+ Property string
+ Value string
+ Important bool
+}
+
+// NewDeclaration instanciates a new Declaration
+func NewDeclaration() *Declaration {
+ return &Declaration{}
+}
+
+// Returns string representation of the Declaration
+func (decl *Declaration) String() string {
+ return decl.StringWithImportant(true)
+}
+
+// StringWithImportant returns string representation with optional !important part
+func (decl *Declaration) StringWithImportant(option bool) string {
+ result := fmt.Sprintf("%s: %s", decl.Property, decl.Value)
+
+ if option && decl.Important {
+ result += " !important"
+ }
+
+ result += ";"
+
+ return result
+}
+
+// Equal returns true if both Declarations are equals
+func (decl *Declaration) Equal(other *Declaration) bool {
+ return (decl.Property == other.Property) && (decl.Value == other.Value) && (decl.Important == other.Important)
+}
+
+//
+// DeclarationsByProperty
+//
+
+// DeclarationsByProperty represents sortable style declarations
+type DeclarationsByProperty []*Declaration
+
+// Implements sort.Interface
+func (declarations DeclarationsByProperty) Len() int {
+ return len(declarations)
+}
+
+// Implements sort.Interface
+func (declarations DeclarationsByProperty) Swap(i, j int) {
+ declarations[i], declarations[j] = declarations[j], declarations[i]
+}
+
+// Implements sort.Interface
+func (declarations DeclarationsByProperty) Less(i, j int) bool {
+ return declarations[i].Property < declarations[j].Property
+}
diff --git a/vendor/github.com/aymerick/douceur/css/rule.go b/vendor/github.com/aymerick/douceur/css/rule.go
new file mode 100644
index 000000000..b5a44b542
--- /dev/null
+++ b/vendor/github.com/aymerick/douceur/css/rule.go
@@ -0,0 +1,230 @@
+package css
+
+import (
+ "fmt"
+ "strings"
+)
+
+const (
+ indentSpace = 2
+)
+
+// RuleKind represents a Rule kind
+type RuleKind int
+
+// Rule kinds
+const (
+ QualifiedRule RuleKind = iota
+ AtRule
+)
+
+// At Rules than have Rules inside their block instead of Declarations
+var atRulesWithRulesBlock = []string{
+ "@document", "@font-feature-values", "@keyframes", "@media", "@supports",
+}
+
+// Rule represents a parsed CSS rule
+type Rule struct {
+ Kind RuleKind
+
+ // At Rule name (eg: "@media")
+ Name string
+
+ // Raw prelude
+ Prelude string
+
+ // Qualified Rule selectors parsed from prelude
+ Selectors []string
+
+ // Style properties
+ Declarations []*Declaration
+
+ // At Rule embedded rules
+ Rules []*Rule
+
+ // Current rule embedding level
+ EmbedLevel int
+}
+
+// NewRule instanciates a new Rule
+func NewRule(kind RuleKind) *Rule {
+ return &Rule{
+ Kind: kind,
+ }
+}
+
+// Returns string representation of rule kind
+func (kind RuleKind) String() string {
+ switch kind {
+ case QualifiedRule:
+ return "Qualified Rule"
+ case AtRule:
+ return "At Rule"
+ default:
+ return "WAT"
+ }
+}
+
+// EmbedsRules returns true if this rule embeds another rules
+func (rule *Rule) EmbedsRules() bool {
+ if rule.Kind == AtRule {
+ for _, atRuleName := range atRulesWithRulesBlock {
+ if rule.Name == atRuleName {
+ return true
+ }
+ }
+ }
+
+ return false
+}
+
+// Equal returns true if both rules are equals
+func (rule *Rule) Equal(other *Rule) bool {
+ if (rule.Kind != other.Kind) ||
+ (rule.Prelude != other.Prelude) ||
+ (rule.Name != other.Name) {
+ return false
+ }
+
+ if (len(rule.Selectors) != len(other.Selectors)) ||
+ (len(rule.Declarations) != len(other.Declarations)) ||
+ (len(rule.Rules) != len(other.Rules)) {
+ return false
+ }
+
+ for i, sel := range rule.Selectors {
+ if sel != other.Selectors[i] {
+ return false
+ }
+ }
+
+ for i, decl := range rule.Declarations {
+ if !decl.Equal(other.Declarations[i]) {
+ return false
+ }
+ }
+
+ for i, rule := range rule.Rules {
+ if !rule.Equal(other.Rules[i]) {
+ return false
+ }
+ }
+
+ return true
+}
+
+// Diff returns a string representation of rules differences
+func (rule *Rule) Diff(other *Rule) []string {
+ result := []string{}
+
+ if rule.Kind != other.Kind {
+ result = append(result, fmt.Sprintf("Kind: %s | %s", rule.Kind.String(), other.Kind.String()))
+ }
+
+ if rule.Prelude != other.Prelude {
+ result = append(result, fmt.Sprintf("Prelude: \"%s\" | \"%s\"", rule.Prelude, other.Prelude))
+ }
+
+ if rule.Name != other.Name {
+ result = append(result, fmt.Sprintf("Name: \"%s\" | \"%s\"", rule.Name, other.Name))
+ }
+
+ if len(rule.Selectors) != len(other.Selectors) {
+ result = append(result, fmt.Sprintf("Selectors: %v | %v", strings.Join(rule.Selectors, ", "), strings.Join(other.Selectors, ", ")))
+ } else {
+ for i, sel := range rule.Selectors {
+ if sel != other.Selectors[i] {
+ result = append(result, fmt.Sprintf("Selector: \"%s\" | \"%s\"", sel, other.Selectors[i]))
+ }
+ }
+ }
+
+ if len(rule.Declarations) != len(other.Declarations) {
+ result = append(result, fmt.Sprintf("Declarations Nb: %d | %d", len(rule.Declarations), len(other.Declarations)))
+ } else {
+ for i, decl := range rule.Declarations {
+ if !decl.Equal(other.Declarations[i]) {
+ result = append(result, fmt.Sprintf("Declaration: \"%s\" | \"%s\"", decl.String(), other.Declarations[i].String()))
+ }
+ }
+ }
+
+ if len(rule.Rules) != len(other.Rules) {
+ result = append(result, fmt.Sprintf("Rules Nb: %d | %d", len(rule.Rules), len(other.Rules)))
+ } else {
+
+ for i, rule := range rule.Rules {
+ if !rule.Equal(other.Rules[i]) {
+ result = append(result, fmt.Sprintf("Rule: \"%s\" | \"%s\"", rule.String(), other.Rules[i].String()))
+ }
+ }
+ }
+
+ return result
+}
+
+// Returns the string representation of a rule
+func (rule *Rule) String() string {
+ result := ""
+
+ if rule.Kind == QualifiedRule {
+ for i, sel := range rule.Selectors {
+ if i != 0 {
+ result += ", "
+ }
+ result += sel
+ }
+ } else {
+ // AtRule
+ result += fmt.Sprintf("%s", rule.Name)
+
+ if rule.Prelude != "" {
+ if result != "" {
+ result += " "
+ }
+ result += fmt.Sprintf("%s", rule.Prelude)
+ }
+ }
+
+ if (len(rule.Declarations) == 0) && (len(rule.Rules) == 0) {
+ result += ";"
+ } else {
+ result += " {\n"
+
+ if rule.EmbedsRules() {
+ for _, subRule := range rule.Rules {
+ result += fmt.Sprintf("%s%s\n", rule.indent(), subRule.String())
+ }
+ } else {
+ for _, decl := range rule.Declarations {
+ result += fmt.Sprintf("%s%s\n", rule.indent(), decl.String())
+ }
+ }
+
+ result += fmt.Sprintf("%s}", rule.indentEndBlock())
+ }
+
+ return result
+}
+
+// Returns identation spaces for declarations and rules
+func (rule *Rule) indent() string {
+ result := ""
+
+ for i := 0; i < ((rule.EmbedLevel + 1) * indentSpace); i++ {
+ result += " "
+ }
+
+ return result
+}
+
+// Returns identation spaces for end of block character
+func (rule *Rule) indentEndBlock() string {
+ result := ""
+
+ for i := 0; i < (rule.EmbedLevel * indentSpace); i++ {
+ result += " "
+ }
+
+ return result
+}
diff --git a/vendor/github.com/aymerick/douceur/css/stylesheet.go b/vendor/github.com/aymerick/douceur/css/stylesheet.go
new file mode 100644
index 000000000..6b32c2ec9
--- /dev/null
+++ b/vendor/github.com/aymerick/douceur/css/stylesheet.go
@@ -0,0 +1,25 @@
+package css
+
+// Stylesheet represents a parsed stylesheet
+type Stylesheet struct {
+ Rules []*Rule
+}
+
+// NewStylesheet instanciate a new Stylesheet
+func NewStylesheet() *Stylesheet {
+ return &Stylesheet{}
+}
+
+// Returns string representation of the Stylesheet
+func (sheet *Stylesheet) String() string {
+ result := ""
+
+ for _, rule := range sheet.Rules {
+ if result != "" {
+ result += "\n"
+ }
+ result += rule.String()
+ }
+
+ return result
+}
diff --git a/vendor/github.com/aymerick/douceur/parser/parser.go b/vendor/github.com/aymerick/douceur/parser/parser.go
new file mode 100644
index 000000000..6c4917ccf
--- /dev/null
+++ b/vendor/github.com/aymerick/douceur/parser/parser.go
@@ -0,0 +1,409 @@
+package parser
+
+import (
+ "errors"
+ "fmt"
+ "regexp"
+ "strings"
+
+ "github.com/gorilla/css/scanner"
+
+ "github.com/aymerick/douceur/css"
+)
+
+const (
+ importantSuffixRegexp = `(?i)\s*!important\s*$`
+)
+
+var (
+ importantRegexp *regexp.Regexp
+)
+
+// Parser represents a CSS parser
+type Parser struct {
+ scan *scanner.Scanner // Tokenizer
+
+ // Tokens parsed but not consumed yet
+ tokens []*scanner.Token
+
+ // Rule embedding level
+ embedLevel int
+}
+
+func init() {
+ importantRegexp = regexp.MustCompile(importantSuffixRegexp)
+}
+
+// NewParser instanciates a new parser
+func NewParser(txt string) *Parser {
+ return &Parser{
+ scan: scanner.New(txt),
+ }
+}
+
+// Parse parses a whole stylesheet
+func Parse(text string) (*css.Stylesheet, error) {
+ result, err := NewParser(text).ParseStylesheet()
+ if err != nil {
+ return nil, err
+ }
+
+ return result, nil
+}
+
+// ParseDeclarations parses CSS declarations
+func ParseDeclarations(text string) ([]*css.Declaration, error) {
+ result, err := NewParser(text).ParseDeclarations()
+ if err != nil {
+ return nil, err
+ }
+
+ return result, nil
+}
+
+// ParseStylesheet parses a stylesheet
+func (parser *Parser) ParseStylesheet() (*css.Stylesheet, error) {
+ result := css.NewStylesheet()
+
+ // Parse BOM
+ if _, err := parser.parseBOM(); err != nil {
+ return result, err
+ }
+
+ // Parse list of rules
+ rules, err := parser.ParseRules()
+ if err != nil {
+ return result, err
+ }
+
+ result.Rules = rules
+
+ return result, nil
+}
+
+// ParseRules parses a list of rules
+func (parser *Parser) ParseRules() ([]*css.Rule, error) {
+ result := []*css.Rule{}
+
+ inBlock := false
+ if parser.tokenChar("{") {
+ // parsing a block of rules
+ inBlock = true
+ parser.embedLevel++
+
+ parser.shiftToken()
+ }
+
+ for parser.tokenParsable() {
+ if parser.tokenIgnorable() {
+ parser.shiftToken()
+ } else if parser.tokenChar("}") {
+ if !inBlock {
+ errMsg := fmt.Sprintf("Unexpected } character: %s", parser.nextToken().String())
+ return result, errors.New(errMsg)
+ }
+
+ parser.shiftToken()
+ parser.embedLevel--
+
+ // finished
+ break
+ } else {
+ rule, err := parser.ParseRule()
+ if err != nil {
+ return result, err
+ }
+
+ rule.EmbedLevel = parser.embedLevel
+ result = append(result, rule)
+ }
+ }
+
+ return result, parser.err()
+}
+
+// ParseRule parses a rule
+func (parser *Parser) ParseRule() (*css.Rule, error) {
+ if parser.tokenAtKeyword() {
+ return parser.parseAtRule()
+ }
+
+ return parser.parseQualifiedRule()
+}
+
+// ParseDeclarations parses a list of declarations
+func (parser *Parser) ParseDeclarations() ([]*css.Declaration, error) {
+ result := []*css.Declaration{}
+
+ if parser.tokenChar("{") {
+ parser.shiftToken()
+ }
+
+ for parser.tokenParsable() {
+ if parser.tokenIgnorable() {
+ parser.shiftToken()
+ } else if parser.tokenChar("}") {
+ // end of block
+ parser.shiftToken()
+ break
+ } else {
+ declaration, err := parser.ParseDeclaration()
+ if err != nil {
+ return result, err
+ }
+
+ result = append(result, declaration)
+ }
+ }
+
+ return result, parser.err()
+}
+
+// ParseDeclaration parses a declaration
+func (parser *Parser) ParseDeclaration() (*css.Declaration, error) {
+ result := css.NewDeclaration()
+ curValue := ""
+
+ for parser.tokenParsable() {
+ if parser.tokenChar(":") {
+ result.Property = strings.TrimSpace(curValue)
+ curValue = ""
+
+ parser.shiftToken()
+ } else if parser.tokenChar(";") || parser.tokenChar("}") {
+ if result.Property == "" {
+ errMsg := fmt.Sprintf("Unexpected ; character: %s", parser.nextToken().String())
+ return result, errors.New(errMsg)
+ }
+
+ if importantRegexp.MatchString(curValue) {
+ result.Important = true
+ curValue = importantRegexp.ReplaceAllString(curValue, "")
+ }
+
+ result.Value = strings.TrimSpace(curValue)
+
+ if parser.tokenChar(";") {
+ parser.shiftToken()
+ }
+
+ // finished
+ break
+ } else {
+ token := parser.shiftToken()
+ curValue += token.Value
+ }
+ }
+
+ // log.Printf("[parsed] Declaration: %s", result.String())
+
+ return result, parser.err()
+}
+
+// Parse an At Rule
+func (parser *Parser) parseAtRule() (*css.Rule, error) {
+ // parse rule name (eg: "@import")
+ token := parser.shiftToken()
+
+ result := css.NewRule(css.AtRule)
+ result.Name = token.Value
+
+ for parser.tokenParsable() {
+ if parser.tokenChar(";") {
+ parser.shiftToken()
+
+ // finished
+ break
+ } else if parser.tokenChar("{") {
+ if result.EmbedsRules() {
+ // parse rules block
+ rules, err := parser.ParseRules()
+ if err != nil {
+ return result, err
+ }
+
+ result.Rules = rules
+ } else {
+ // parse declarations block
+ declarations, err := parser.ParseDeclarations()
+ if err != nil {
+ return result, err
+ }
+
+ result.Declarations = declarations
+ }
+
+ // finished
+ break
+ } else {
+ // parse prelude
+ prelude, err := parser.parsePrelude()
+ if err != nil {
+ return result, err
+ }
+
+ result.Prelude = prelude
+ }
+ }
+
+ // log.Printf("[parsed] Rule: %s", result.String())
+
+ return result, parser.err()
+}
+
+// Parse a Qualified Rule
+func (parser *Parser) parseQualifiedRule() (*css.Rule, error) {
+ result := css.NewRule(css.QualifiedRule)
+
+ for parser.tokenParsable() {
+ if parser.tokenChar("{") {
+ if result.Prelude == "" {
+ errMsg := fmt.Sprintf("Unexpected { character: %s", parser.nextToken().String())
+ return result, errors.New(errMsg)
+ }
+
+ // parse declarations block
+ declarations, err := parser.ParseDeclarations()
+ if err != nil {
+ return result, err
+ }
+
+ result.Declarations = declarations
+
+ // finished
+ break
+ } else {
+ // parse prelude
+ prelude, err := parser.parsePrelude()
+ if err != nil {
+ return result, err
+ }
+
+ result.Prelude = prelude
+ }
+ }
+
+ result.Selectors = strings.Split(result.Prelude, ",")
+ for i, sel := range result.Selectors {
+ result.Selectors[i] = strings.TrimSpace(sel)
+ }
+
+ // log.Printf("[parsed] Rule: %s", result.String())
+
+ return result, parser.err()
+}
+
+// Parse Rule prelude
+func (parser *Parser) parsePrelude() (string, error) {
+ result := ""
+
+ for parser.tokenParsable() && !parser.tokenEndOfPrelude() {
+ token := parser.shiftToken()
+ result += token.Value
+ }
+
+ result = strings.TrimSpace(result)
+
+ // log.Printf("[parsed] prelude: %s", result)
+
+ return result, parser.err()
+}
+
+// Parse BOM
+func (parser *Parser) parseBOM() (bool, error) {
+ if parser.nextToken().Type == scanner.TokenBOM {
+ parser.shiftToken()
+ return true, nil
+ }
+
+ return false, parser.err()
+}
+
+// Returns next token without removing it from tokens buffer
+func (parser *Parser) nextToken() *scanner.Token {
+ if len(parser.tokens) == 0 {
+ // fetch next token
+ nextToken := parser.scan.Next()
+
+ // log.Printf("[token] %s => %v", nextToken.Type.String(), nextToken.Value)
+
+ // queue it
+ parser.tokens = append(parser.tokens, nextToken)
+ }
+
+ return parser.tokens[0]
+}
+
+// Returns next token and remove it from the tokens buffer
+func (parser *Parser) shiftToken() *scanner.Token {
+ var result *scanner.Token
+
+ result, parser.tokens = parser.tokens[0], parser.tokens[1:]
+ return result
+}
+
+// Returns tokenizer error, or nil if no error
+func (parser *Parser) err() error {
+ if parser.tokenError() {
+ token := parser.nextToken()
+ return fmt.Errorf("Tokenizer error: %s", token.String())
+ }
+
+ return nil
+}
+
+// Returns true if next token is Error
+func (parser *Parser) tokenError() bool {
+ return parser.nextToken().Type == scanner.TokenError
+}
+
+// Returns true if next token is EOF
+func (parser *Parser) tokenEOF() bool {
+ return parser.nextToken().Type == scanner.TokenEOF
+}
+
+// Returns true if next token is a whitespace
+func (parser *Parser) tokenWS() bool {
+ return parser.nextToken().Type == scanner.TokenS
+}
+
+// Returns true if next token is a comment
+func (parser *Parser) tokenComment() bool {
+ return parser.nextToken().Type == scanner.TokenComment
+}
+
+// Returns true if next token is a CDO or a CDC
+func (parser *Parser) tokenCDOorCDC() bool {
+ switch parser.nextToken().Type {
+ case scanner.TokenCDO, scanner.TokenCDC:
+ return true
+ default:
+ return false
+ }
+}
+
+// Returns true if next token is ignorable
+func (parser *Parser) tokenIgnorable() bool {
+ return parser.tokenWS() || parser.tokenComment() || parser.tokenCDOorCDC()
+}
+
+// Returns true if next token is parsable
+func (parser *Parser) tokenParsable() bool {
+ return !parser.tokenEOF() && !parser.tokenError()
+}
+
+// Returns true if next token is an At Rule keyword
+func (parser *Parser) tokenAtKeyword() bool {
+ return parser.nextToken().Type == scanner.TokenAtKeyword
+}
+
+// Returns true if next token is given character
+func (parser *Parser) tokenChar(value string) bool {
+ token := parser.nextToken()
+ return (token.Type == scanner.TokenChar) && (token.Value == value)
+}
+
+// Returns true if next token marks the end of a prelude
+func (parser *Parser) tokenEndOfPrelude() bool {
+ return parser.tokenChar(";") || parser.tokenChar("{")
+}
diff --git a/vendor/github.com/buckket/go-blurhash/.gitignore b/vendor/github.com/buckket/go-blurhash/.gitignore
new file mode 100644
index 000000000..3c56ae0d2
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/.gitignore
@@ -0,0 +1,2 @@
+.idea
+coverage.txt
\ No newline at end of file
diff --git a/vendor/github.com/buckket/go-blurhash/.travis.yml b/vendor/github.com/buckket/go-blurhash/.travis.yml
new file mode 100644
index 000000000..285391d4d
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/.travis.yml
@@ -0,0 +1,14 @@
+language: go
+
+go:
+ - 1.13.x
+ - 1.14.x
+
+install:
+ - go get -t -v ./...
+
+script:
+ - go test -race -coverprofile=coverage.txt -covermode=atomic ./...
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/vendor/github.com/buckket/go-blurhash/LICENSE b/vendor/github.com/buckket/go-blurhash/LICENSE
new file mode 100644
index 000000000..f288702d2
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/LICENSE
@@ -0,0 +1,674 @@
+ GNU GENERAL PUBLIC LICENSE
+ Version 3, 29 June 2007
+
+ Copyright (C) 2007 Free Software Foundation, Inc.
+ Everyone is permitted to copy and distribute verbatim copies
+ of this license document, but changing it is not allowed.
+
+ Preamble
+
+ The GNU General Public License is a free, copyleft license for
+software and other kinds of works.
+
+ The licenses for most software and other practical works are designed
+to take away your freedom to share and change the works. By contrast,
+the GNU General Public License is intended to guarantee your freedom to
+share and change all versions of a program--to make sure it remains free
+software for all its users. We, the Free Software Foundation, use the
+GNU General Public License for most of our software; it applies also to
+any other work released this way by its authors. You can apply it to
+your programs, too.
+
+ When we speak of free software, we are referring to freedom, not
+price. Our General Public Licenses are designed to make sure that you
+have the freedom to distribute copies of free software (and charge for
+them if you wish), that you receive source code or can get it if you
+want it, that you can change the software or use pieces of it in new
+free programs, and that you know you can do these things.
+
+ To protect your rights, we need to prevent others from denying you
+these rights or asking you to surrender the rights. Therefore, you have
+certain responsibilities if you distribute copies of the software, or if
+you modify it: responsibilities to respect the freedom of others.
+
+ For example, if you distribute copies of such a program, whether
+gratis or for a fee, you must pass on to the recipients the same
+freedoms that you received. You must make sure that they, too, receive
+or can get the source code. And you must show them these terms so they
+know their rights.
+
+ Developers that use the GNU GPL protect your rights with two steps:
+(1) assert copyright on the software, and (2) offer you this License
+giving you legal permission to copy, distribute and/or modify it.
+
+ For the developers' and authors' protection, the GPL clearly explains
+that there is no warranty for this free software. For both users' and
+authors' sake, the GPL requires that modified versions be marked as
+changed, so that their problems will not be attributed erroneously to
+authors of previous versions.
+
+ Some devices are designed to deny users access to install or run
+modified versions of the software inside them, although the manufacturer
+can do so. This is fundamentally incompatible with the aim of
+protecting users' freedom to change the software. The systematic
+pattern of such abuse occurs in the area of products for individuals to
+use, which is precisely where it is most unacceptable. Therefore, we
+have designed this version of the GPL to prohibit the practice for those
+products. If such problems arise substantially in other domains, we
+stand ready to extend this provision to those domains in future versions
+of the GPL, as needed to protect the freedom of users.
+
+ Finally, every program is threatened constantly by software patents.
+States should not allow patents to restrict development and use of
+software on general-purpose computers, but in those that do, we wish to
+avoid the special danger that patents applied to a free program could
+make it effectively proprietary. To prevent this, the GPL assures that
+patents cannot be used to render the program non-free.
+
+ The precise terms and conditions for copying, distribution and
+modification follow.
+
+ TERMS AND CONDITIONS
+
+ 0. Definitions.
+
+ "This License" refers to version 3 of the GNU General Public License.
+
+ "Copyright" also means copyright-like laws that apply to other kinds of
+works, such as semiconductor masks.
+
+ "The Program" refers to any copyrightable work licensed under this
+License. Each licensee is addressed as "you". "Licensees" and
+"recipients" may be individuals or organizations.
+
+ To "modify" a work means to copy from or adapt all or part of the work
+in a fashion requiring copyright permission, other than the making of an
+exact copy. The resulting work is called a "modified version" of the
+earlier work or a work "based on" the earlier work.
+
+ A "covered work" means either the unmodified Program or a work based
+on the Program.
+
+ To "propagate" a work means to do anything with it that, without
+permission, would make you directly or secondarily liable for
+infringement under applicable copyright law, except executing it on a
+computer or modifying a private copy. Propagation includes copying,
+distribution (with or without modification), making available to the
+public, and in some countries other activities as well.
+
+ To "convey" a work means any kind of propagation that enables other
+parties to make or receive copies. Mere interaction with a user through
+a computer network, with no transfer of a copy, is not conveying.
+
+ An interactive user interface displays "Appropriate Legal Notices"
+to the extent that it includes a convenient and prominently visible
+feature that (1) displays an appropriate copyright notice, and (2)
+tells the user that there is no warranty for the work (except to the
+extent that warranties are provided), that licensees may convey the
+work under this License, and how to view a copy of this License. If
+the interface presents a list of user commands or options, such as a
+menu, a prominent item in the list meets this criterion.
+
+ 1. Source Code.
+
+ The "source code" for a work means the preferred form of the work
+for making modifications to it. "Object code" means any non-source
+form of a work.
+
+ A "Standard Interface" means an interface that either is an official
+standard defined by a recognized standards body, or, in the case of
+interfaces specified for a particular programming language, one that
+is widely used among developers working in that language.
+
+ The "System Libraries" of an executable work include anything, other
+than the work as a whole, that (a) is included in the normal form of
+packaging a Major Component, but which is not part of that Major
+Component, and (b) serves only to enable use of the work with that
+Major Component, or to implement a Standard Interface for which an
+implementation is available to the public in source code form. A
+"Major Component", in this context, means a major essential component
+(kernel, window system, and so on) of the specific operating system
+(if any) on which the executable work runs, or a compiler used to
+produce the work, or an object code interpreter used to run it.
+
+ The "Corresponding Source" for a work in object code form means all
+the source code needed to generate, install, and (for an executable
+work) run the object code and to modify the work, including scripts to
+control those activities. However, it does not include the work's
+System Libraries, or general-purpose tools or generally available free
+programs which are used unmodified in performing those activities but
+which are not part of the work. For example, Corresponding Source
+includes interface definition files associated with source files for
+the work, and the source code for shared libraries and dynamically
+linked subprograms that the work is specifically designed to require,
+such as by intimate data communication or control flow between those
+subprograms and other parts of the work.
+
+ The Corresponding Source need not include anything that users
+can regenerate automatically from other parts of the Corresponding
+Source.
+
+ The Corresponding Source for a work in source code form is that
+same work.
+
+ 2. Basic Permissions.
+
+ All rights granted under this License are granted for the term of
+copyright on the Program, and are irrevocable provided the stated
+conditions are met. This License explicitly affirms your unlimited
+permission to run the unmodified Program. The output from running a
+covered work is covered by this License only if the output, given its
+content, constitutes a covered work. This License acknowledges your
+rights of fair use or other equivalent, as provided by copyright law.
+
+ You may make, run and propagate covered works that you do not
+convey, without conditions so long as your license otherwise remains
+in force. You may convey covered works to others for the sole purpose
+of having them make modifications exclusively for you, or provide you
+with facilities for running those works, provided that you comply with
+the terms of this License in conveying all material for which you do
+not control copyright. Those thus making or running the covered works
+for you must do so exclusively on your behalf, under your direction
+and control, on terms that prohibit them from making any copies of
+your copyrighted material outside their relationship with you.
+
+ Conveying under any other circumstances is permitted solely under
+the conditions stated below. Sublicensing is not allowed; section 10
+makes it unnecessary.
+
+ 3. Protecting Users' Legal Rights From Anti-Circumvention Law.
+
+ No covered work shall be deemed part of an effective technological
+measure under any applicable law fulfilling obligations under article
+11 of the WIPO copyright treaty adopted on 20 December 1996, or
+similar laws prohibiting or restricting circumvention of such
+measures.
+
+ When you convey a covered work, you waive any legal power to forbid
+circumvention of technological measures to the extent such circumvention
+is effected by exercising rights under this License with respect to
+the covered work, and you disclaim any intention to limit operation or
+modification of the work as a means of enforcing, against the work's
+users, your or third parties' legal rights to forbid circumvention of
+technological measures.
+
+ 4. Conveying Verbatim Copies.
+
+ You may convey verbatim copies of the Program's source code as you
+receive it, in any medium, provided that you conspicuously and
+appropriately publish on each copy an appropriate copyright notice;
+keep intact all notices stating that this License and any
+non-permissive terms added in accord with section 7 apply to the code;
+keep intact all notices of the absence of any warranty; and give all
+recipients a copy of this License along with the Program.
+
+ You may charge any price or no price for each copy that you convey,
+and you may offer support or warranty protection for a fee.
+
+ 5. Conveying Modified Source Versions.
+
+ You may convey a work based on the Program, or the modifications to
+produce it from the Program, in the form of source code under the
+terms of section 4, provided that you also meet all of these conditions:
+
+ a) The work must carry prominent notices stating that you modified
+ it, and giving a relevant date.
+
+ b) The work must carry prominent notices stating that it is
+ released under this License and any conditions added under section
+ 7. This requirement modifies the requirement in section 4 to
+ "keep intact all notices".
+
+ c) You must license the entire work, as a whole, under this
+ License to anyone who comes into possession of a copy. This
+ License will therefore apply, along with any applicable section 7
+ additional terms, to the whole of the work, and all its parts,
+ regardless of how they are packaged. This License gives no
+ permission to license the work in any other way, but it does not
+ invalidate such permission if you have separately received it.
+
+ d) If the work has interactive user interfaces, each must display
+ Appropriate Legal Notices; however, if the Program has interactive
+ interfaces that do not display Appropriate Legal Notices, your
+ work need not make them do so.
+
+ A compilation of a covered work with other separate and independent
+works, which are not by their nature extensions of the covered work,
+and which are not combined with it such as to form a larger program,
+in or on a volume of a storage or distribution medium, is called an
+"aggregate" if the compilation and its resulting copyright are not
+used to limit the access or legal rights of the compilation's users
+beyond what the individual works permit. Inclusion of a covered work
+in an aggregate does not cause this License to apply to the other
+parts of the aggregate.
+
+ 6. Conveying Non-Source Forms.
+
+ You may convey a covered work in object code form under the terms
+of sections 4 and 5, provided that you also convey the
+machine-readable Corresponding Source under the terms of this License,
+in one of these ways:
+
+ a) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by the
+ Corresponding Source fixed on a durable physical medium
+ customarily used for software interchange.
+
+ b) Convey the object code in, or embodied in, a physical product
+ (including a physical distribution medium), accompanied by a
+ written offer, valid for at least three years and valid for as
+ long as you offer spare parts or customer support for that product
+ model, to give anyone who possesses the object code either (1) a
+ copy of the Corresponding Source for all the software in the
+ product that is covered by this License, on a durable physical
+ medium customarily used for software interchange, for a price no
+ more than your reasonable cost of physically performing this
+ conveying of source, or (2) access to copy the
+ Corresponding Source from a network server at no charge.
+
+ c) Convey individual copies of the object code with a copy of the
+ written offer to provide the Corresponding Source. This
+ alternative is allowed only occasionally and noncommercially, and
+ only if you received the object code with such an offer, in accord
+ with subsection 6b.
+
+ d) Convey the object code by offering access from a designated
+ place (gratis or for a charge), and offer equivalent access to the
+ Corresponding Source in the same way through the same place at no
+ further charge. You need not require recipients to copy the
+ Corresponding Source along with the object code. If the place to
+ copy the object code is a network server, the Corresponding Source
+ may be on a different server (operated by you or a third party)
+ that supports equivalent copying facilities, provided you maintain
+ clear directions next to the object code saying where to find the
+ Corresponding Source. Regardless of what server hosts the
+ Corresponding Source, you remain obligated to ensure that it is
+ available for as long as needed to satisfy these requirements.
+
+ e) Convey the object code using peer-to-peer transmission, provided
+ you inform other peers where the object code and Corresponding
+ Source of the work are being offered to the general public at no
+ charge under subsection 6d.
+
+ A separable portion of the object code, whose source code is excluded
+from the Corresponding Source as a System Library, need not be
+included in conveying the object code work.
+
+ A "User Product" is either (1) a "consumer product", which means any
+tangible personal property which is normally used for personal, family,
+or household purposes, or (2) anything designed or sold for incorporation
+into a dwelling. In determining whether a product is a consumer product,
+doubtful cases shall be resolved in favor of coverage. For a particular
+product received by a particular user, "normally used" refers to a
+typical or common use of that class of product, regardless of the status
+of the particular user or of the way in which the particular user
+actually uses, or expects or is expected to use, the product. A product
+is a consumer product regardless of whether the product has substantial
+commercial, industrial or non-consumer uses, unless such uses represent
+the only significant mode of use of the product.
+
+ "Installation Information" for a User Product means any methods,
+procedures, authorization keys, or other information required to install
+and execute modified versions of a covered work in that User Product from
+a modified version of its Corresponding Source. The information must
+suffice to ensure that the continued functioning of the modified object
+code is in no case prevented or interfered with solely because
+modification has been made.
+
+ If you convey an object code work under this section in, or with, or
+specifically for use in, a User Product, and the conveying occurs as
+part of a transaction in which the right of possession and use of the
+User Product is transferred to the recipient in perpetuity or for a
+fixed term (regardless of how the transaction is characterized), the
+Corresponding Source conveyed under this section must be accompanied
+by the Installation Information. But this requirement does not apply
+if neither you nor any third party retains the ability to install
+modified object code on the User Product (for example, the work has
+been installed in ROM).
+
+ The requirement to provide Installation Information does not include a
+requirement to continue to provide support service, warranty, or updates
+for a work that has been modified or installed by the recipient, or for
+the User Product in which it has been modified or installed. Access to a
+network may be denied when the modification itself materially and
+adversely affects the operation of the network or violates the rules and
+protocols for communication across the network.
+
+ Corresponding Source conveyed, and Installation Information provided,
+in accord with this section must be in a format that is publicly
+documented (and with an implementation available to the public in
+source code form), and must require no special password or key for
+unpacking, reading or copying.
+
+ 7. Additional Terms.
+
+ "Additional permissions" are terms that supplement the terms of this
+License by making exceptions from one or more of its conditions.
+Additional permissions that are applicable to the entire Program shall
+be treated as though they were included in this License, to the extent
+that they are valid under applicable law. If additional permissions
+apply only to part of the Program, that part may be used separately
+under those permissions, but the entire Program remains governed by
+this License without regard to the additional permissions.
+
+ When you convey a copy of a covered work, you may at your option
+remove any additional permissions from that copy, or from any part of
+it. (Additional permissions may be written to require their own
+removal in certain cases when you modify the work.) You may place
+additional permissions on material, added by you to a covered work,
+for which you have or can give appropriate copyright permission.
+
+ Notwithstanding any other provision of this License, for material you
+add to a covered work, you may (if authorized by the copyright holders of
+that material) supplement the terms of this License with terms:
+
+ a) Disclaiming warranty or limiting liability differently from the
+ terms of sections 15 and 16 of this License; or
+
+ b) Requiring preservation of specified reasonable legal notices or
+ author attributions in that material or in the Appropriate Legal
+ Notices displayed by works containing it; or
+
+ c) Prohibiting misrepresentation of the origin of that material, or
+ requiring that modified versions of such material be marked in
+ reasonable ways as different from the original version; or
+
+ d) Limiting the use for publicity purposes of names of licensors or
+ authors of the material; or
+
+ e) Declining to grant rights under trademark law for use of some
+ trade names, trademarks, or service marks; or
+
+ f) Requiring indemnification of licensors and authors of that
+ material by anyone who conveys the material (or modified versions of
+ it) with contractual assumptions of liability to the recipient, for
+ any liability that these contractual assumptions directly impose on
+ those licensors and authors.
+
+ All other non-permissive additional terms are considered "further
+restrictions" within the meaning of section 10. If the Program as you
+received it, or any part of it, contains a notice stating that it is
+governed by this License along with a term that is a further
+restriction, you may remove that term. If a license document contains
+a further restriction but permits relicensing or conveying under this
+License, you may add to a covered work material governed by the terms
+of that license document, provided that the further restriction does
+not survive such relicensing or conveying.
+
+ If you add terms to a covered work in accord with this section, you
+must place, in the relevant source files, a statement of the
+additional terms that apply to those files, or a notice indicating
+where to find the applicable terms.
+
+ Additional terms, permissive or non-permissive, may be stated in the
+form of a separately written license, or stated as exceptions;
+the above requirements apply either way.
+
+ 8. Termination.
+
+ You may not propagate or modify a covered work except as expressly
+provided under this License. Any attempt otherwise to propagate or
+modify it is void, and will automatically terminate your rights under
+this License (including any patent licenses granted under the third
+paragraph of section 11).
+
+ However, if you cease all violation of this License, then your
+license from a particular copyright holder is reinstated (a)
+provisionally, unless and until the copyright holder explicitly and
+finally terminates your license, and (b) permanently, if the copyright
+holder fails to notify you of the violation by some reasonable means
+prior to 60 days after the cessation.
+
+ Moreover, your license from a particular copyright holder is
+reinstated permanently if the copyright holder notifies you of the
+violation by some reasonable means, this is the first time you have
+received notice of violation of this License (for any work) from that
+copyright holder, and you cure the violation prior to 30 days after
+your receipt of the notice.
+
+ Termination of your rights under this section does not terminate the
+licenses of parties who have received copies or rights from you under
+this License. If your rights have been terminated and not permanently
+reinstated, you do not qualify to receive new licenses for the same
+material under section 10.
+
+ 9. Acceptance Not Required for Having Copies.
+
+ You are not required to accept this License in order to receive or
+run a copy of the Program. Ancillary propagation of a covered work
+occurring solely as a consequence of using peer-to-peer transmission
+to receive a copy likewise does not require acceptance. However,
+nothing other than this License grants you permission to propagate or
+modify any covered work. These actions infringe copyright if you do
+not accept this License. Therefore, by modifying or propagating a
+covered work, you indicate your acceptance of this License to do so.
+
+ 10. Automatic Licensing of Downstream Recipients.
+
+ Each time you convey a covered work, the recipient automatically
+receives a license from the original licensors, to run, modify and
+propagate that work, subject to this License. You are not responsible
+for enforcing compliance by third parties with this License.
+
+ An "entity transaction" is a transaction transferring control of an
+organization, or substantially all assets of one, or subdividing an
+organization, or merging organizations. If propagation of a covered
+work results from an entity transaction, each party to that
+transaction who receives a copy of the work also receives whatever
+licenses to the work the party's predecessor in interest had or could
+give under the previous paragraph, plus a right to possession of the
+Corresponding Source of the work from the predecessor in interest, if
+the predecessor has it or can get it with reasonable efforts.
+
+ You may not impose any further restrictions on the exercise of the
+rights granted or affirmed under this License. For example, you may
+not impose a license fee, royalty, or other charge for exercise of
+rights granted under this License, and you may not initiate litigation
+(including a cross-claim or counterclaim in a lawsuit) alleging that
+any patent claim is infringed by making, using, selling, offering for
+sale, or importing the Program or any portion of it.
+
+ 11. Patents.
+
+ A "contributor" is a copyright holder who authorizes use under this
+License of the Program or a work on which the Program is based. The
+work thus licensed is called the contributor's "contributor version".
+
+ A contributor's "essential patent claims" are all patent claims
+owned or controlled by the contributor, whether already acquired or
+hereafter acquired, that would be infringed by some manner, permitted
+by this License, of making, using, or selling its contributor version,
+but do not include claims that would be infringed only as a
+consequence of further modification of the contributor version. For
+purposes of this definition, "control" includes the right to grant
+patent sublicenses in a manner consistent with the requirements of
+this License.
+
+ Each contributor grants you a non-exclusive, worldwide, royalty-free
+patent license under the contributor's essential patent claims, to
+make, use, sell, offer for sale, import and otherwise run, modify and
+propagate the contents of its contributor version.
+
+ In the following three paragraphs, a "patent license" is any express
+agreement or commitment, however denominated, not to enforce a patent
+(such as an express permission to practice a patent or covenant not to
+sue for patent infringement). To "grant" such a patent license to a
+party means to make such an agreement or commitment not to enforce a
+patent against the party.
+
+ If you convey a covered work, knowingly relying on a patent license,
+and the Corresponding Source of the work is not available for anyone
+to copy, free of charge and under the terms of this License, through a
+publicly available network server or other readily accessible means,
+then you must either (1) cause the Corresponding Source to be so
+available, or (2) arrange to deprive yourself of the benefit of the
+patent license for this particular work, or (3) arrange, in a manner
+consistent with the requirements of this License, to extend the patent
+license to downstream recipients. "Knowingly relying" means you have
+actual knowledge that, but for the patent license, your conveying the
+covered work in a country, or your recipient's use of the covered work
+in a country, would infringe one or more identifiable patents in that
+country that you have reason to believe are valid.
+
+ If, pursuant to or in connection with a single transaction or
+arrangement, you convey, or propagate by procuring conveyance of, a
+covered work, and grant a patent license to some of the parties
+receiving the covered work authorizing them to use, propagate, modify
+or convey a specific copy of the covered work, then the patent license
+you grant is automatically extended to all recipients of the covered
+work and works based on it.
+
+ A patent license is "discriminatory" if it does not include within
+the scope of its coverage, prohibits the exercise of, or is
+conditioned on the non-exercise of one or more of the rights that are
+specifically granted under this License. You may not convey a covered
+work if you are a party to an arrangement with a third party that is
+in the business of distributing software, under which you make payment
+to the third party based on the extent of your activity of conveying
+the work, and under which the third party grants, to any of the
+parties who would receive the covered work from you, a discriminatory
+patent license (a) in connection with copies of the covered work
+conveyed by you (or copies made from those copies), or (b) primarily
+for and in connection with specific products or compilations that
+contain the covered work, unless you entered into that arrangement,
+or that patent license was granted, prior to 28 March 2007.
+
+ Nothing in this License shall be construed as excluding or limiting
+any implied license or other defenses to infringement that may
+otherwise be available to you under applicable patent law.
+
+ 12. No Surrender of Others' Freedom.
+
+ If conditions are imposed on you (whether by court order, agreement or
+otherwise) that contradict the conditions of this License, they do not
+excuse you from the conditions of this License. If you cannot convey a
+covered work so as to satisfy simultaneously your obligations under this
+License and any other pertinent obligations, then as a consequence you may
+not convey it at all. For example, if you agree to terms that obligate you
+to collect a royalty for further conveying from those to whom you convey
+the Program, the only way you could satisfy both those terms and this
+License would be to refrain entirely from conveying the Program.
+
+ 13. Use with the GNU Affero General Public License.
+
+ Notwithstanding any other provision of this License, you have
+permission to link or combine any covered work with a work licensed
+under version 3 of the GNU Affero General Public License into a single
+combined work, and to convey the resulting work. The terms of this
+License will continue to apply to the part which is the covered work,
+but the special requirements of the GNU Affero General Public License,
+section 13, concerning interaction through a network will apply to the
+combination as such.
+
+ 14. Revised Versions of this License.
+
+ The Free Software Foundation may publish revised and/or new versions of
+the GNU General Public License from time to time. Such new versions will
+be similar in spirit to the present version, but may differ in detail to
+address new problems or concerns.
+
+ Each version is given a distinguishing version number. If the
+Program specifies that a certain numbered version of the GNU General
+Public License "or any later version" applies to it, you have the
+option of following the terms and conditions either of that numbered
+version or of any later version published by the Free Software
+Foundation. If the Program does not specify a version number of the
+GNU General Public License, you may choose any version ever published
+by the Free Software Foundation.
+
+ If the Program specifies that a proxy can decide which future
+versions of the GNU General Public License can be used, that proxy's
+public statement of acceptance of a version permanently authorizes you
+to choose that version for the Program.
+
+ Later license versions may give you additional or different
+permissions. However, no additional obligations are imposed on any
+author or copyright holder as a result of your choosing to follow a
+later version.
+
+ 15. Disclaimer of Warranty.
+
+ THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
+APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
+HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
+OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
+THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
+IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
+ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
+
+ 16. Limitation of Liability.
+
+ IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
+WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
+THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
+GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
+USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
+DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
+PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
+EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGES.
+
+ 17. Interpretation of Sections 15 and 16.
+
+ If the disclaimer of warranty and limitation of liability provided
+above cannot be given local legal effect according to their terms,
+reviewing courts shall apply local law that most closely approximates
+an absolute waiver of all civil liability in connection with the
+Program, unless a warranty or assumption of liability accompanies a
+copy of the Program in return for a fee.
+
+ END OF TERMS AND CONDITIONS
+
+ How to Apply These Terms to Your New Programs
+
+ If you develop a new program, and you want it to be of the greatest
+possible use to the public, the best way to achieve this is to make it
+free software which everyone can redistribute and change under these terms.
+
+ To do so, attach the following notices to the program. It is safest
+to attach them to the start of each source file to most effectively
+state the exclusion of warranty; and each file should have at least
+the "copyright" line and a pointer to where the full notice is found.
+
+
+ Copyright (C)
+
+ This program is free software: you can redistribute it and/or modify
+ it under the terms of the GNU 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 General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program. If not, see .
+
+Also add information on how to contact you by electronic and paper mail.
+
+ If the program does terminal interaction, make it output a short
+notice like this when it starts in an interactive mode:
+
+ Copyright (C)
+ This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
+ This is free software, and you are welcome to redistribute it
+ under certain conditions; type `show c' for details.
+
+The hypothetical commands `show w' and `show c' should show the appropriate
+parts of the General Public License. Of course, your program's commands
+might be different; for a GUI interface, you would use an "about box".
+
+ You should also get your employer (if you work as a programmer) or school,
+if any, to sign a "copyright disclaimer" for the program, if necessary.
+For more information on this, and how to apply and follow the GNU GPL, see
+.
+
+ The GNU General Public License does not permit incorporating your program
+into proprietary programs. If your program is a subroutine library, you
+may consider it more useful to permit linking proprietary applications with
+the library. If this is what you want to do, use the GNU Lesser General
+Public License instead of this License. But first, please read
+.
diff --git a/vendor/github.com/buckket/go-blurhash/README.md b/vendor/github.com/buckket/go-blurhash/README.md
new file mode 100644
index 000000000..c42db42b9
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/README.md
@@ -0,0 +1,96 @@
+# go-blurhash [![Build Status](https://travis-ci.org/buckket/go-blurhash.svg)](https://travis-ci.org/buckket/go-blurhash) [![Go Report Card](https://goreportcard.com/badge/github.com/buckket/go-blurhash)](https://goreportcard.com/report/github.com/buckket/go-blurhash) [![codecov](https://codecov.io/gh/buckket/go-blurhash/branch/master/graph/badge.svg)](https://codecov.io/gh/buckket/go-blurhash) [![GoDoc](https://godoc.org/github.com/buckket/go-blurhash?status.svg)](https://pkg.go.dev/github.com/buckket/go-blurhash)
+
+**go-blurhash** is a pure Go implementation of the [BlurHash](https://github.com/woltapp/blurhash) algorithm, which is used by
+[Mastodon](https://github.com/tootsuite/mastodon) an other Fediverse software to implement a swift way of preloading placeholder images as well
+as hiding sensitive media. Read more about it [here](https://blog.joinmastodon.org/2019/05/improving-support-for-adult-content-on-mastodon/).
+
+**tl;dr:** BlurHash is a compact representation of a placeholder for an image.
+
+This library allows generating the BlurHash of a given image, as well as
+reconstructing a blurred version with specified dimensions from a given BlurHash.
+
+This library is based on the following reference implementations:
+- Encoder: [https://github.com/woltapp/blurhash/blob/master/C](https://github.com/woltapp/blurhash/blob/master/C) (C)
+- Deocder: [https://github.com/woltapp/blurhash/blob/master/TypeScript](https://github.com/woltapp/blurhash/blob/master/TypeScript) (TypeScript)
+
+BlurHash is written by [Dag Ågren](https://github.com/DagAgren) / [Wolt](https://github.com/woltapp).
+
+| | Before | After |
+| ---------- |:------------------------------:| :-----------------------------:|
+| **Image** | ![alt text][test] | "LFE.@D9F01_2%L%MIVD*9Goe-;WB" |
+| **Hash** | "LFE.@D9F01_2%L%MIVD*9Goe-;WB" | ![alt text][test_blur]
+
+[test]: test.png "Blurhash example input."
+[test_blur]: test_blur.png "Blurhash example output"
+
+## Installation
+
+### From source
+
+ go get -u github.com/buckket/go-blurhash
+
+## Usage
+
+go-blurhash exports three functions:
+```go
+func blurhash.Encode(xComponents, yComponents int, rgba image.Image) (string, error)
+func blurhash.Decode(hash string, width, height, punch int) (image.Image, error)
+func blurhash.Components(hash string) (xComponents, yComponents int, err error)
+```
+
+Here’s a simple demonstration. Check [pkg.go.dev](https://pkg.go.dev/github.com/buckket/go-blurhash) for the full documentation.
+
+```go
+package main
+
+import (
+ "fmt"
+ "github.com/buckket/go-blurhash"
+ "image/png"
+ "os"
+)
+
+func main() {
+ // Generate the BlurHash for a given image
+ imageFile, _ := os.Open("test.png")
+ loadedImage, err := png.Decode(imageFile)
+ str, _ := blurhash.Encode(4, 3, loadedImage)
+ if err != nil {
+ // Handle errors
+ }
+ fmt.Printf("Hash: %s\n", str)
+
+ // Generate an image for a given BlurHash
+ // Width will be 300px and Height will be 500px
+ // Punch specifies the contrasts and defaults to 1
+ img, err := blurhash.Decode(str, 300, 500, 1)
+ if err != nil {
+ // Handle errors
+ }
+ f, _ := os.Create("test_blur.png")
+ _ = png.Encode(f, img)
+
+ // Get the x and y components used for encoding a given BlurHash
+ x, y, err := blurhash.Components("LFE.@D9F01_2%L%MIVD*9Goe-;WB")
+ if err != nil {
+ // Handle errors
+ }
+ fmt.Printf("xComponents: %d, yComponents: %d", x, y)
+}
+```
+
+## Limitations
+
+- Presumably a bit slower than the C implementation (TODO: Benchmarks)
+
+## Notes
+
+- As mentioned [here](https://github.com/woltapp/blurhash#how-fast-is-encoding-decoding), it’s best to
+generate very small images (~32x32px) via BlurHash and scale them up to the desired dimensions afterwards for optimal performance.
+- Since [#2](https://github.com/buckket/go-blurhash/pull/2) we diverted from the reference implementation by memorizing sRGBtoLinear values, thus increasing encoding speed at the cost of higher memory usage.
+- Starting with v1.1.0 the signature of blurhash.Encode() has changed slightly (see [#3](https://github.com/buckket/go-blurhash/issues/3)).
+
+## License
+
+ GNU GPLv3+
+
\ No newline at end of file
diff --git a/vendor/github.com/buckket/go-blurhash/base83/base83.go b/vendor/github.com/buckket/go-blurhash/base83/base83.go
new file mode 100644
index 000000000..6d1882811
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/base83/base83.go
@@ -0,0 +1,58 @@
+package base83
+
+import (
+ "fmt"
+ "math"
+ "strings"
+)
+
+const characters = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz#$%*+,-.:;=?@[]^_{|}~"
+
+// An InvalidCharacterError occurs when a characters is found which is not part of the Base83 character set.
+type InvalidCharacterError rune
+
+func (e InvalidCharacterError) Error() string {
+ return fmt.Sprintf("base83: invalid string (character %q out of range)", rune(e))
+}
+
+// An InvalidLengthError occurs when a given value cannot be encoded to a string of given length.
+type InvalidLengthError int
+
+func (e InvalidLengthError) Error() string {
+ return fmt.Sprintf("base83: invalid length (%d)", int(e))
+}
+
+// Encode will encode the given integer value to a Base83 string with given length.
+// If length is too short to encode the given value InvalidLengthError will be returned.
+func Encode(value, length int) (string, error) {
+ divisor := int(math.Pow(83, float64(length)))
+ if value/divisor != 0 {
+ return "", InvalidLengthError(length)
+ }
+ divisor /= 83
+
+ var str strings.Builder
+ str.Grow(length)
+ for i := 0; i < length; i++ {
+ if divisor <= 0 {
+ return "", InvalidLengthError(length)
+ }
+ digit := (value / divisor) % 83
+ divisor /= 83
+ str.WriteRune(rune(characters[digit]))
+ }
+
+ return str.String(), nil
+}
+
+// Decode will decode the given Base83 string to an integer.
+func Decode(str string) (value int, err error) {
+ for _, r := range str {
+ idx := strings.IndexRune(characters, r)
+ if idx == -1 {
+ return 0, InvalidCharacterError(r)
+ }
+ value = value*83 + idx
+ }
+ return value, nil
+}
diff --git a/vendor/github.com/buckket/go-blurhash/decode.go b/vendor/github.com/buckket/go-blurhash/decode.go
new file mode 100644
index 000000000..58cd7eb63
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/decode.go
@@ -0,0 +1,109 @@
+package blurhash
+
+import (
+ "fmt"
+ "github.com/buckket/go-blurhash/base83"
+ "image"
+ "image/color"
+ "math"
+)
+
+// An InvalidHashError occurs when the given hash is either too short or the length does not match its size flag.
+type InvalidHashError string
+
+func (e InvalidHashError) Error() string {
+ return fmt.Sprintf("blurhash: %s", string(e))
+}
+
+// Components decodes and returns the number of x and y components in the given BlurHash.
+func Components(hash string) (xComponents, yComponents int, err error) {
+ if len(hash) < 6 {
+ return 0, 0, InvalidHashError("hash is invalid (too short)")
+ }
+
+ sizeFlag, err := base83.Decode(string(hash[0]))
+ if err != nil {
+ return 0, 0, err
+ }
+
+ yComponents = (sizeFlag / 9) + 1
+ xComponents = (sizeFlag % 9) + 1
+
+ if len(hash) != 4+2*xComponents*yComponents {
+ return 0, 0, InvalidHashError("hash is invalid (length mismatch)")
+ }
+
+ return xComponents, yComponents, nil
+}
+
+// Decode generates an image of the given BlurHash with a size of width and height.
+// Punch is a multiplier that adjusts the contrast of the resulting image.
+func Decode(hash string, width, height, punch int) (image.Image, error) {
+ xComp, yComp, err := Components(hash)
+ if err != nil {
+ return nil, err
+ }
+
+ quantisedMaximumValue, err := base83.Decode(string(hash[1]))
+ if err != nil {
+ return nil, err
+ }
+ maximumValue := (float64(quantisedMaximumValue) + 1) / 166
+
+ if punch == 0 {
+ punch = 1
+ }
+
+ colors := make([][3]float64, xComp*yComp)
+
+ for i := range colors {
+ if i == 0 {
+ value, err := base83.Decode(hash[2:6])
+ if err != nil {
+ return nil, err
+ }
+ colors[i] = decodeDC(value)
+ } else {
+ value, err := base83.Decode(hash[4+i*2 : 6+i*2])
+ if err != nil {
+ return nil, err
+ }
+ colors[i] = decodeAC(value, maximumValue*float64(punch))
+ }
+ }
+
+ img := image.NewNRGBA(image.Rect(0, 0, width, height))
+
+ for y := 0; y < height; y++ {
+ for x := 0; x < width; x++ {
+ var r, g, b float64
+ for j := 0; j < yComp; j++ {
+ for i := 0; i < xComp; i++ {
+ basis := math.Cos(math.Pi*float64(x)*float64(i)/float64(width)) *
+ math.Cos(math.Pi*float64(y)*float64(j)/float64(height))
+ pcolor := colors[i+j*xComp]
+ r += pcolor[0] * basis
+ g += pcolor[1] * basis
+ b += pcolor[2] * basis
+ }
+ }
+ img.SetNRGBA(x, y, color.NRGBA{R: uint8(linearTosRGB(r)), G: uint8(linearTosRGB(g)), B: uint8(linearTosRGB(b)), A: 255})
+ }
+ }
+
+ return img, nil
+}
+
+func decodeDC(value int) [3]float64 {
+ return [3]float64{sRGBToLinear(value >> 16), sRGBToLinear(value >> 8 & 255), sRGBToLinear(value & 255)}
+}
+
+func decodeAC(value int, maximumValue float64) [3]float64 {
+ quantR := math.Floor(float64(value) / (19 * 19))
+ quantG := math.Mod(math.Floor(float64(value)/19), 19)
+ quantB := math.Mod(float64(value), 19)
+ sp := func(quant float64) float64 {
+ return signPow((quant-9)/9, 2.0) * maximumValue
+ }
+ return [3]float64{sp(quantR), sp(quantG), sp(quantB)}
+}
diff --git a/vendor/github.com/buckket/go-blurhash/encode.go b/vendor/github.com/buckket/go-blurhash/encode.go
new file mode 100644
index 000000000..dd1cdec6f
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/encode.go
@@ -0,0 +1,164 @@
+package blurhash
+
+import (
+ "fmt"
+ "github.com/buckket/go-blurhash/base83"
+ "image"
+ "math"
+ "strings"
+)
+
+func init() {
+ initLinearTable(channelToLinear[:])
+}
+
+var channelToLinear [256]float64
+
+func initLinearTable(table []float64) {
+ for i := range table {
+ channelToLinear[i] = sRGBToLinear(i)
+ }
+}
+
+// An InvalidParameterError occurs when an invalid argument is passed to either the Decode or Encode function.
+type InvalidParameterError struct {
+ Value int
+ Parameter string
+}
+
+func (e InvalidParameterError) Error() string {
+ return fmt.Sprintf("blurhash: %sComponents (%d) must be element of [1-9]", e.Parameter, e.Value)
+}
+
+// An EncodingError represents an error that occurred during the encoding of the given value.
+// This most likely means that your input image is invalid and can not be processed.
+type EncodingError string
+
+func (e EncodingError) Error() string {
+ return fmt.Sprintf("blurhash: %s", string(e))
+}
+
+// Encode calculates the Blurhash for an image using the given x and y component counts.
+// The x and y components have to be between 1 and 9 respectively.
+// The image must be of image.Image type.
+func Encode(xComponents int, yComponents int, rgba image.Image) (string, error) {
+ if xComponents < 1 || xComponents > 9 {
+ return "", InvalidParameterError{xComponents, "x"}
+ }
+ if yComponents < 1 || yComponents > 9 {
+ return "", InvalidParameterError{yComponents, "y"}
+ }
+
+ var blurhash strings.Builder
+ blurhash.Grow(4 + 2*xComponents*yComponents)
+
+ // Size Flag
+ str, err := base83.Encode((xComponents-1)+(yComponents-1)*9, 1)
+ if err != nil {
+ return "", EncodingError("could not encode size flag")
+ }
+ blurhash.WriteString(str)
+
+ factors := make([]float64, yComponents*xComponents*3)
+ multiplyBasisFunction(rgba, factors, xComponents, yComponents)
+
+ var maximumValue float64
+ var quantisedMaximumValue int
+ var acCount = xComponents*yComponents - 1
+ if acCount > 0 {
+ var actualMaximumValue float64
+ for i := 0; i < acCount*3; i++ {
+ actualMaximumValue = math.Max(math.Abs(factors[i+3]), actualMaximumValue)
+ }
+ quantisedMaximumValue = int(math.Max(0, math.Min(82, math.Floor(actualMaximumValue*166-0.5))))
+ maximumValue = (float64(quantisedMaximumValue) + 1) / 166
+ } else {
+ maximumValue = 1
+ }
+
+ // Quantised max AC component
+ str, err = base83.Encode(quantisedMaximumValue, 1)
+ if err != nil {
+ return "", EncodingError("could not encode quantised max AC component")
+ }
+ blurhash.WriteString(str)
+
+ // DC value
+ str, err = base83.Encode(encodeDC(factors[0], factors[1], factors[2]), 4)
+ if err != nil {
+ return "", EncodingError("could not encode DC value")
+ }
+ blurhash.WriteString(str)
+
+ // AC values
+ for i := 0; i < acCount; i++ {
+ str, err = base83.Encode(encodeAC(factors[3+(i*3+0)], factors[3+(i*3+1)], factors[3+(i*3+2)], maximumValue), 2)
+ if err != nil {
+ return "", EncodingError("could not encode AC value")
+ }
+ blurhash.WriteString(str)
+ }
+
+ if blurhash.Len() != 4+2*xComponents*yComponents {
+ return "", EncodingError("hash does not match expected size")
+ }
+
+ return blurhash.String(), nil
+}
+
+func multiplyBasisFunction(rgba image.Image, factors []float64, xComponents int, yComponents int) {
+ height := rgba.Bounds().Max.Y
+ width := rgba.Bounds().Max.X
+
+ xvalues := make([][]float64, xComponents)
+ for xComponent := 0; xComponent < xComponents; xComponent++ {
+ xvalues[xComponent] = make([]float64, width)
+ for x := 0; x < width; x++ {
+ xvalues[xComponent][x] = math.Cos(math.Pi * float64(xComponent) * float64(x) / float64(width))
+ }
+ }
+
+ yvalues := make([][]float64, yComponents)
+ for yComponent := 0; yComponent < yComponents; yComponent++ {
+ yvalues[yComponent] = make([]float64, height)
+ for y := 0; y < height; y++ {
+ yvalues[yComponent][y] = math.Cos(math.Pi * float64(yComponent) * float64(y) / float64(height))
+ }
+ }
+
+ for y := 0; y < height; y++ {
+ for x := 0; x < width; x++ {
+ rt, gt, bt, _ := rgba.At(x, y).RGBA()
+ lr := channelToLinear[rt>>8]
+ lg := channelToLinear[gt>>8]
+ lb := channelToLinear[bt>>8]
+
+ for yc := 0; yc < yComponents; yc++ {
+ for xc := 0; xc < xComponents; xc++ {
+
+ scale := 1 / float64(width*height)
+
+ if xc != 0 || yc != 0 {
+ scale = 2 / float64(width*height)
+ }
+
+ basis := xvalues[xc][x] * yvalues[yc][y]
+ factors[0+xc*3+yc*3*xComponents] += lr * basis * scale
+ factors[1+xc*3+yc*3*xComponents] += lg * basis * scale
+ factors[2+xc*3+yc*3*xComponents] += lb * basis * scale
+ }
+ }
+ }
+ }
+}
+
+func encodeDC(r, g, b float64) int {
+ return (linearTosRGB(r) << 16) + (linearTosRGB(g) << 8) + linearTosRGB(b)
+}
+
+func encodeAC(r, g, b, maximumValue float64) int {
+ quant := func(f float64) int {
+ return int(math.Max(0, math.Min(18, math.Floor(signPow(f/maximumValue, 0.5)*9+9.5))))
+ }
+ return quant(r)*19*19 + quant(g)*19 + quant(b)
+}
diff --git a/vendor/github.com/buckket/go-blurhash/go.mod b/vendor/github.com/buckket/go-blurhash/go.mod
new file mode 100644
index 000000000..0483219a0
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/go.mod
@@ -0,0 +1,3 @@
+module github.com/buckket/go-blurhash
+
+go 1.14
diff --git a/vendor/github.com/buckket/go-blurhash/test.png b/vendor/github.com/buckket/go-blurhash/test.png
new file mode 100644
index 000000000..315a1bd09
Binary files /dev/null and b/vendor/github.com/buckket/go-blurhash/test.png differ
diff --git a/vendor/github.com/buckket/go-blurhash/test_blur.png b/vendor/github.com/buckket/go-blurhash/test_blur.png
new file mode 100644
index 000000000..997429057
Binary files /dev/null and b/vendor/github.com/buckket/go-blurhash/test_blur.png differ
diff --git a/vendor/github.com/buckket/go-blurhash/utils.go b/vendor/github.com/buckket/go-blurhash/utils.go
new file mode 100644
index 000000000..593ab61d5
--- /dev/null
+++ b/vendor/github.com/buckket/go-blurhash/utils.go
@@ -0,0 +1,23 @@
+package blurhash
+
+import "math"
+
+func linearTosRGB(value float64) int {
+ v := math.Max(0, math.Min(1, value))
+ if v <= 0.0031308 {
+ return int(v*12.92*255 + 0.5)
+ }
+ return int((1.055*math.Pow(v, 1/2.4)-0.055)*255 + 0.5)
+}
+
+func sRGBToLinear(value int) float64 {
+ v := float64(value) / 255
+ if v <= 0.04045 {
+ return v / 12.92
+ }
+ return math.Pow((v+0.055)/1.055, 2.4)
+}
+
+func signPow(value, exp float64) float64 {
+ return math.Copysign(math.Pow(math.Abs(value), exp), value)
+}
diff --git a/vendor/github.com/coreos/go-oidc/v3/LICENSE b/vendor/github.com/coreos/go-oidc/v3/LICENSE
new file mode 100644
index 000000000..e06d20818
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/LICENSE
@@ -0,0 +1,202 @@
+Apache License
+ Version 2.0, January 2004
+ http://www.apache.org/licenses/
+
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+ 1. Definitions.
+
+ "License" shall mean the terms and conditions for use, reproduction,
+ and distribution as defined by Sections 1 through 9 of this document.
+
+ "Licensor" shall mean the copyright owner or entity authorized by
+ the copyright owner that is granting the License.
+
+ "Legal Entity" shall mean the union of the acting entity and all
+ other entities that control, are controlled by, or are under common
+ control with that entity. For the purposes of this definition,
+ "control" means (i) the power, direct or indirect, to cause the
+ direction or management of such entity, whether by contract or
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
+ outstanding shares, or (iii) beneficial ownership of such entity.
+
+ "You" (or "Your") shall mean an individual or Legal Entity
+ exercising permissions granted by this License.
+
+ "Source" form shall mean the preferred form for making modifications,
+ including but not limited to software source code, documentation
+ source, and configuration files.
+
+ "Object" form shall mean any form resulting from mechanical
+ transformation or translation of a Source form, including but
+ not limited to compiled object code, generated documentation,
+ and conversions to other media types.
+
+ "Work" shall mean the work of authorship, whether in Source or
+ Object form, made available under the License, as indicated by a
+ copyright notice that is included in or attached to the work
+ (an example is provided in the Appendix below).
+
+ "Derivative Works" shall mean any work, whether in Source or Object
+ form, that is based on (or derived from) the Work and for which the
+ editorial revisions, annotations, elaborations, or other modifications
+ represent, as a whole, an original work of authorship. For the purposes
+ of this License, Derivative Works shall not include works that remain
+ separable from, or merely link (or bind by name) to the interfaces of,
+ the Work and Derivative Works thereof.
+
+ "Contribution" shall mean any work of authorship, including
+ the original version of the Work and any modifications or additions
+ to that Work or Derivative Works thereof, that is intentionally
+ submitted to Licensor for inclusion in the Work by the copyright owner
+ or by an individual or Legal Entity authorized to submit on behalf of
+ the copyright owner. For the purposes of this definition, "submitted"
+ means any form of electronic, verbal, or written communication sent
+ to the Licensor or its representatives, including but not limited to
+ communication on electronic mailing lists, source code control systems,
+ and issue tracking systems that are managed by, or on behalf of, the
+ Licensor for the purpose of discussing and improving the Work, but
+ excluding communication that is conspicuously marked or otherwise
+ designated in writing by the copyright owner as "Not a Contribution."
+
+ "Contributor" shall mean Licensor and any individual or Legal Entity
+ on behalf of whom a Contribution has been received by Licensor and
+ subsequently incorporated within the Work.
+
+ 2. Grant of Copyright License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ copyright license to reproduce, prepare Derivative Works of,
+ publicly display, publicly perform, sublicense, and distribute the
+ Work and such Derivative Works in Source or Object form.
+
+ 3. Grant of Patent License. Subject to the terms and conditions of
+ this License, each Contributor hereby grants to You a perpetual,
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+ (except as stated in this section) patent license to make, have made,
+ use, offer to sell, sell, import, and otherwise transfer the Work,
+ where such license applies only to those patent claims licensable
+ by such Contributor that are necessarily infringed by their
+ Contribution(s) alone or by combination of their Contribution(s)
+ with the Work to which such Contribution(s) was submitted. If You
+ institute patent litigation against any entity (including a
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
+ or a Contribution incorporated within the Work constitutes direct
+ or contributory patent infringement, then any patent licenses
+ granted to You under this License for that Work shall terminate
+ as of the date such litigation is filed.
+
+ 4. Redistribution. You may reproduce and distribute copies of the
+ Work or Derivative Works thereof in any medium, with or without
+ modifications, and in Source or Object form, provided that You
+ meet the following conditions:
+
+ (a) You must give any other recipients of the Work or
+ Derivative Works a copy of this License; and
+
+ (b) You must cause any modified files to carry prominent notices
+ stating that You changed the files; and
+
+ (c) You must retain, in the Source form of any Derivative Works
+ that You distribute, all copyright, patent, trademark, and
+ attribution notices from the Source form of the Work,
+ excluding those notices that do not pertain to any part of
+ the Derivative Works; and
+
+ (d) If the Work includes a "NOTICE" text file as part of its
+ distribution, then any Derivative Works that You distribute must
+ include a readable copy of the attribution notices contained
+ within such NOTICE file, excluding those notices that do not
+ pertain to any part of the Derivative Works, in at least one
+ of the following places: within a NOTICE text file distributed
+ as part of the Derivative Works; within the Source form or
+ documentation, if provided along with the Derivative Works; or,
+ within a display generated by the Derivative Works, if and
+ wherever such third-party notices normally appear. The contents
+ of the NOTICE file are for informational purposes only and
+ do not modify the License. You may add Your own attribution
+ notices within Derivative Works that You distribute, alongside
+ or as an addendum to the NOTICE text from the Work, provided
+ that such additional attribution notices cannot be construed
+ as modifying the License.
+
+ You may add Your own copyright statement to Your modifications and
+ may provide additional or different license terms and conditions
+ for use, reproduction, or distribution of Your modifications, or
+ for any such Derivative Works as a whole, provided Your use,
+ reproduction, and distribution of the Work otherwise complies with
+ the conditions stated in this License.
+
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
+ any Contribution intentionally submitted for inclusion in the Work
+ by You to the Licensor shall be under the terms and conditions of
+ this License, without any additional terms or conditions.
+ Notwithstanding the above, nothing herein shall supersede or modify
+ the terms of any separate license agreement you may have executed
+ with Licensor regarding such Contributions.
+
+ 6. Trademarks. This License does not grant permission to use the trade
+ names, trademarks, service marks, or product names of the Licensor,
+ except as required for reasonable and customary use in describing the
+ origin of the Work and reproducing the content of the NOTICE file.
+
+ 7. Disclaimer of Warranty. Unless required by applicable law or
+ agreed to in writing, Licensor provides the Work (and each
+ Contributor provides its Contributions) on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+ implied, including, without limitation, any warranties or conditions
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+ PARTICULAR PURPOSE. You are solely responsible for determining the
+ appropriateness of using or redistributing the Work and assume any
+ risks associated with Your exercise of permissions under this License.
+
+ 8. Limitation of Liability. In no event and under no legal theory,
+ whether in tort (including negligence), contract, or otherwise,
+ unless required by applicable law (such as deliberate and grossly
+ negligent acts) or agreed to in writing, shall any Contributor be
+ liable to You for damages, including any direct, indirect, special,
+ incidental, or consequential damages of any character arising as a
+ result of this License or out of the use or inability to use the
+ Work (including but not limited to damages for loss of goodwill,
+ work stoppage, computer failure or malfunction, or any and all
+ other commercial damages or losses), even if such Contributor
+ has been advised of the possibility of such damages.
+
+ 9. Accepting Warranty or Additional Liability. While redistributing
+ the Work or Derivative Works thereof, You may choose to offer,
+ and charge a fee for, acceptance of support, warranty, indemnity,
+ or other liability obligations and/or rights consistent with this
+ License. However, in accepting such obligations, You may act only
+ on Your own behalf and on Your sole responsibility, not on behalf
+ of any other Contributor, and only if You agree to indemnify,
+ defend, and hold each Contributor harmless for any liability
+ incurred by, or claims asserted against, such Contributor by reason
+ of your accepting any such warranty or additional liability.
+
+ END OF TERMS AND CONDITIONS
+
+ APPENDIX: How to apply the Apache License to your work.
+
+ To apply the Apache License to your work, attach the following
+ boilerplate notice, with the fields enclosed by brackets "{}"
+ replaced with your own identifying information. (Don't include
+ the brackets!) The text should be enclosed in the appropriate
+ comment syntax for the file format. We also recommend that a
+ file or class name and description of purpose be included on the
+ same "printed page" as the copyright notice for easier
+ identification within third-party archives.
+
+ Copyright {yyyy} {name of copyright owner}
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+
diff --git a/vendor/github.com/coreos/go-oidc/v3/NOTICE b/vendor/github.com/coreos/go-oidc/v3/NOTICE
new file mode 100644
index 000000000..b39ddfa5c
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/NOTICE
@@ -0,0 +1,5 @@
+CoreOS Project
+Copyright 2014 CoreOS, Inc
+
+This product includes software developed at CoreOS, Inc.
+(http://www.coreos.com/).
diff --git a/vendor/github.com/coreos/go-oidc/v3/oidc/jose.go b/vendor/github.com/coreos/go-oidc/v3/oidc/jose.go
new file mode 100644
index 000000000..8afa895c1
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/oidc/jose.go
@@ -0,0 +1,16 @@
+package oidc
+
+// JOSE asymmetric signing algorithm values as defined by RFC 7518
+//
+// see: https://tools.ietf.org/html/rfc7518#section-3.1
+const (
+ RS256 = "RS256" // RSASSA-PKCS-v1.5 using SHA-256
+ RS384 = "RS384" // RSASSA-PKCS-v1.5 using SHA-384
+ RS512 = "RS512" // RSASSA-PKCS-v1.5 using SHA-512
+ ES256 = "ES256" // ECDSA using P-256 and SHA-256
+ ES384 = "ES384" // ECDSA using P-384 and SHA-384
+ ES512 = "ES512" // ECDSA using P-521 and SHA-512
+ PS256 = "PS256" // RSASSA-PSS using SHA256 and MGF1-SHA256
+ PS384 = "PS384" // RSASSA-PSS using SHA384 and MGF1-SHA384
+ PS512 = "PS512" // RSASSA-PSS using SHA512 and MGF1-SHA512
+)
diff --git a/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go b/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go
new file mode 100644
index 000000000..6a162689b
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/oidc/jwks.go
@@ -0,0 +1,208 @@
+package oidc
+
+import (
+ "context"
+ "errors"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "sync"
+ "time"
+
+ jose "gopkg.in/square/go-jose.v2"
+)
+
+// NewRemoteKeySet returns a KeySet that can validate JSON web tokens by using HTTP
+// GETs to fetch JSON web token sets hosted at a remote URL. This is automatically
+// used by NewProvider using the URLs returned by OpenID Connect discovery, but is
+// exposed for providers that don't support discovery or to prevent round trips to the
+// discovery URL.
+//
+// The returned KeySet is a long lived verifier that caches keys based on cache-control
+// headers. Reuse a common remote key set instead of creating new ones as needed.
+func NewRemoteKeySet(ctx context.Context, jwksURL string) *RemoteKeySet {
+ return newRemoteKeySet(ctx, jwksURL, time.Now)
+}
+
+func newRemoteKeySet(ctx context.Context, jwksURL string, now func() time.Time) *RemoteKeySet {
+ if now == nil {
+ now = time.Now
+ }
+ return &RemoteKeySet{jwksURL: jwksURL, ctx: cloneContext(ctx), now: now}
+}
+
+// RemoteKeySet is a KeySet implementation that validates JSON web tokens against
+// a jwks_uri endpoint.
+type RemoteKeySet struct {
+ jwksURL string
+ ctx context.Context
+ now func() time.Time
+
+ // guard all other fields
+ mu sync.Mutex
+
+ // inflight suppresses parallel execution of updateKeys and allows
+ // multiple goroutines to wait for its result.
+ inflight *inflight
+
+ // A set of cached keys.
+ cachedKeys []jose.JSONWebKey
+}
+
+// inflight is used to wait on some in-flight request from multiple goroutines.
+type inflight struct {
+ doneCh chan struct{}
+
+ keys []jose.JSONWebKey
+ err error
+}
+
+func newInflight() *inflight {
+ return &inflight{doneCh: make(chan struct{})}
+}
+
+// wait returns a channel that multiple goroutines can receive on. Once it returns
+// a value, the inflight request is done and result() can be inspected.
+func (i *inflight) wait() <-chan struct{} {
+ return i.doneCh
+}
+
+// done can only be called by a single goroutine. It records the result of the
+// inflight request and signals other goroutines that the result is safe to
+// inspect.
+func (i *inflight) done(keys []jose.JSONWebKey, err error) {
+ i.keys = keys
+ i.err = err
+ close(i.doneCh)
+}
+
+// result cannot be called until the wait() channel has returned a value.
+func (i *inflight) result() ([]jose.JSONWebKey, error) {
+ return i.keys, i.err
+}
+
+// VerifySignature validates a payload against a signature from the jwks_uri.
+//
+// Users MUST NOT call this method directly and should use an IDTokenVerifier
+// instead. This method skips critical validations such as 'alg' values and is
+// only exported to implement the KeySet interface.
+func (r *RemoteKeySet) VerifySignature(ctx context.Context, jwt string) ([]byte, error) {
+ jws, err := jose.ParseSigned(jwt)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: malformed jwt: %v", err)
+ }
+ return r.verify(ctx, jws)
+}
+
+func (r *RemoteKeySet) verify(ctx context.Context, jws *jose.JSONWebSignature) ([]byte, error) {
+ // We don't support JWTs signed with multiple signatures.
+ keyID := ""
+ for _, sig := range jws.Signatures {
+ keyID = sig.Header.KeyID
+ break
+ }
+
+ keys := r.keysFromCache()
+ for _, key := range keys {
+ if keyID == "" || key.KeyID == keyID {
+ if payload, err := jws.Verify(&key); err == nil {
+ return payload, nil
+ }
+ }
+ }
+
+ // If the kid doesn't match, check for new keys from the remote. This is the
+ // strategy recommended by the spec.
+ //
+ // https://openid.net/specs/openid-connect-core-1_0.html#RotateSigKeys
+ keys, err := r.keysFromRemote(ctx)
+ if err != nil {
+ return nil, fmt.Errorf("fetching keys %v", err)
+ }
+
+ for _, key := range keys {
+ if keyID == "" || key.KeyID == keyID {
+ if payload, err := jws.Verify(&key); err == nil {
+ return payload, nil
+ }
+ }
+ }
+ return nil, errors.New("failed to verify id token signature")
+}
+
+func (r *RemoteKeySet) keysFromCache() (keys []jose.JSONWebKey) {
+ r.mu.Lock()
+ defer r.mu.Unlock()
+ return r.cachedKeys
+}
+
+// keysFromRemote syncs the key set from the remote set, records the values in the
+// cache, and returns the key set.
+func (r *RemoteKeySet) keysFromRemote(ctx context.Context) ([]jose.JSONWebKey, error) {
+ // Need to lock to inspect the inflight request field.
+ r.mu.Lock()
+ // If there's not a current inflight request, create one.
+ if r.inflight == nil {
+ r.inflight = newInflight()
+
+ // This goroutine has exclusive ownership over the current inflight
+ // request. It releases the resource by nil'ing the inflight field
+ // once the goroutine is done.
+ go func() {
+ // Sync keys and finish inflight when that's done.
+ keys, err := r.updateKeys()
+
+ r.inflight.done(keys, err)
+
+ // Lock to update the keys and indicate that there is no longer an
+ // inflight request.
+ r.mu.Lock()
+ defer r.mu.Unlock()
+
+ if err == nil {
+ r.cachedKeys = keys
+ }
+
+ // Free inflight so a different request can run.
+ r.inflight = nil
+ }()
+ }
+ inflight := r.inflight
+ r.mu.Unlock()
+
+ select {
+ case <-ctx.Done():
+ return nil, ctx.Err()
+ case <-inflight.wait():
+ return inflight.result()
+ }
+}
+
+func (r *RemoteKeySet) updateKeys() ([]jose.JSONWebKey, error) {
+ req, err := http.NewRequest("GET", r.jwksURL, nil)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: can't create request: %v", err)
+ }
+
+ resp, err := doRequest(r.ctx, req)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: get keys failed %v", err)
+ }
+ defer resp.Body.Close()
+
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return nil, fmt.Errorf("unable to read response body: %v", err)
+ }
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("oidc: get keys failed: %s %s", resp.Status, body)
+ }
+
+ var keySet jose.JSONWebKeySet
+ err = unmarshalResp(resp, body, &keySet)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: failed to decode keys: %v %s", err, body)
+ }
+ return keySet.Keys, nil
+}
diff --git a/vendor/github.com/coreos/go-oidc/v3/oidc/oidc.go b/vendor/github.com/coreos/go-oidc/v3/oidc/oidc.go
new file mode 100644
index 000000000..9726f13bd
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/oidc/oidc.go
@@ -0,0 +1,459 @@
+// Package oidc implements OpenID Connect client logic for the golang.org/x/oauth2 package.
+package oidc
+
+import (
+ "context"
+ "crypto/sha256"
+ "crypto/sha512"
+ "encoding/base64"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "hash"
+ "io/ioutil"
+ "mime"
+ "net/http"
+ "strings"
+ "time"
+
+ "golang.org/x/oauth2"
+ jose "gopkg.in/square/go-jose.v2"
+)
+
+const (
+ // ScopeOpenID is the mandatory scope for all OpenID Connect OAuth2 requests.
+ ScopeOpenID = "openid"
+
+ // ScopeOfflineAccess is an optional scope defined by OpenID Connect for requesting
+ // OAuth2 refresh tokens.
+ //
+ // Support for this scope differs between OpenID Connect providers. For instance
+ // Google rejects it, favoring appending "access_type=offline" as part of the
+ // authorization request instead.
+ //
+ // See: https://openid.net/specs/openid-connect-core-1_0.html#OfflineAccess
+ ScopeOfflineAccess = "offline_access"
+)
+
+var (
+ errNoAtHash = errors.New("id token did not have an access token hash")
+ errInvalidAtHash = errors.New("access token hash does not match value in ID token")
+)
+
+// ClientContext returns a new Context that carries the provided HTTP client.
+//
+// This method sets the same context key used by the golang.org/x/oauth2 package,
+// so the returned context works for that package too.
+//
+// myClient := &http.Client{}
+// ctx := oidc.ClientContext(parentContext, myClient)
+//
+// // This will use the custom client
+// provider, err := oidc.NewProvider(ctx, "https://accounts.example.com")
+//
+func ClientContext(ctx context.Context, client *http.Client) context.Context {
+ return context.WithValue(ctx, oauth2.HTTPClient, client)
+}
+
+// cloneContext copies a context's bag-of-values into a new context that isn't
+// associated with its cancelation. This is used to initialize remote keys sets
+// which run in the background and aren't associated with the initial context.
+func cloneContext(ctx context.Context) context.Context {
+ cp := context.Background()
+ if c, ok := ctx.Value(oauth2.HTTPClient).(*http.Client); ok {
+ cp = ClientContext(cp, c)
+ }
+ return cp
+}
+
+func doRequest(ctx context.Context, req *http.Request) (*http.Response, error) {
+ client := http.DefaultClient
+ if c, ok := ctx.Value(oauth2.HTTPClient).(*http.Client); ok {
+ client = c
+ }
+ return client.Do(req.WithContext(ctx))
+}
+
+// Provider represents an OpenID Connect server's configuration.
+type Provider struct {
+ issuer string
+ authURL string
+ tokenURL string
+ userInfoURL string
+ algorithms []string
+
+ // Raw claims returned by the server.
+ rawClaims []byte
+
+ remoteKeySet KeySet
+}
+
+type cachedKeys struct {
+ keys []jose.JSONWebKey
+ expiry time.Time
+}
+
+type providerJSON struct {
+ Issuer string `json:"issuer"`
+ AuthURL string `json:"authorization_endpoint"`
+ TokenURL string `json:"token_endpoint"`
+ JWKSURL string `json:"jwks_uri"`
+ UserInfoURL string `json:"userinfo_endpoint"`
+ Algorithms []string `json:"id_token_signing_alg_values_supported"`
+}
+
+// supportedAlgorithms is a list of algorithms explicitly supported by this
+// package. If a provider supports other algorithms, such as HS256 or none,
+// those values won't be passed to the IDTokenVerifier.
+var supportedAlgorithms = map[string]bool{
+ RS256: true,
+ RS384: true,
+ RS512: true,
+ ES256: true,
+ ES384: true,
+ ES512: true,
+ PS256: true,
+ PS384: true,
+ PS512: true,
+}
+
+// NewProvider uses the OpenID Connect discovery mechanism to construct a Provider.
+//
+// The issuer is the URL identifier for the service. For example: "https://accounts.google.com"
+// or "https://login.salesforce.com".
+func NewProvider(ctx context.Context, issuer string) (*Provider, error) {
+ wellKnown := strings.TrimSuffix(issuer, "/") + "/.well-known/openid-configuration"
+ req, err := http.NewRequest("GET", wellKnown, nil)
+ if err != nil {
+ return nil, err
+ }
+ resp, err := doRequest(ctx, req)
+ if err != nil {
+ return nil, err
+ }
+ defer resp.Body.Close()
+
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return nil, fmt.Errorf("unable to read response body: %v", err)
+ }
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("%s: %s", resp.Status, body)
+ }
+
+ var p providerJSON
+ err = unmarshalResp(resp, body, &p)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: failed to decode provider discovery object: %v", err)
+ }
+
+ if p.Issuer != issuer {
+ return nil, fmt.Errorf("oidc: issuer did not match the issuer returned by provider, expected %q got %q", issuer, p.Issuer)
+ }
+ var algs []string
+ for _, a := range p.Algorithms {
+ if supportedAlgorithms[a] {
+ algs = append(algs, a)
+ }
+ }
+ return &Provider{
+ issuer: p.Issuer,
+ authURL: p.AuthURL,
+ tokenURL: p.TokenURL,
+ userInfoURL: p.UserInfoURL,
+ algorithms: algs,
+ rawClaims: body,
+ remoteKeySet: NewRemoteKeySet(cloneContext(ctx), p.JWKSURL),
+ }, nil
+}
+
+// Claims unmarshals raw fields returned by the server during discovery.
+//
+// var claims struct {
+// ScopesSupported []string `json:"scopes_supported"`
+// ClaimsSupported []string `json:"claims_supported"`
+// }
+//
+// if err := provider.Claims(&claims); err != nil {
+// // handle unmarshaling error
+// }
+//
+// For a list of fields defined by the OpenID Connect spec see:
+// https://openid.net/specs/openid-connect-discovery-1_0.html#ProviderMetadata
+func (p *Provider) Claims(v interface{}) error {
+ if p.rawClaims == nil {
+ return errors.New("oidc: claims not set")
+ }
+ return json.Unmarshal(p.rawClaims, v)
+}
+
+// Endpoint returns the OAuth2 auth and token endpoints for the given provider.
+func (p *Provider) Endpoint() oauth2.Endpoint {
+ return oauth2.Endpoint{AuthURL: p.authURL, TokenURL: p.tokenURL}
+}
+
+// UserInfo represents the OpenID Connect userinfo claims.
+type UserInfo struct {
+ Subject string `json:"sub"`
+ Profile string `json:"profile"`
+ Email string `json:"email"`
+ EmailVerified bool `json:"email_verified"`
+
+ claims []byte
+}
+
+type userInfoRaw struct {
+ Subject string `json:"sub"`
+ Profile string `json:"profile"`
+ Email string `json:"email"`
+ // Handle providers that return email_verified as a string
+ // https://forums.aws.amazon.com/thread.jspa?messageID=949441 and
+ // https://discuss.elastic.co/t/openid-error-after-authenticating-against-aws-cognito/206018/11
+ EmailVerified stringAsBool `json:"email_verified"`
+}
+
+// Claims unmarshals the raw JSON object claims into the provided object.
+func (u *UserInfo) Claims(v interface{}) error {
+ if u.claims == nil {
+ return errors.New("oidc: claims not set")
+ }
+ return json.Unmarshal(u.claims, v)
+}
+
+// UserInfo uses the token source to query the provider's user info endpoint.
+func (p *Provider) UserInfo(ctx context.Context, tokenSource oauth2.TokenSource) (*UserInfo, error) {
+ if p.userInfoURL == "" {
+ return nil, errors.New("oidc: user info endpoint is not supported by this provider")
+ }
+
+ req, err := http.NewRequest("GET", p.userInfoURL, nil)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: create GET request: %v", err)
+ }
+
+ token, err := tokenSource.Token()
+ if err != nil {
+ return nil, fmt.Errorf("oidc: get access token: %v", err)
+ }
+ token.SetAuthHeader(req)
+
+ resp, err := doRequest(ctx, req)
+ if err != nil {
+ return nil, err
+ }
+ defer resp.Body.Close()
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return nil, err
+ }
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("%s: %s", resp.Status, body)
+ }
+
+ ct := resp.Header.Get("Content-Type")
+ mediaType, _, parseErr := mime.ParseMediaType(ct)
+ if parseErr == nil && mediaType == "application/jwt" {
+ payload, err := p.remoteKeySet.VerifySignature(ctx, string(body))
+ if err != nil {
+ return nil, fmt.Errorf("oidc: invalid userinfo jwt signature %v", err)
+ }
+ body = payload
+ }
+
+ var userInfo userInfoRaw
+ if err := json.Unmarshal(body, &userInfo); err != nil {
+ return nil, fmt.Errorf("oidc: failed to decode userinfo: %v", err)
+ }
+ return &UserInfo{
+ Subject: userInfo.Subject,
+ Profile: userInfo.Profile,
+ Email: userInfo.Email,
+ EmailVerified: bool(userInfo.EmailVerified),
+ claims: body,
+ }, nil
+}
+
+// IDToken is an OpenID Connect extension that provides a predictable representation
+// of an authorization event.
+//
+// The ID Token only holds fields OpenID Connect requires. To access additional
+// claims returned by the server, use the Claims method.
+type IDToken struct {
+ // The URL of the server which issued this token. OpenID Connect
+ // requires this value always be identical to the URL used for
+ // initial discovery.
+ //
+ // Note: Because of a known issue with Google Accounts' implementation
+ // this value may differ when using Google.
+ //
+ // See: https://developers.google.com/identity/protocols/OpenIDConnect#obtainuserinfo
+ Issuer string
+
+ // The client ID, or set of client IDs, that this token is issued for. For
+ // common uses, this is the client that initialized the auth flow.
+ //
+ // This package ensures the audience contains an expected value.
+ Audience []string
+
+ // A unique string which identifies the end user.
+ Subject string
+
+ // Expiry of the token. Ths package will not process tokens that have
+ // expired unless that validation is explicitly turned off.
+ Expiry time.Time
+ // When the token was issued by the provider.
+ IssuedAt time.Time
+
+ // Initial nonce provided during the authentication redirect.
+ //
+ // This package does NOT provided verification on the value of this field
+ // and it's the user's responsibility to ensure it contains a valid value.
+ Nonce string
+
+ // at_hash claim, if set in the ID token. Callers can verify an access token
+ // that corresponds to the ID token using the VerifyAccessToken method.
+ AccessTokenHash string
+
+ // signature algorithm used for ID token, needed to compute a verification hash of an
+ // access token
+ sigAlgorithm string
+
+ // Raw payload of the id_token.
+ claims []byte
+
+ // Map of distributed claim names to claim sources
+ distributedClaims map[string]claimSource
+}
+
+// Claims unmarshals the raw JSON payload of the ID Token into a provided struct.
+//
+// idToken, err := idTokenVerifier.Verify(rawIDToken)
+// if err != nil {
+// // handle error
+// }
+// var claims struct {
+// Email string `json:"email"`
+// EmailVerified bool `json:"email_verified"`
+// }
+// if err := idToken.Claims(&claims); err != nil {
+// // handle error
+// }
+//
+func (i *IDToken) Claims(v interface{}) error {
+ if i.claims == nil {
+ return errors.New("oidc: claims not set")
+ }
+ return json.Unmarshal(i.claims, v)
+}
+
+// VerifyAccessToken verifies that the hash of the access token that corresponds to the iD token
+// matches the hash in the id token. It returns an error if the hashes don't match.
+// It is the caller's responsibility to ensure that the optional access token hash is present for the ID token
+// before calling this method. See https://openid.net/specs/openid-connect-core-1_0.html#CodeIDToken
+func (i *IDToken) VerifyAccessToken(accessToken string) error {
+ if i.AccessTokenHash == "" {
+ return errNoAtHash
+ }
+ var h hash.Hash
+ switch i.sigAlgorithm {
+ case RS256, ES256, PS256:
+ h = sha256.New()
+ case RS384, ES384, PS384:
+ h = sha512.New384()
+ case RS512, ES512, PS512:
+ h = sha512.New()
+ default:
+ return fmt.Errorf("oidc: unsupported signing algorithm %q", i.sigAlgorithm)
+ }
+ h.Write([]byte(accessToken)) // hash documents that Write will never return an error
+ sum := h.Sum(nil)[:h.Size()/2]
+ actual := base64.RawURLEncoding.EncodeToString(sum)
+ if actual != i.AccessTokenHash {
+ return errInvalidAtHash
+ }
+ return nil
+}
+
+type idToken struct {
+ Issuer string `json:"iss"`
+ Subject string `json:"sub"`
+ Audience audience `json:"aud"`
+ Expiry jsonTime `json:"exp"`
+ IssuedAt jsonTime `json:"iat"`
+ NotBefore *jsonTime `json:"nbf"`
+ Nonce string `json:"nonce"`
+ AtHash string `json:"at_hash"`
+ ClaimNames map[string]string `json:"_claim_names"`
+ ClaimSources map[string]claimSource `json:"_claim_sources"`
+}
+
+type claimSource struct {
+ Endpoint string `json:"endpoint"`
+ AccessToken string `json:"access_token"`
+}
+
+type stringAsBool bool
+
+func (sb *stringAsBool) UnmarshalJSON(b []byte) error {
+ switch string(b) {
+ case "true", `"true"`:
+ *sb = stringAsBool(true)
+ case "false", `"false"`:
+ *sb = stringAsBool(false)
+ default:
+ return errors.New("invalid value for boolean")
+ }
+ return nil
+}
+
+type audience []string
+
+func (a *audience) UnmarshalJSON(b []byte) error {
+ var s string
+ if json.Unmarshal(b, &s) == nil {
+ *a = audience{s}
+ return nil
+ }
+ var auds []string
+ if err := json.Unmarshal(b, &auds); err != nil {
+ return err
+ }
+ *a = audience(auds)
+ return nil
+}
+
+type jsonTime time.Time
+
+func (j *jsonTime) UnmarshalJSON(b []byte) error {
+ var n json.Number
+ if err := json.Unmarshal(b, &n); err != nil {
+ return err
+ }
+ var unix int64
+
+ if t, err := n.Int64(); err == nil {
+ unix = t
+ } else {
+ f, err := n.Float64()
+ if err != nil {
+ return err
+ }
+ unix = int64(f)
+ }
+ *j = jsonTime(time.Unix(unix, 0))
+ return nil
+}
+
+func unmarshalResp(r *http.Response, body []byte, v interface{}) error {
+ err := json.Unmarshal(body, &v)
+ if err == nil {
+ return nil
+ }
+ ct := r.Header.Get("Content-Type")
+ mediaType, _, parseErr := mime.ParseMediaType(ct)
+ if parseErr == nil && mediaType == "application/json" {
+ return fmt.Errorf("got Content-Type = application/json, but could not unmarshal as JSON: %v", err)
+ }
+ return fmt.Errorf("expected Content-Type = application/json, got %q: %v", ct, err)
+}
diff --git a/vendor/github.com/coreos/go-oidc/v3/oidc/verify.go b/vendor/github.com/coreos/go-oidc/v3/oidc/verify.go
new file mode 100644
index 000000000..5c4d6582c
--- /dev/null
+++ b/vendor/github.com/coreos/go-oidc/v3/oidc/verify.go
@@ -0,0 +1,336 @@
+package oidc
+
+import (
+ "bytes"
+ "context"
+ "encoding/base64"
+ "encoding/json"
+ "errors"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "strings"
+ "time"
+
+ "golang.org/x/oauth2"
+ jose "gopkg.in/square/go-jose.v2"
+)
+
+const (
+ issuerGoogleAccounts = "https://accounts.google.com"
+ issuerGoogleAccountsNoScheme = "accounts.google.com"
+)
+
+// KeySet is a set of publc JSON Web Keys that can be used to validate the signature
+// of JSON web tokens. This is expected to be backed by a remote key set through
+// provider metadata discovery or an in-memory set of keys delivered out-of-band.
+type KeySet interface {
+ // VerifySignature parses the JSON web token, verifies the signature, and returns
+ // the raw payload. Header and claim fields are validated by other parts of the
+ // package. For example, the KeySet does not need to check values such as signature
+ // algorithm, issuer, and audience since the IDTokenVerifier validates these values
+ // independently.
+ //
+ // If VerifySignature makes HTTP requests to verify the token, it's expected to
+ // use any HTTP client associated with the context through ClientContext.
+ VerifySignature(ctx context.Context, jwt string) (payload []byte, err error)
+}
+
+// IDTokenVerifier provides verification for ID Tokens.
+type IDTokenVerifier struct {
+ keySet KeySet
+ config *Config
+ issuer string
+}
+
+// NewVerifier returns a verifier manually constructed from a key set and issuer URL.
+//
+// It's easier to use provider discovery to construct an IDTokenVerifier than creating
+// one directly. This method is intended to be used with provider that don't support
+// metadata discovery, or avoiding round trips when the key set URL is already known.
+//
+// This constructor can be used to create a verifier directly using the issuer URL and
+// JSON Web Key Set URL without using discovery:
+//
+// keySet := oidc.NewRemoteKeySet(ctx, "https://www.googleapis.com/oauth2/v3/certs")
+// verifier := oidc.NewVerifier("https://accounts.google.com", keySet, config)
+//
+// Since KeySet is an interface, this constructor can also be used to supply custom
+// public key sources. For example, if a user wanted to supply public keys out-of-band
+// and hold them statically in-memory:
+//
+// // Custom KeySet implementation.
+// keySet := newStatisKeySet(publicKeys...)
+//
+// // Verifier uses the custom KeySet implementation.
+// verifier := oidc.NewVerifier("https://auth.example.com", keySet, config)
+//
+func NewVerifier(issuerURL string, keySet KeySet, config *Config) *IDTokenVerifier {
+ return &IDTokenVerifier{keySet: keySet, config: config, issuer: issuerURL}
+}
+
+// Config is the configuration for an IDTokenVerifier.
+type Config struct {
+ // Expected audience of the token. For a majority of the cases this is expected to be
+ // the ID of the client that initialized the login flow. It may occasionally differ if
+ // the provider supports the authorizing party (azp) claim.
+ //
+ // If not provided, users must explicitly set SkipClientIDCheck.
+ ClientID string
+ // If specified, only this set of algorithms may be used to sign the JWT.
+ //
+ // If the IDTokenVerifier is created from a provider with (*Provider).Verifier, this
+ // defaults to the set of algorithms the provider supports. Otherwise this values
+ // defaults to RS256.
+ SupportedSigningAlgs []string
+
+ // If true, no ClientID check performed. Must be true if ClientID field is empty.
+ SkipClientIDCheck bool
+ // If true, token expiry is not checked.
+ SkipExpiryCheck bool
+
+ // SkipIssuerCheck is intended for specialized cases where the the caller wishes to
+ // defer issuer validation. When enabled, callers MUST independently verify the Token's
+ // Issuer is a known good value.
+ //
+ // Mismatched issuers often indicate client mis-configuration. If mismatches are
+ // unexpected, evaluate if the provided issuer URL is incorrect instead of enabling
+ // this option.
+ SkipIssuerCheck bool
+
+ // Time function to check Token expiry. Defaults to time.Now
+ Now func() time.Time
+}
+
+// Verifier returns an IDTokenVerifier that uses the provider's key set to verify JWTs.
+//
+// The returned IDTokenVerifier is tied to the Provider's context and its behavior is
+// undefined once the Provider's context is canceled.
+func (p *Provider) Verifier(config *Config) *IDTokenVerifier {
+ if len(config.SupportedSigningAlgs) == 0 && len(p.algorithms) > 0 {
+ // Make a copy so we don't modify the config values.
+ cp := &Config{}
+ *cp = *config
+ cp.SupportedSigningAlgs = p.algorithms
+ config = cp
+ }
+ return NewVerifier(p.issuer, p.remoteKeySet, config)
+}
+
+func parseJWT(p string) ([]byte, error) {
+ parts := strings.Split(p, ".")
+ if len(parts) < 2 {
+ return nil, fmt.Errorf("oidc: malformed jwt, expected 3 parts got %d", len(parts))
+ }
+ payload, err := base64.RawURLEncoding.DecodeString(parts[1])
+ if err != nil {
+ return nil, fmt.Errorf("oidc: malformed jwt payload: %v", err)
+ }
+ return payload, nil
+}
+
+func contains(sli []string, ele string) bool {
+ for _, s := range sli {
+ if s == ele {
+ return true
+ }
+ }
+ return false
+}
+
+// Returns the Claims from the distributed JWT token
+func resolveDistributedClaim(ctx context.Context, verifier *IDTokenVerifier, src claimSource) ([]byte, error) {
+ req, err := http.NewRequest("GET", src.Endpoint, nil)
+ if err != nil {
+ return nil, fmt.Errorf("malformed request: %v", err)
+ }
+ if src.AccessToken != "" {
+ req.Header.Set("Authorization", "Bearer "+src.AccessToken)
+ }
+
+ resp, err := doRequest(ctx, req)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: Request to endpoint failed: %v", err)
+ }
+ defer resp.Body.Close()
+
+ body, err := ioutil.ReadAll(resp.Body)
+ if err != nil {
+ return nil, fmt.Errorf("unable to read response body: %v", err)
+ }
+
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("oidc: request failed: %v", resp.StatusCode)
+ }
+
+ token, err := verifier.Verify(ctx, string(body))
+ if err != nil {
+ return nil, fmt.Errorf("malformed response body: %v", err)
+ }
+
+ return token.claims, nil
+}
+
+func parseClaim(raw []byte, name string, v interface{}) error {
+ var parsed map[string]json.RawMessage
+ if err := json.Unmarshal(raw, &parsed); err != nil {
+ return err
+ }
+
+ val, ok := parsed[name]
+ if !ok {
+ return fmt.Errorf("claim doesn't exist: %s", name)
+ }
+
+ return json.Unmarshal([]byte(val), v)
+}
+
+// Verify parses a raw ID Token, verifies it's been signed by the provider, performs
+// any additional checks depending on the Config, and returns the payload.
+//
+// Verify does NOT do nonce validation, which is the callers responsibility.
+//
+// See: https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
+//
+// oauth2Token, err := oauth2Config.Exchange(ctx, r.URL.Query().Get("code"))
+// if err != nil {
+// // handle error
+// }
+//
+// // Extract the ID Token from oauth2 token.
+// rawIDToken, ok := oauth2Token.Extra("id_token").(string)
+// if !ok {
+// // handle error
+// }
+//
+// token, err := verifier.Verify(ctx, rawIDToken)
+//
+func (v *IDTokenVerifier) Verify(ctx context.Context, rawIDToken string) (*IDToken, error) {
+ jws, err := jose.ParseSigned(rawIDToken)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: malformed jwt: %v", err)
+ }
+
+ // Throw out tokens with invalid claims before trying to verify the token. This lets
+ // us do cheap checks before possibly re-syncing keys.
+ payload, err := parseJWT(rawIDToken)
+ if err != nil {
+ return nil, fmt.Errorf("oidc: malformed jwt: %v", err)
+ }
+ var token idToken
+ if err := json.Unmarshal(payload, &token); err != nil {
+ return nil, fmt.Errorf("oidc: failed to unmarshal claims: %v", err)
+ }
+
+ distributedClaims := make(map[string]claimSource)
+
+ //step through the token to map claim names to claim sources"
+ for cn, src := range token.ClaimNames {
+ if src == "" {
+ return nil, fmt.Errorf("oidc: failed to obtain source from claim name")
+ }
+ s, ok := token.ClaimSources[src]
+ if !ok {
+ return nil, fmt.Errorf("oidc: source does not exist")
+ }
+ distributedClaims[cn] = s
+ }
+
+ t := &IDToken{
+ Issuer: token.Issuer,
+ Subject: token.Subject,
+ Audience: []string(token.Audience),
+ Expiry: time.Time(token.Expiry),
+ IssuedAt: time.Time(token.IssuedAt),
+ Nonce: token.Nonce,
+ AccessTokenHash: token.AtHash,
+ claims: payload,
+ distributedClaims: distributedClaims,
+ }
+
+ // Check issuer.
+ if !v.config.SkipIssuerCheck && t.Issuer != v.issuer {
+ // Google sometimes returns "accounts.google.com" as the issuer claim instead of
+ // the required "https://accounts.google.com". Detect this case and allow it only
+ // for Google.
+ //
+ // We will not add hooks to let other providers go off spec like this.
+ if !(v.issuer == issuerGoogleAccounts && t.Issuer == issuerGoogleAccountsNoScheme) {
+ return nil, fmt.Errorf("oidc: id token issued by a different provider, expected %q got %q", v.issuer, t.Issuer)
+ }
+ }
+
+ // If a client ID has been provided, make sure it's part of the audience. SkipClientIDCheck must be true if ClientID is empty.
+ //
+ // This check DOES NOT ensure that the ClientID is the party to which the ID Token was issued (i.e. Authorized party).
+ if !v.config.SkipClientIDCheck {
+ if v.config.ClientID != "" {
+ if !contains(t.Audience, v.config.ClientID) {
+ return nil, fmt.Errorf("oidc: expected audience %q got %q", v.config.ClientID, t.Audience)
+ }
+ } else {
+ return nil, fmt.Errorf("oidc: invalid configuration, clientID must be provided or SkipClientIDCheck must be set")
+ }
+ }
+
+ // If a SkipExpiryCheck is false, make sure token is not expired.
+ if !v.config.SkipExpiryCheck {
+ now := time.Now
+ if v.config.Now != nil {
+ now = v.config.Now
+ }
+ nowTime := now()
+
+ if t.Expiry.Before(nowTime) {
+ return nil, fmt.Errorf("oidc: token is expired (Token Expiry: %v)", t.Expiry)
+ }
+
+ // If nbf claim is provided in token, ensure that it is indeed in the past.
+ if token.NotBefore != nil {
+ nbfTime := time.Time(*token.NotBefore)
+ leeway := 1 * time.Minute
+
+ if nowTime.Add(leeway).Before(nbfTime) {
+ return nil, fmt.Errorf("oidc: current time %v before the nbf (not before) time: %v", nowTime, nbfTime)
+ }
+ }
+ }
+
+ switch len(jws.Signatures) {
+ case 0:
+ return nil, fmt.Errorf("oidc: id token not signed")
+ case 1:
+ default:
+ return nil, fmt.Errorf("oidc: multiple signatures on id token not supported")
+ }
+
+ sig := jws.Signatures[0]
+ supportedSigAlgs := v.config.SupportedSigningAlgs
+ if len(supportedSigAlgs) == 0 {
+ supportedSigAlgs = []string{RS256}
+ }
+
+ if !contains(supportedSigAlgs, sig.Header.Algorithm) {
+ return nil, fmt.Errorf("oidc: id token signed with unsupported algorithm, expected %q got %q", supportedSigAlgs, sig.Header.Algorithm)
+ }
+
+ t.sigAlgorithm = sig.Header.Algorithm
+
+ gotPayload, err := v.keySet.VerifySignature(ctx, rawIDToken)
+ if err != nil {
+ return nil, fmt.Errorf("failed to verify signature: %v", err)
+ }
+
+ // Ensure that the payload returned by the square actually matches the payload parsed earlier.
+ if !bytes.Equal(gotPayload, payload) {
+ return nil, errors.New("oidc: internal error, payload parsed did not match previous payload")
+ }
+
+ return t, nil
+}
+
+// Nonce returns an auth code option which requires the ID Token created by the
+// OpenID Connect provider to contain the specified nonce.
+func Nonce(nonce string) oauth2.AuthCodeOption {
+ return oauth2.SetAuthURLParam("nonce", nonce)
+}
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md b/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
new file mode 100644
index 000000000..1cade6cef
--- /dev/null
+++ b/vendor/github.com/cpuguy83/go-md2man/v2/LICENSE.md
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Brian Goff
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
new file mode 100644
index 000000000..b48005673
--- /dev/null
+++ b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/md2man.go
@@ -0,0 +1,14 @@
+package md2man
+
+import (
+ "github.com/russross/blackfriday/v2"
+)
+
+// Render converts a markdown document into a roff formatted document.
+func Render(doc []byte) []byte {
+ renderer := NewRoffRenderer()
+
+ return blackfriday.Run(doc,
+ []blackfriday.Option{blackfriday.WithRenderer(renderer),
+ blackfriday.WithExtensions(renderer.GetExtensions())}...)
+}
diff --git a/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
new file mode 100644
index 000000000..be2b34360
--- /dev/null
+++ b/vendor/github.com/cpuguy83/go-md2man/v2/md2man/roff.go
@@ -0,0 +1,336 @@
+package md2man
+
+import (
+ "fmt"
+ "io"
+ "os"
+ "strings"
+
+ "github.com/russross/blackfriday/v2"
+)
+
+// roffRenderer implements the blackfriday.Renderer interface for creating
+// roff format (manpages) from markdown text
+type roffRenderer struct {
+ extensions blackfriday.Extensions
+ listCounters []int
+ firstHeader bool
+ firstDD bool
+ listDepth int
+}
+
+const (
+ titleHeader = ".TH "
+ topLevelHeader = "\n\n.SH "
+ secondLevelHdr = "\n.SH "
+ otherHeader = "\n.SS "
+ crTag = "\n"
+ emphTag = "\\fI"
+ emphCloseTag = "\\fP"
+ strongTag = "\\fB"
+ strongCloseTag = "\\fP"
+ breakTag = "\n.br\n"
+ paraTag = "\n.PP\n"
+ hruleTag = "\n.ti 0\n\\l'\\n(.lu'\n"
+ linkTag = "\n\\[la]"
+ linkCloseTag = "\\[ra]"
+ codespanTag = "\\fB\\fC"
+ codespanCloseTag = "\\fR"
+ codeTag = "\n.PP\n.RS\n\n.nf\n"
+ codeCloseTag = "\n.fi\n.RE\n"
+ quoteTag = "\n.PP\n.RS\n"
+ quoteCloseTag = "\n.RE\n"
+ listTag = "\n.RS\n"
+ listCloseTag = "\n.RE\n"
+ dtTag = "\n.TP\n"
+ dd2Tag = "\n"
+ tableStart = "\n.TS\nallbox;\n"
+ tableEnd = ".TE\n"
+ tableCellStart = "T{\n"
+ tableCellEnd = "\nT}\n"
+)
+
+// NewRoffRenderer creates a new blackfriday Renderer for generating roff documents
+// from markdown
+func NewRoffRenderer() *roffRenderer { // nolint: golint
+ var extensions blackfriday.Extensions
+
+ extensions |= blackfriday.NoIntraEmphasis
+ extensions |= blackfriday.Tables
+ extensions |= blackfriday.FencedCode
+ extensions |= blackfriday.SpaceHeadings
+ extensions |= blackfriday.Footnotes
+ extensions |= blackfriday.Titleblock
+ extensions |= blackfriday.DefinitionLists
+ return &roffRenderer{
+ extensions: extensions,
+ }
+}
+
+// GetExtensions returns the list of extensions used by this renderer implementation
+func (r *roffRenderer) GetExtensions() blackfriday.Extensions {
+ return r.extensions
+}
+
+// RenderHeader handles outputting the header at document start
+func (r *roffRenderer) RenderHeader(w io.Writer, ast *blackfriday.Node) {
+ // disable hyphenation
+ out(w, ".nh\n")
+}
+
+// RenderFooter handles outputting the footer at the document end; the roff
+// renderer has no footer information
+func (r *roffRenderer) RenderFooter(w io.Writer, ast *blackfriday.Node) {
+}
+
+// RenderNode is called for each node in a markdown document; based on the node
+// type the equivalent roff output is sent to the writer
+func (r *roffRenderer) RenderNode(w io.Writer, node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
+
+ var walkAction = blackfriday.GoToNext
+
+ switch node.Type {
+ case blackfriday.Text:
+ escapeSpecialChars(w, node.Literal)
+ case blackfriday.Softbreak:
+ out(w, crTag)
+ case blackfriday.Hardbreak:
+ out(w, breakTag)
+ case blackfriday.Emph:
+ if entering {
+ out(w, emphTag)
+ } else {
+ out(w, emphCloseTag)
+ }
+ case blackfriday.Strong:
+ if entering {
+ out(w, strongTag)
+ } else {
+ out(w, strongCloseTag)
+ }
+ case blackfriday.Link:
+ if !entering {
+ out(w, linkTag+string(node.LinkData.Destination)+linkCloseTag)
+ }
+ case blackfriday.Image:
+ // ignore images
+ walkAction = blackfriday.SkipChildren
+ case blackfriday.Code:
+ out(w, codespanTag)
+ escapeSpecialChars(w, node.Literal)
+ out(w, codespanCloseTag)
+ case blackfriday.Document:
+ break
+ case blackfriday.Paragraph:
+ // roff .PP markers break lists
+ if r.listDepth > 0 {
+ return blackfriday.GoToNext
+ }
+ if entering {
+ out(w, paraTag)
+ } else {
+ out(w, crTag)
+ }
+ case blackfriday.BlockQuote:
+ if entering {
+ out(w, quoteTag)
+ } else {
+ out(w, quoteCloseTag)
+ }
+ case blackfriday.Heading:
+ r.handleHeading(w, node, entering)
+ case blackfriday.HorizontalRule:
+ out(w, hruleTag)
+ case blackfriday.List:
+ r.handleList(w, node, entering)
+ case blackfriday.Item:
+ r.handleItem(w, node, entering)
+ case blackfriday.CodeBlock:
+ out(w, codeTag)
+ escapeSpecialChars(w, node.Literal)
+ out(w, codeCloseTag)
+ case blackfriday.Table:
+ r.handleTable(w, node, entering)
+ case blackfriday.TableHead:
+ case blackfriday.TableBody:
+ case blackfriday.TableRow:
+ // no action as cell entries do all the nroff formatting
+ return blackfriday.GoToNext
+ case blackfriday.TableCell:
+ r.handleTableCell(w, node, entering)
+ case blackfriday.HTMLSpan:
+ // ignore other HTML tags
+ default:
+ fmt.Fprintln(os.Stderr, "WARNING: go-md2man does not handle node type "+node.Type.String())
+ }
+ return walkAction
+}
+
+func (r *roffRenderer) handleHeading(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ switch node.Level {
+ case 1:
+ if !r.firstHeader {
+ out(w, titleHeader)
+ r.firstHeader = true
+ break
+ }
+ out(w, topLevelHeader)
+ case 2:
+ out(w, secondLevelHdr)
+ default:
+ out(w, otherHeader)
+ }
+ }
+}
+
+func (r *roffRenderer) handleList(w io.Writer, node *blackfriday.Node, entering bool) {
+ openTag := listTag
+ closeTag := listCloseTag
+ if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
+ // tags for definition lists handled within Item node
+ openTag = ""
+ closeTag = ""
+ }
+ if entering {
+ r.listDepth++
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ r.listCounters = append(r.listCounters, 1)
+ }
+ out(w, openTag)
+ } else {
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ r.listCounters = r.listCounters[:len(r.listCounters)-1]
+ }
+ out(w, closeTag)
+ r.listDepth--
+ }
+}
+
+func (r *roffRenderer) handleItem(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ if node.ListFlags&blackfriday.ListTypeOrdered != 0 {
+ out(w, fmt.Sprintf(".IP \"%3d.\" 5\n", r.listCounters[len(r.listCounters)-1]))
+ r.listCounters[len(r.listCounters)-1]++
+ } else if node.ListFlags&blackfriday.ListTypeTerm != 0 {
+ // DT (definition term): line just before DD (see below).
+ out(w, dtTag)
+ r.firstDD = true
+ } else if node.ListFlags&blackfriday.ListTypeDefinition != 0 {
+ // DD (definition description): line that starts with ": ".
+ //
+ // We have to distinguish between the first DD and the
+ // subsequent ones, as there should be no vertical
+ // whitespace between the DT and the first DD.
+ if r.firstDD {
+ r.firstDD = false
+ } else {
+ out(w, dd2Tag)
+ }
+ } else {
+ out(w, ".IP \\(bu 2\n")
+ }
+ } else {
+ out(w, "\n")
+ }
+}
+
+func (r *roffRenderer) handleTable(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ out(w, tableStart)
+ // call walker to count cells (and rows?) so format section can be produced
+ columns := countColumns(node)
+ out(w, strings.Repeat("l ", columns)+"\n")
+ out(w, strings.Repeat("l ", columns)+".\n")
+ } else {
+ out(w, tableEnd)
+ }
+}
+
+func (r *roffRenderer) handleTableCell(w io.Writer, node *blackfriday.Node, entering bool) {
+ if entering {
+ var start string
+ if node.Prev != nil && node.Prev.Type == blackfriday.TableCell {
+ start = "\t"
+ }
+ if node.IsHeader {
+ start += codespanTag
+ } else if nodeLiteralSize(node) > 30 {
+ start += tableCellStart
+ }
+ out(w, start)
+ } else {
+ var end string
+ if node.IsHeader {
+ end = codespanCloseTag
+ } else if nodeLiteralSize(node) > 30 {
+ end = tableCellEnd
+ }
+ if node.Next == nil && end != tableCellEnd {
+ // Last cell: need to carriage return if we are at the end of the
+ // header row and content isn't wrapped in a "tablecell"
+ end += crTag
+ }
+ out(w, end)
+ }
+}
+
+func nodeLiteralSize(node *blackfriday.Node) int {
+ total := 0
+ for n := node.FirstChild; n != nil; n = n.FirstChild {
+ total += len(n.Literal)
+ }
+ return total
+}
+
+// because roff format requires knowing the column count before outputting any table
+// data we need to walk a table tree and count the columns
+func countColumns(node *blackfriday.Node) int {
+ var columns int
+
+ node.Walk(func(node *blackfriday.Node, entering bool) blackfriday.WalkStatus {
+ switch node.Type {
+ case blackfriday.TableRow:
+ if !entering {
+ return blackfriday.Terminate
+ }
+ case blackfriday.TableCell:
+ if entering {
+ columns++
+ }
+ default:
+ }
+ return blackfriday.GoToNext
+ })
+ return columns
+}
+
+func out(w io.Writer, output string) {
+ io.WriteString(w, output) // nolint: errcheck
+}
+
+func escapeSpecialChars(w io.Writer, text []byte) {
+ for i := 0; i < len(text); i++ {
+ // escape initial apostrophe or period
+ if len(text) >= 1 && (text[0] == '\'' || text[0] == '.') {
+ out(w, "\\&")
+ }
+
+ // directly copy normal characters
+ org := i
+
+ for i < len(text) && text[i] != '\\' {
+ i++
+ }
+ if i > org {
+ w.Write(text[org:i]) // nolint: errcheck
+ }
+
+ // escape a character
+ if i >= len(text) {
+ break
+ }
+
+ w.Write([]byte{'\\', text[i]}) // nolint: errcheck
+ }
+}
diff --git a/vendor/github.com/davecgh/go-spew/LICENSE b/vendor/github.com/davecgh/go-spew/LICENSE
new file mode 100644
index 000000000..bc52e96f2
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/LICENSE
@@ -0,0 +1,15 @@
+ISC License
+
+Copyright (c) 2012-2016 Dave Collins
+
+Permission to use, copy, modify, and/or distribute this software for any
+purpose with or without fee is hereby granted, provided that the above
+copyright notice and this permission notice appear in all copies.
+
+THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
diff --git a/vendor/github.com/davecgh/go-spew/spew/bypass.go b/vendor/github.com/davecgh/go-spew/spew/bypass.go
new file mode 100644
index 000000000..792994785
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/bypass.go
@@ -0,0 +1,145 @@
+// Copyright (c) 2015-2016 Dave Collins
+//
+// Permission to use, copy, modify, and distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+// NOTE: Due to the following build constraints, this file will only be compiled
+// when the code is not running on Google App Engine, compiled by GopherJS, and
+// "-tags safe" is not added to the go build command line. The "disableunsafe"
+// tag is deprecated and thus should not be used.
+// Go versions prior to 1.4 are disabled because they use a different layout
+// for interfaces which make the implementation of unsafeReflectValue more complex.
+// +build !js,!appengine,!safe,!disableunsafe,go1.4
+
+package spew
+
+import (
+ "reflect"
+ "unsafe"
+)
+
+const (
+ // UnsafeDisabled is a build-time constant which specifies whether or
+ // not access to the unsafe package is available.
+ UnsafeDisabled = false
+
+ // ptrSize is the size of a pointer on the current arch.
+ ptrSize = unsafe.Sizeof((*byte)(nil))
+)
+
+type flag uintptr
+
+var (
+ // flagRO indicates whether the value field of a reflect.Value
+ // is read-only.
+ flagRO flag
+
+ // flagAddr indicates whether the address of the reflect.Value's
+ // value may be taken.
+ flagAddr flag
+)
+
+// flagKindMask holds the bits that make up the kind
+// part of the flags field. In all the supported versions,
+// it is in the lower 5 bits.
+const flagKindMask = flag(0x1f)
+
+// Different versions of Go have used different
+// bit layouts for the flags type. This table
+// records the known combinations.
+var okFlags = []struct {
+ ro, addr flag
+}{{
+ // From Go 1.4 to 1.5
+ ro: 1 << 5,
+ addr: 1 << 7,
+}, {
+ // Up to Go tip.
+ ro: 1<<5 | 1<<6,
+ addr: 1 << 8,
+}}
+
+var flagValOffset = func() uintptr {
+ field, ok := reflect.TypeOf(reflect.Value{}).FieldByName("flag")
+ if !ok {
+ panic("reflect.Value has no flag field")
+ }
+ return field.Offset
+}()
+
+// flagField returns a pointer to the flag field of a reflect.Value.
+func flagField(v *reflect.Value) *flag {
+ return (*flag)(unsafe.Pointer(uintptr(unsafe.Pointer(v)) + flagValOffset))
+}
+
+// unsafeReflectValue converts the passed reflect.Value into a one that bypasses
+// the typical safety restrictions preventing access to unaddressable and
+// unexported data. It works by digging the raw pointer to the underlying
+// value out of the protected value and generating a new unprotected (unsafe)
+// reflect.Value to it.
+//
+// This allows us to check for implementations of the Stringer and error
+// interfaces to be used for pretty printing ordinarily unaddressable and
+// inaccessible values such as unexported struct fields.
+func unsafeReflectValue(v reflect.Value) reflect.Value {
+ if !v.IsValid() || (v.CanInterface() && v.CanAddr()) {
+ return v
+ }
+ flagFieldPtr := flagField(&v)
+ *flagFieldPtr &^= flagRO
+ *flagFieldPtr |= flagAddr
+ return v
+}
+
+// Sanity checks against future reflect package changes
+// to the type or semantics of the Value.flag field.
+func init() {
+ field, ok := reflect.TypeOf(reflect.Value{}).FieldByName("flag")
+ if !ok {
+ panic("reflect.Value has no flag field")
+ }
+ if field.Type.Kind() != reflect.TypeOf(flag(0)).Kind() {
+ panic("reflect.Value flag field has changed kind")
+ }
+ type t0 int
+ var t struct {
+ A t0
+ // t0 will have flagEmbedRO set.
+ t0
+ // a will have flagStickyRO set
+ a t0
+ }
+ vA := reflect.ValueOf(t).FieldByName("A")
+ va := reflect.ValueOf(t).FieldByName("a")
+ vt0 := reflect.ValueOf(t).FieldByName("t0")
+
+ // Infer flagRO from the difference between the flags
+ // for the (otherwise identical) fields in t.
+ flagPublic := *flagField(&vA)
+ flagWithRO := *flagField(&va) | *flagField(&vt0)
+ flagRO = flagPublic ^ flagWithRO
+
+ // Infer flagAddr from the difference between a value
+ // taken from a pointer and not.
+ vPtrA := reflect.ValueOf(&t).Elem().FieldByName("A")
+ flagNoPtr := *flagField(&vA)
+ flagPtr := *flagField(&vPtrA)
+ flagAddr = flagNoPtr ^ flagPtr
+
+ // Check that the inferred flags tally with one of the known versions.
+ for _, f := range okFlags {
+ if flagRO == f.ro && flagAddr == f.addr {
+ return
+ }
+ }
+ panic("reflect.Value read-only flag has changed semantics")
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go b/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
new file mode 100644
index 000000000..205c28d68
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/bypasssafe.go
@@ -0,0 +1,38 @@
+// Copyright (c) 2015-2016 Dave Collins
+//
+// Permission to use, copy, modify, and distribute this software for any
+// purpose with or without fee is hereby granted, provided that the above
+// copyright notice and this permission notice appear in all copies.
+//
+// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+
+// NOTE: Due to the following build constraints, this file will only be compiled
+// when the code is running on Google App Engine, compiled by GopherJS, or
+// "-tags safe" is added to the go build command line. The "disableunsafe"
+// tag is deprecated and thus should not be used.
+// +build js appengine safe disableunsafe !go1.4
+
+package spew
+
+import "reflect"
+
+const (
+ // UnsafeDisabled is a build-time constant which specifies whether or
+ // not access to the unsafe package is available.
+ UnsafeDisabled = true
+)
+
+// unsafeReflectValue typically converts the passed reflect.Value into a one
+// that bypasses the typical safety restrictions preventing access to
+// unaddressable and unexported data. However, doing this relies on access to
+// the unsafe package. This is a stub version which simply returns the passed
+// reflect.Value when the unsafe package is not available.
+func unsafeReflectValue(v reflect.Value) reflect.Value {
+ return v
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/common.go b/vendor/github.com/davecgh/go-spew/spew/common.go
new file mode 100644
index 000000000..1be8ce945
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/common.go
@@ -0,0 +1,341 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+package spew
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "reflect"
+ "sort"
+ "strconv"
+)
+
+// Some constants in the form of bytes to avoid string overhead. This mirrors
+// the technique used in the fmt package.
+var (
+ panicBytes = []byte("(PANIC=")
+ plusBytes = []byte("+")
+ iBytes = []byte("i")
+ trueBytes = []byte("true")
+ falseBytes = []byte("false")
+ interfaceBytes = []byte("(interface {})")
+ commaNewlineBytes = []byte(",\n")
+ newlineBytes = []byte("\n")
+ openBraceBytes = []byte("{")
+ openBraceNewlineBytes = []byte("{\n")
+ closeBraceBytes = []byte("}")
+ asteriskBytes = []byte("*")
+ colonBytes = []byte(":")
+ colonSpaceBytes = []byte(": ")
+ openParenBytes = []byte("(")
+ closeParenBytes = []byte(")")
+ spaceBytes = []byte(" ")
+ pointerChainBytes = []byte("->")
+ nilAngleBytes = []byte("")
+ maxNewlineBytes = []byte("\n")
+ maxShortBytes = []byte("")
+ circularBytes = []byte("")
+ circularShortBytes = []byte("")
+ invalidAngleBytes = []byte("")
+ openBracketBytes = []byte("[")
+ closeBracketBytes = []byte("]")
+ percentBytes = []byte("%")
+ precisionBytes = []byte(".")
+ openAngleBytes = []byte("<")
+ closeAngleBytes = []byte(">")
+ openMapBytes = []byte("map[")
+ closeMapBytes = []byte("]")
+ lenEqualsBytes = []byte("len=")
+ capEqualsBytes = []byte("cap=")
+)
+
+// hexDigits is used to map a decimal value to a hex digit.
+var hexDigits = "0123456789abcdef"
+
+// catchPanic handles any panics that might occur during the handleMethods
+// calls.
+func catchPanic(w io.Writer, v reflect.Value) {
+ if err := recover(); err != nil {
+ w.Write(panicBytes)
+ fmt.Fprintf(w, "%v", err)
+ w.Write(closeParenBytes)
+ }
+}
+
+// handleMethods attempts to call the Error and String methods on the underlying
+// type the passed reflect.Value represents and outputes the result to Writer w.
+//
+// It handles panics in any called methods by catching and displaying the error
+// as the formatted value.
+func handleMethods(cs *ConfigState, w io.Writer, v reflect.Value) (handled bool) {
+ // We need an interface to check if the type implements the error or
+ // Stringer interface. However, the reflect package won't give us an
+ // interface on certain things like unexported struct fields in order
+ // to enforce visibility rules. We use unsafe, when it's available,
+ // to bypass these restrictions since this package does not mutate the
+ // values.
+ if !v.CanInterface() {
+ if UnsafeDisabled {
+ return false
+ }
+
+ v = unsafeReflectValue(v)
+ }
+
+ // Choose whether or not to do error and Stringer interface lookups against
+ // the base type or a pointer to the base type depending on settings.
+ // Technically calling one of these methods with a pointer receiver can
+ // mutate the value, however, types which choose to satisify an error or
+ // Stringer interface with a pointer receiver should not be mutating their
+ // state inside these interface methods.
+ if !cs.DisablePointerMethods && !UnsafeDisabled && !v.CanAddr() {
+ v = unsafeReflectValue(v)
+ }
+ if v.CanAddr() {
+ v = v.Addr()
+ }
+
+ // Is it an error or Stringer?
+ switch iface := v.Interface().(type) {
+ case error:
+ defer catchPanic(w, v)
+ if cs.ContinueOnMethod {
+ w.Write(openParenBytes)
+ w.Write([]byte(iface.Error()))
+ w.Write(closeParenBytes)
+ w.Write(spaceBytes)
+ return false
+ }
+
+ w.Write([]byte(iface.Error()))
+ return true
+
+ case fmt.Stringer:
+ defer catchPanic(w, v)
+ if cs.ContinueOnMethod {
+ w.Write(openParenBytes)
+ w.Write([]byte(iface.String()))
+ w.Write(closeParenBytes)
+ w.Write(spaceBytes)
+ return false
+ }
+ w.Write([]byte(iface.String()))
+ return true
+ }
+ return false
+}
+
+// printBool outputs a boolean value as true or false to Writer w.
+func printBool(w io.Writer, val bool) {
+ if val {
+ w.Write(trueBytes)
+ } else {
+ w.Write(falseBytes)
+ }
+}
+
+// printInt outputs a signed integer value to Writer w.
+func printInt(w io.Writer, val int64, base int) {
+ w.Write([]byte(strconv.FormatInt(val, base)))
+}
+
+// printUint outputs an unsigned integer value to Writer w.
+func printUint(w io.Writer, val uint64, base int) {
+ w.Write([]byte(strconv.FormatUint(val, base)))
+}
+
+// printFloat outputs a floating point value using the specified precision,
+// which is expected to be 32 or 64bit, to Writer w.
+func printFloat(w io.Writer, val float64, precision int) {
+ w.Write([]byte(strconv.FormatFloat(val, 'g', -1, precision)))
+}
+
+// printComplex outputs a complex value using the specified float precision
+// for the real and imaginary parts to Writer w.
+func printComplex(w io.Writer, c complex128, floatPrecision int) {
+ r := real(c)
+ w.Write(openParenBytes)
+ w.Write([]byte(strconv.FormatFloat(r, 'g', -1, floatPrecision)))
+ i := imag(c)
+ if i >= 0 {
+ w.Write(plusBytes)
+ }
+ w.Write([]byte(strconv.FormatFloat(i, 'g', -1, floatPrecision)))
+ w.Write(iBytes)
+ w.Write(closeParenBytes)
+}
+
+// printHexPtr outputs a uintptr formatted as hexadecimal with a leading '0x'
+// prefix to Writer w.
+func printHexPtr(w io.Writer, p uintptr) {
+ // Null pointer.
+ num := uint64(p)
+ if num == 0 {
+ w.Write(nilAngleBytes)
+ return
+ }
+
+ // Max uint64 is 16 bytes in hex + 2 bytes for '0x' prefix
+ buf := make([]byte, 18)
+
+ // It's simpler to construct the hex string right to left.
+ base := uint64(16)
+ i := len(buf) - 1
+ for num >= base {
+ buf[i] = hexDigits[num%base]
+ num /= base
+ i--
+ }
+ buf[i] = hexDigits[num]
+
+ // Add '0x' prefix.
+ i--
+ buf[i] = 'x'
+ i--
+ buf[i] = '0'
+
+ // Strip unused leading bytes.
+ buf = buf[i:]
+ w.Write(buf)
+}
+
+// valuesSorter implements sort.Interface to allow a slice of reflect.Value
+// elements to be sorted.
+type valuesSorter struct {
+ values []reflect.Value
+ strings []string // either nil or same len and values
+ cs *ConfigState
+}
+
+// newValuesSorter initializes a valuesSorter instance, which holds a set of
+// surrogate keys on which the data should be sorted. It uses flags in
+// ConfigState to decide if and how to populate those surrogate keys.
+func newValuesSorter(values []reflect.Value, cs *ConfigState) sort.Interface {
+ vs := &valuesSorter{values: values, cs: cs}
+ if canSortSimply(vs.values[0].Kind()) {
+ return vs
+ }
+ if !cs.DisableMethods {
+ vs.strings = make([]string, len(values))
+ for i := range vs.values {
+ b := bytes.Buffer{}
+ if !handleMethods(cs, &b, vs.values[i]) {
+ vs.strings = nil
+ break
+ }
+ vs.strings[i] = b.String()
+ }
+ }
+ if vs.strings == nil && cs.SpewKeys {
+ vs.strings = make([]string, len(values))
+ for i := range vs.values {
+ vs.strings[i] = Sprintf("%#v", vs.values[i].Interface())
+ }
+ }
+ return vs
+}
+
+// canSortSimply tests whether a reflect.Kind is a primitive that can be sorted
+// directly, or whether it should be considered for sorting by surrogate keys
+// (if the ConfigState allows it).
+func canSortSimply(kind reflect.Kind) bool {
+ // This switch parallels valueSortLess, except for the default case.
+ switch kind {
+ case reflect.Bool:
+ return true
+ case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
+ return true
+ case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
+ return true
+ case reflect.Float32, reflect.Float64:
+ return true
+ case reflect.String:
+ return true
+ case reflect.Uintptr:
+ return true
+ case reflect.Array:
+ return true
+ }
+ return false
+}
+
+// Len returns the number of values in the slice. It is part of the
+// sort.Interface implementation.
+func (s *valuesSorter) Len() int {
+ return len(s.values)
+}
+
+// Swap swaps the values at the passed indices. It is part of the
+// sort.Interface implementation.
+func (s *valuesSorter) Swap(i, j int) {
+ s.values[i], s.values[j] = s.values[j], s.values[i]
+ if s.strings != nil {
+ s.strings[i], s.strings[j] = s.strings[j], s.strings[i]
+ }
+}
+
+// valueSortLess returns whether the first value should sort before the second
+// value. It is used by valueSorter.Less as part of the sort.Interface
+// implementation.
+func valueSortLess(a, b reflect.Value) bool {
+ switch a.Kind() {
+ case reflect.Bool:
+ return !a.Bool() && b.Bool()
+ case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
+ return a.Int() < b.Int()
+ case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
+ return a.Uint() < b.Uint()
+ case reflect.Float32, reflect.Float64:
+ return a.Float() < b.Float()
+ case reflect.String:
+ return a.String() < b.String()
+ case reflect.Uintptr:
+ return a.Uint() < b.Uint()
+ case reflect.Array:
+ // Compare the contents of both arrays.
+ l := a.Len()
+ for i := 0; i < l; i++ {
+ av := a.Index(i)
+ bv := b.Index(i)
+ if av.Interface() == bv.Interface() {
+ continue
+ }
+ return valueSortLess(av, bv)
+ }
+ }
+ return a.String() < b.String()
+}
+
+// Less returns whether the value at index i should sort before the
+// value at index j. It is part of the sort.Interface implementation.
+func (s *valuesSorter) Less(i, j int) bool {
+ if s.strings == nil {
+ return valueSortLess(s.values[i], s.values[j])
+ }
+ return s.strings[i] < s.strings[j]
+}
+
+// sortValues is a sort function that handles both native types and any type that
+// can be converted to error or Stringer. Other inputs are sorted according to
+// their Value.String() value to ensure display stability.
+func sortValues(values []reflect.Value, cs *ConfigState) {
+ if len(values) == 0 {
+ return
+ }
+ sort.Sort(newValuesSorter(values, cs))
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/config.go b/vendor/github.com/davecgh/go-spew/spew/config.go
new file mode 100644
index 000000000..2e3d22f31
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/config.go
@@ -0,0 +1,306 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+package spew
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "os"
+)
+
+// ConfigState houses the configuration options used by spew to format and
+// display values. There is a global instance, Config, that is used to control
+// all top-level Formatter and Dump functionality. Each ConfigState instance
+// provides methods equivalent to the top-level functions.
+//
+// The zero value for ConfigState provides no indentation. You would typically
+// want to set it to a space or a tab.
+//
+// Alternatively, you can use NewDefaultConfig to get a ConfigState instance
+// with default settings. See the documentation of NewDefaultConfig for default
+// values.
+type ConfigState struct {
+ // Indent specifies the string to use for each indentation level. The
+ // global config instance that all top-level functions use set this to a
+ // single space by default. If you would like more indentation, you might
+ // set this to a tab with "\t" or perhaps two spaces with " ".
+ Indent string
+
+ // MaxDepth controls the maximum number of levels to descend into nested
+ // data structures. The default, 0, means there is no limit.
+ //
+ // NOTE: Circular data structures are properly detected, so it is not
+ // necessary to set this value unless you specifically want to limit deeply
+ // nested data structures.
+ MaxDepth int
+
+ // DisableMethods specifies whether or not error and Stringer interfaces are
+ // invoked for types that implement them.
+ DisableMethods bool
+
+ // DisablePointerMethods specifies whether or not to check for and invoke
+ // error and Stringer interfaces on types which only accept a pointer
+ // receiver when the current type is not a pointer.
+ //
+ // NOTE: This might be an unsafe action since calling one of these methods
+ // with a pointer receiver could technically mutate the value, however,
+ // in practice, types which choose to satisify an error or Stringer
+ // interface with a pointer receiver should not be mutating their state
+ // inside these interface methods. As a result, this option relies on
+ // access to the unsafe package, so it will not have any effect when
+ // running in environments without access to the unsafe package such as
+ // Google App Engine or with the "safe" build tag specified.
+ DisablePointerMethods bool
+
+ // DisablePointerAddresses specifies whether to disable the printing of
+ // pointer addresses. This is useful when diffing data structures in tests.
+ DisablePointerAddresses bool
+
+ // DisableCapacities specifies whether to disable the printing of capacities
+ // for arrays, slices, maps and channels. This is useful when diffing
+ // data structures in tests.
+ DisableCapacities bool
+
+ // ContinueOnMethod specifies whether or not recursion should continue once
+ // a custom error or Stringer interface is invoked. The default, false,
+ // means it will print the results of invoking the custom error or Stringer
+ // interface and return immediately instead of continuing to recurse into
+ // the internals of the data type.
+ //
+ // NOTE: This flag does not have any effect if method invocation is disabled
+ // via the DisableMethods or DisablePointerMethods options.
+ ContinueOnMethod bool
+
+ // SortKeys specifies map keys should be sorted before being printed. Use
+ // this to have a more deterministic, diffable output. Note that only
+ // native types (bool, int, uint, floats, uintptr and string) and types
+ // that support the error or Stringer interfaces (if methods are
+ // enabled) are supported, with other types sorted according to the
+ // reflect.Value.String() output which guarantees display stability.
+ SortKeys bool
+
+ // SpewKeys specifies that, as a last resort attempt, map keys should
+ // be spewed to strings and sorted by those strings. This is only
+ // considered if SortKeys is true.
+ SpewKeys bool
+}
+
+// Config is the active configuration of the top-level functions.
+// The configuration can be changed by modifying the contents of spew.Config.
+var Config = ConfigState{Indent: " "}
+
+// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the formatted string as a value that satisfies error. See NewFormatter
+// for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Errorf(format, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Errorf(format string, a ...interface{}) (err error) {
+ return fmt.Errorf(format, c.convertArgs(a)...)
+}
+
+// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprint(w, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Fprint(w io.Writer, a ...interface{}) (n int, err error) {
+ return fmt.Fprint(w, c.convertArgs(a)...)
+}
+
+// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprintf(w, format, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
+ return fmt.Fprintf(w, format, c.convertArgs(a)...)
+}
+
+// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it
+// passed with a Formatter interface returned by c.NewFormatter. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprintln(w, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
+ return fmt.Fprintln(w, c.convertArgs(a)...)
+}
+
+// Print is a wrapper for fmt.Print that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Print(c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Print(a ...interface{}) (n int, err error) {
+ return fmt.Print(c.convertArgs(a)...)
+}
+
+// Printf is a wrapper for fmt.Printf that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Printf(format, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Printf(format string, a ...interface{}) (n int, err error) {
+ return fmt.Printf(format, c.convertArgs(a)...)
+}
+
+// Println is a wrapper for fmt.Println that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Println(c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Println(a ...interface{}) (n int, err error) {
+ return fmt.Println(c.convertArgs(a)...)
+}
+
+// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprint(c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Sprint(a ...interface{}) string {
+ return fmt.Sprint(c.convertArgs(a)...)
+}
+
+// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were
+// passed with a Formatter interface returned by c.NewFormatter. It returns
+// the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprintf(format, c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Sprintf(format string, a ...interface{}) string {
+ return fmt.Sprintf(format, c.convertArgs(a)...)
+}
+
+// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it
+// were passed with a Formatter interface returned by c.NewFormatter. It
+// returns the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprintln(c.NewFormatter(a), c.NewFormatter(b))
+func (c *ConfigState) Sprintln(a ...interface{}) string {
+ return fmt.Sprintln(c.convertArgs(a)...)
+}
+
+/*
+NewFormatter returns a custom formatter that satisfies the fmt.Formatter
+interface. As a result, it integrates cleanly with standard fmt package
+printing functions. The formatter is useful for inline printing of smaller data
+types similar to the standard %v format specifier.
+
+The custom formatter only responds to the %v (most compact), %+v (adds pointer
+addresses), %#v (adds types), and %#+v (adds types and pointer addresses) verb
+combinations. Any other verbs such as %x and %q will be sent to the the
+standard fmt package for formatting. In addition, the custom formatter ignores
+the width and precision arguments (however they will still work on the format
+specifiers not handled by the custom formatter).
+
+Typically this function shouldn't be called directly. It is much easier to make
+use of the custom formatter by calling one of the convenience functions such as
+c.Printf, c.Println, or c.Printf.
+*/
+func (c *ConfigState) NewFormatter(v interface{}) fmt.Formatter {
+ return newFormatter(c, v)
+}
+
+// Fdump formats and displays the passed arguments to io.Writer w. It formats
+// exactly the same as Dump.
+func (c *ConfigState) Fdump(w io.Writer, a ...interface{}) {
+ fdump(c, w, a...)
+}
+
+/*
+Dump displays the passed parameters to standard out with newlines, customizable
+indentation, and additional debug information such as complete types and all
+pointer addresses used to indirect to the final value. It provides the
+following features over the built-in printing facilities provided by the fmt
+package:
+
+ * Pointers are dereferenced and followed
+ * Circular data structures are detected and handled properly
+ * Custom Stringer/error interfaces are optionally invoked, including
+ on unexported types
+ * Custom types which only implement the Stringer/error interfaces via
+ a pointer receiver are optionally invoked when passing non-pointer
+ variables
+ * Byte arrays and slices are dumped like the hexdump -C command which
+ includes offsets, byte values in hex, and ASCII output
+
+The configuration options are controlled by modifying the public members
+of c. See ConfigState for options documentation.
+
+See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to
+get the formatted result as a string.
+*/
+func (c *ConfigState) Dump(a ...interface{}) {
+ fdump(c, os.Stdout, a...)
+}
+
+// Sdump returns a string with the passed arguments formatted exactly the same
+// as Dump.
+func (c *ConfigState) Sdump(a ...interface{}) string {
+ var buf bytes.Buffer
+ fdump(c, &buf, a...)
+ return buf.String()
+}
+
+// convertArgs accepts a slice of arguments and returns a slice of the same
+// length with each argument converted to a spew Formatter interface using
+// the ConfigState associated with s.
+func (c *ConfigState) convertArgs(args []interface{}) (formatters []interface{}) {
+ formatters = make([]interface{}, len(args))
+ for index, arg := range args {
+ formatters[index] = newFormatter(c, arg)
+ }
+ return formatters
+}
+
+// NewDefaultConfig returns a ConfigState with the following default settings.
+//
+// Indent: " "
+// MaxDepth: 0
+// DisableMethods: false
+// DisablePointerMethods: false
+// ContinueOnMethod: false
+// SortKeys: false
+func NewDefaultConfig() *ConfigState {
+ return &ConfigState{Indent: " "}
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/doc.go b/vendor/github.com/davecgh/go-spew/spew/doc.go
new file mode 100644
index 000000000..aacaac6f1
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/doc.go
@@ -0,0 +1,211 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+/*
+Package spew implements a deep pretty printer for Go data structures to aid in
+debugging.
+
+A quick overview of the additional features spew provides over the built-in
+printing facilities for Go data types are as follows:
+
+ * Pointers are dereferenced and followed
+ * Circular data structures are detected and handled properly
+ * Custom Stringer/error interfaces are optionally invoked, including
+ on unexported types
+ * Custom types which only implement the Stringer/error interfaces via
+ a pointer receiver are optionally invoked when passing non-pointer
+ variables
+ * Byte arrays and slices are dumped like the hexdump -C command which
+ includes offsets, byte values in hex, and ASCII output (only when using
+ Dump style)
+
+There are two different approaches spew allows for dumping Go data structures:
+
+ * Dump style which prints with newlines, customizable indentation,
+ and additional debug information such as types and all pointer addresses
+ used to indirect to the final value
+ * A custom Formatter interface that integrates cleanly with the standard fmt
+ package and replaces %v, %+v, %#v, and %#+v to provide inline printing
+ similar to the default %v while providing the additional functionality
+ outlined above and passing unsupported format verbs such as %x and %q
+ along to fmt
+
+Quick Start
+
+This section demonstrates how to quickly get started with spew. See the
+sections below for further details on formatting and configuration options.
+
+To dump a variable with full newlines, indentation, type, and pointer
+information use Dump, Fdump, or Sdump:
+ spew.Dump(myVar1, myVar2, ...)
+ spew.Fdump(someWriter, myVar1, myVar2, ...)
+ str := spew.Sdump(myVar1, myVar2, ...)
+
+Alternatively, if you would prefer to use format strings with a compacted inline
+printing style, use the convenience wrappers Printf, Fprintf, etc with
+%v (most compact), %+v (adds pointer addresses), %#v (adds types), or
+%#+v (adds types and pointer addresses):
+ spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2)
+ spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)
+ spew.Fprintf(someWriter, "myVar1: %v -- myVar2: %+v", myVar1, myVar2)
+ spew.Fprintf(someWriter, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)
+
+Configuration Options
+
+Configuration of spew is handled by fields in the ConfigState type. For
+convenience, all of the top-level functions use a global state available
+via the spew.Config global.
+
+It is also possible to create a ConfigState instance that provides methods
+equivalent to the top-level functions. This allows concurrent configuration
+options. See the ConfigState documentation for more details.
+
+The following configuration options are available:
+ * Indent
+ String to use for each indentation level for Dump functions.
+ It is a single space by default. A popular alternative is "\t".
+
+ * MaxDepth
+ Maximum number of levels to descend into nested data structures.
+ There is no limit by default.
+
+ * DisableMethods
+ Disables invocation of error and Stringer interface methods.
+ Method invocation is enabled by default.
+
+ * DisablePointerMethods
+ Disables invocation of error and Stringer interface methods on types
+ which only accept pointer receivers from non-pointer variables.
+ Pointer method invocation is enabled by default.
+
+ * DisablePointerAddresses
+ DisablePointerAddresses specifies whether to disable the printing of
+ pointer addresses. This is useful when diffing data structures in tests.
+
+ * DisableCapacities
+ DisableCapacities specifies whether to disable the printing of
+ capacities for arrays, slices, maps and channels. This is useful when
+ diffing data structures in tests.
+
+ * ContinueOnMethod
+ Enables recursion into types after invoking error and Stringer interface
+ methods. Recursion after method invocation is disabled by default.
+
+ * SortKeys
+ Specifies map keys should be sorted before being printed. Use
+ this to have a more deterministic, diffable output. Note that
+ only native types (bool, int, uint, floats, uintptr and string)
+ and types which implement error or Stringer interfaces are
+ supported with other types sorted according to the
+ reflect.Value.String() output which guarantees display
+ stability. Natural map order is used by default.
+
+ * SpewKeys
+ Specifies that, as a last resort attempt, map keys should be
+ spewed to strings and sorted by those strings. This is only
+ considered if SortKeys is true.
+
+Dump Usage
+
+Simply call spew.Dump with a list of variables you want to dump:
+
+ spew.Dump(myVar1, myVar2, ...)
+
+You may also call spew.Fdump if you would prefer to output to an arbitrary
+io.Writer. For example, to dump to standard error:
+
+ spew.Fdump(os.Stderr, myVar1, myVar2, ...)
+
+A third option is to call spew.Sdump to get the formatted output as a string:
+
+ str := spew.Sdump(myVar1, myVar2, ...)
+
+Sample Dump Output
+
+See the Dump example for details on the setup of the types and variables being
+shown here.
+
+ (main.Foo) {
+ unexportedField: (*main.Bar)(0xf84002e210)({
+ flag: (main.Flag) flagTwo,
+ data: (uintptr)
+ }),
+ ExportedField: (map[interface {}]interface {}) (len=1) {
+ (string) (len=3) "one": (bool) true
+ }
+ }
+
+Byte (and uint8) arrays and slices are displayed uniquely like the hexdump -C
+command as shown.
+ ([]uint8) (len=32 cap=32) {
+ 00000000 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f 20 |............... |
+ 00000010 21 22 23 24 25 26 27 28 29 2a 2b 2c 2d 2e 2f 30 |!"#$%&'()*+,-./0|
+ 00000020 31 32 |12|
+ }
+
+Custom Formatter
+
+Spew provides a custom formatter that implements the fmt.Formatter interface
+so that it integrates cleanly with standard fmt package printing functions. The
+formatter is useful for inline printing of smaller data types similar to the
+standard %v format specifier.
+
+The custom formatter only responds to the %v (most compact), %+v (adds pointer
+addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb
+combinations. Any other verbs such as %x and %q will be sent to the the
+standard fmt package for formatting. In addition, the custom formatter ignores
+the width and precision arguments (however they will still work on the format
+specifiers not handled by the custom formatter).
+
+Custom Formatter Usage
+
+The simplest way to make use of the spew custom formatter is to call one of the
+convenience functions such as spew.Printf, spew.Println, or spew.Printf. The
+functions have syntax you are most likely already familiar with:
+
+ spew.Printf("myVar1: %v -- myVar2: %+v", myVar1, myVar2)
+ spew.Printf("myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)
+ spew.Println(myVar, myVar2)
+ spew.Fprintf(os.Stderr, "myVar1: %v -- myVar2: %+v", myVar1, myVar2)
+ spew.Fprintf(os.Stderr, "myVar3: %#v -- myVar4: %#+v", myVar3, myVar4)
+
+See the Index for the full list convenience functions.
+
+Sample Formatter Output
+
+Double pointer to a uint8:
+ %v: <**>5
+ %+v: <**>(0xf8400420d0->0xf8400420c8)5
+ %#v: (**uint8)5
+ %#+v: (**uint8)(0xf8400420d0->0xf8400420c8)5
+
+Pointer to circular struct with a uint8 field and a pointer to itself:
+ %v: <*>{1 <*>}
+ %+v: <*>(0xf84003e260){ui8:1 c:<*>(0xf84003e260)}
+ %#v: (*main.circular){ui8:(uint8)1 c:(*main.circular)}
+ %#+v: (*main.circular)(0xf84003e260){ui8:(uint8)1 c:(*main.circular)(0xf84003e260)}
+
+See the Printf example for details on the setup of variables being shown
+here.
+
+Errors
+
+Since it is possible for custom Stringer/error interfaces to panic, spew
+detects them and handles them internally by printing the panic information
+inline with the output. Since spew is intended to provide deep pretty printing
+capabilities on structures, it intentionally does not return any errors.
+*/
+package spew
diff --git a/vendor/github.com/davecgh/go-spew/spew/dump.go b/vendor/github.com/davecgh/go-spew/spew/dump.go
new file mode 100644
index 000000000..f78d89fc1
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/dump.go
@@ -0,0 +1,509 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+package spew
+
+import (
+ "bytes"
+ "encoding/hex"
+ "fmt"
+ "io"
+ "os"
+ "reflect"
+ "regexp"
+ "strconv"
+ "strings"
+)
+
+var (
+ // uint8Type is a reflect.Type representing a uint8. It is used to
+ // convert cgo types to uint8 slices for hexdumping.
+ uint8Type = reflect.TypeOf(uint8(0))
+
+ // cCharRE is a regular expression that matches a cgo char.
+ // It is used to detect character arrays to hexdump them.
+ cCharRE = regexp.MustCompile(`^.*\._Ctype_char$`)
+
+ // cUnsignedCharRE is a regular expression that matches a cgo unsigned
+ // char. It is used to detect unsigned character arrays to hexdump
+ // them.
+ cUnsignedCharRE = regexp.MustCompile(`^.*\._Ctype_unsignedchar$`)
+
+ // cUint8tCharRE is a regular expression that matches a cgo uint8_t.
+ // It is used to detect uint8_t arrays to hexdump them.
+ cUint8tCharRE = regexp.MustCompile(`^.*\._Ctype_uint8_t$`)
+)
+
+// dumpState contains information about the state of a dump operation.
+type dumpState struct {
+ w io.Writer
+ depth int
+ pointers map[uintptr]int
+ ignoreNextType bool
+ ignoreNextIndent bool
+ cs *ConfigState
+}
+
+// indent performs indentation according to the depth level and cs.Indent
+// option.
+func (d *dumpState) indent() {
+ if d.ignoreNextIndent {
+ d.ignoreNextIndent = false
+ return
+ }
+ d.w.Write(bytes.Repeat([]byte(d.cs.Indent), d.depth))
+}
+
+// unpackValue returns values inside of non-nil interfaces when possible.
+// This is useful for data types like structs, arrays, slices, and maps which
+// can contain varying types packed inside an interface.
+func (d *dumpState) unpackValue(v reflect.Value) reflect.Value {
+ if v.Kind() == reflect.Interface && !v.IsNil() {
+ v = v.Elem()
+ }
+ return v
+}
+
+// dumpPtr handles formatting of pointers by indirecting them as necessary.
+func (d *dumpState) dumpPtr(v reflect.Value) {
+ // Remove pointers at or below the current depth from map used to detect
+ // circular refs.
+ for k, depth := range d.pointers {
+ if depth >= d.depth {
+ delete(d.pointers, k)
+ }
+ }
+
+ // Keep list of all dereferenced pointers to show later.
+ pointerChain := make([]uintptr, 0)
+
+ // Figure out how many levels of indirection there are by dereferencing
+ // pointers and unpacking interfaces down the chain while detecting circular
+ // references.
+ nilFound := false
+ cycleFound := false
+ indirects := 0
+ ve := v
+ for ve.Kind() == reflect.Ptr {
+ if ve.IsNil() {
+ nilFound = true
+ break
+ }
+ indirects++
+ addr := ve.Pointer()
+ pointerChain = append(pointerChain, addr)
+ if pd, ok := d.pointers[addr]; ok && pd < d.depth {
+ cycleFound = true
+ indirects--
+ break
+ }
+ d.pointers[addr] = d.depth
+
+ ve = ve.Elem()
+ if ve.Kind() == reflect.Interface {
+ if ve.IsNil() {
+ nilFound = true
+ break
+ }
+ ve = ve.Elem()
+ }
+ }
+
+ // Display type information.
+ d.w.Write(openParenBytes)
+ d.w.Write(bytes.Repeat(asteriskBytes, indirects))
+ d.w.Write([]byte(ve.Type().String()))
+ d.w.Write(closeParenBytes)
+
+ // Display pointer information.
+ if !d.cs.DisablePointerAddresses && len(pointerChain) > 0 {
+ d.w.Write(openParenBytes)
+ for i, addr := range pointerChain {
+ if i > 0 {
+ d.w.Write(pointerChainBytes)
+ }
+ printHexPtr(d.w, addr)
+ }
+ d.w.Write(closeParenBytes)
+ }
+
+ // Display dereferenced value.
+ d.w.Write(openParenBytes)
+ switch {
+ case nilFound:
+ d.w.Write(nilAngleBytes)
+
+ case cycleFound:
+ d.w.Write(circularBytes)
+
+ default:
+ d.ignoreNextType = true
+ d.dump(ve)
+ }
+ d.w.Write(closeParenBytes)
+}
+
+// dumpSlice handles formatting of arrays and slices. Byte (uint8 under
+// reflection) arrays and slices are dumped in hexdump -C fashion.
+func (d *dumpState) dumpSlice(v reflect.Value) {
+ // Determine whether this type should be hex dumped or not. Also,
+ // for types which should be hexdumped, try to use the underlying data
+ // first, then fall back to trying to convert them to a uint8 slice.
+ var buf []uint8
+ doConvert := false
+ doHexDump := false
+ numEntries := v.Len()
+ if numEntries > 0 {
+ vt := v.Index(0).Type()
+ vts := vt.String()
+ switch {
+ // C types that need to be converted.
+ case cCharRE.MatchString(vts):
+ fallthrough
+ case cUnsignedCharRE.MatchString(vts):
+ fallthrough
+ case cUint8tCharRE.MatchString(vts):
+ doConvert = true
+
+ // Try to use existing uint8 slices and fall back to converting
+ // and copying if that fails.
+ case vt.Kind() == reflect.Uint8:
+ // We need an addressable interface to convert the type
+ // to a byte slice. However, the reflect package won't
+ // give us an interface on certain things like
+ // unexported struct fields in order to enforce
+ // visibility rules. We use unsafe, when available, to
+ // bypass these restrictions since this package does not
+ // mutate the values.
+ vs := v
+ if !vs.CanInterface() || !vs.CanAddr() {
+ vs = unsafeReflectValue(vs)
+ }
+ if !UnsafeDisabled {
+ vs = vs.Slice(0, numEntries)
+
+ // Use the existing uint8 slice if it can be
+ // type asserted.
+ iface := vs.Interface()
+ if slice, ok := iface.([]uint8); ok {
+ buf = slice
+ doHexDump = true
+ break
+ }
+ }
+
+ // The underlying data needs to be converted if it can't
+ // be type asserted to a uint8 slice.
+ doConvert = true
+ }
+
+ // Copy and convert the underlying type if needed.
+ if doConvert && vt.ConvertibleTo(uint8Type) {
+ // Convert and copy each element into a uint8 byte
+ // slice.
+ buf = make([]uint8, numEntries)
+ for i := 0; i < numEntries; i++ {
+ vv := v.Index(i)
+ buf[i] = uint8(vv.Convert(uint8Type).Uint())
+ }
+ doHexDump = true
+ }
+ }
+
+ // Hexdump the entire slice as needed.
+ if doHexDump {
+ indent := strings.Repeat(d.cs.Indent, d.depth)
+ str := indent + hex.Dump(buf)
+ str = strings.Replace(str, "\n", "\n"+indent, -1)
+ str = strings.TrimRight(str, d.cs.Indent)
+ d.w.Write([]byte(str))
+ return
+ }
+
+ // Recursively call dump for each item.
+ for i := 0; i < numEntries; i++ {
+ d.dump(d.unpackValue(v.Index(i)))
+ if i < (numEntries - 1) {
+ d.w.Write(commaNewlineBytes)
+ } else {
+ d.w.Write(newlineBytes)
+ }
+ }
+}
+
+// dump is the main workhorse for dumping a value. It uses the passed reflect
+// value to figure out what kind of object we are dealing with and formats it
+// appropriately. It is a recursive function, however circular data structures
+// are detected and handled properly.
+func (d *dumpState) dump(v reflect.Value) {
+ // Handle invalid reflect values immediately.
+ kind := v.Kind()
+ if kind == reflect.Invalid {
+ d.w.Write(invalidAngleBytes)
+ return
+ }
+
+ // Handle pointers specially.
+ if kind == reflect.Ptr {
+ d.indent()
+ d.dumpPtr(v)
+ return
+ }
+
+ // Print type information unless already handled elsewhere.
+ if !d.ignoreNextType {
+ d.indent()
+ d.w.Write(openParenBytes)
+ d.w.Write([]byte(v.Type().String()))
+ d.w.Write(closeParenBytes)
+ d.w.Write(spaceBytes)
+ }
+ d.ignoreNextType = false
+
+ // Display length and capacity if the built-in len and cap functions
+ // work with the value's kind and the len/cap itself is non-zero.
+ valueLen, valueCap := 0, 0
+ switch v.Kind() {
+ case reflect.Array, reflect.Slice, reflect.Chan:
+ valueLen, valueCap = v.Len(), v.Cap()
+ case reflect.Map, reflect.String:
+ valueLen = v.Len()
+ }
+ if valueLen != 0 || !d.cs.DisableCapacities && valueCap != 0 {
+ d.w.Write(openParenBytes)
+ if valueLen != 0 {
+ d.w.Write(lenEqualsBytes)
+ printInt(d.w, int64(valueLen), 10)
+ }
+ if !d.cs.DisableCapacities && valueCap != 0 {
+ if valueLen != 0 {
+ d.w.Write(spaceBytes)
+ }
+ d.w.Write(capEqualsBytes)
+ printInt(d.w, int64(valueCap), 10)
+ }
+ d.w.Write(closeParenBytes)
+ d.w.Write(spaceBytes)
+ }
+
+ // Call Stringer/error interfaces if they exist and the handle methods flag
+ // is enabled
+ if !d.cs.DisableMethods {
+ if (kind != reflect.Invalid) && (kind != reflect.Interface) {
+ if handled := handleMethods(d.cs, d.w, v); handled {
+ return
+ }
+ }
+ }
+
+ switch kind {
+ case reflect.Invalid:
+ // Do nothing. We should never get here since invalid has already
+ // been handled above.
+
+ case reflect.Bool:
+ printBool(d.w, v.Bool())
+
+ case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
+ printInt(d.w, v.Int(), 10)
+
+ case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
+ printUint(d.w, v.Uint(), 10)
+
+ case reflect.Float32:
+ printFloat(d.w, v.Float(), 32)
+
+ case reflect.Float64:
+ printFloat(d.w, v.Float(), 64)
+
+ case reflect.Complex64:
+ printComplex(d.w, v.Complex(), 32)
+
+ case reflect.Complex128:
+ printComplex(d.w, v.Complex(), 64)
+
+ case reflect.Slice:
+ if v.IsNil() {
+ d.w.Write(nilAngleBytes)
+ break
+ }
+ fallthrough
+
+ case reflect.Array:
+ d.w.Write(openBraceNewlineBytes)
+ d.depth++
+ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {
+ d.indent()
+ d.w.Write(maxNewlineBytes)
+ } else {
+ d.dumpSlice(v)
+ }
+ d.depth--
+ d.indent()
+ d.w.Write(closeBraceBytes)
+
+ case reflect.String:
+ d.w.Write([]byte(strconv.Quote(v.String())))
+
+ case reflect.Interface:
+ // The only time we should get here is for nil interfaces due to
+ // unpackValue calls.
+ if v.IsNil() {
+ d.w.Write(nilAngleBytes)
+ }
+
+ case reflect.Ptr:
+ // Do nothing. We should never get here since pointers have already
+ // been handled above.
+
+ case reflect.Map:
+ // nil maps should be indicated as different than empty maps
+ if v.IsNil() {
+ d.w.Write(nilAngleBytes)
+ break
+ }
+
+ d.w.Write(openBraceNewlineBytes)
+ d.depth++
+ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {
+ d.indent()
+ d.w.Write(maxNewlineBytes)
+ } else {
+ numEntries := v.Len()
+ keys := v.MapKeys()
+ if d.cs.SortKeys {
+ sortValues(keys, d.cs)
+ }
+ for i, key := range keys {
+ d.dump(d.unpackValue(key))
+ d.w.Write(colonSpaceBytes)
+ d.ignoreNextIndent = true
+ d.dump(d.unpackValue(v.MapIndex(key)))
+ if i < (numEntries - 1) {
+ d.w.Write(commaNewlineBytes)
+ } else {
+ d.w.Write(newlineBytes)
+ }
+ }
+ }
+ d.depth--
+ d.indent()
+ d.w.Write(closeBraceBytes)
+
+ case reflect.Struct:
+ d.w.Write(openBraceNewlineBytes)
+ d.depth++
+ if (d.cs.MaxDepth != 0) && (d.depth > d.cs.MaxDepth) {
+ d.indent()
+ d.w.Write(maxNewlineBytes)
+ } else {
+ vt := v.Type()
+ numFields := v.NumField()
+ for i := 0; i < numFields; i++ {
+ d.indent()
+ vtf := vt.Field(i)
+ d.w.Write([]byte(vtf.Name))
+ d.w.Write(colonSpaceBytes)
+ d.ignoreNextIndent = true
+ d.dump(d.unpackValue(v.Field(i)))
+ if i < (numFields - 1) {
+ d.w.Write(commaNewlineBytes)
+ } else {
+ d.w.Write(newlineBytes)
+ }
+ }
+ }
+ d.depth--
+ d.indent()
+ d.w.Write(closeBraceBytes)
+
+ case reflect.Uintptr:
+ printHexPtr(d.w, uintptr(v.Uint()))
+
+ case reflect.UnsafePointer, reflect.Chan, reflect.Func:
+ printHexPtr(d.w, v.Pointer())
+
+ // There were not any other types at the time this code was written, but
+ // fall back to letting the default fmt package handle it in case any new
+ // types are added.
+ default:
+ if v.CanInterface() {
+ fmt.Fprintf(d.w, "%v", v.Interface())
+ } else {
+ fmt.Fprintf(d.w, "%v", v.String())
+ }
+ }
+}
+
+// fdump is a helper function to consolidate the logic from the various public
+// methods which take varying writers and config states.
+func fdump(cs *ConfigState, w io.Writer, a ...interface{}) {
+ for _, arg := range a {
+ if arg == nil {
+ w.Write(interfaceBytes)
+ w.Write(spaceBytes)
+ w.Write(nilAngleBytes)
+ w.Write(newlineBytes)
+ continue
+ }
+
+ d := dumpState{w: w, cs: cs}
+ d.pointers = make(map[uintptr]int)
+ d.dump(reflect.ValueOf(arg))
+ d.w.Write(newlineBytes)
+ }
+}
+
+// Fdump formats and displays the passed arguments to io.Writer w. It formats
+// exactly the same as Dump.
+func Fdump(w io.Writer, a ...interface{}) {
+ fdump(&Config, w, a...)
+}
+
+// Sdump returns a string with the passed arguments formatted exactly the same
+// as Dump.
+func Sdump(a ...interface{}) string {
+ var buf bytes.Buffer
+ fdump(&Config, &buf, a...)
+ return buf.String()
+}
+
+/*
+Dump displays the passed parameters to standard out with newlines, customizable
+indentation, and additional debug information such as complete types and all
+pointer addresses used to indirect to the final value. It provides the
+following features over the built-in printing facilities provided by the fmt
+package:
+
+ * Pointers are dereferenced and followed
+ * Circular data structures are detected and handled properly
+ * Custom Stringer/error interfaces are optionally invoked, including
+ on unexported types
+ * Custom types which only implement the Stringer/error interfaces via
+ a pointer receiver are optionally invoked when passing non-pointer
+ variables
+ * Byte arrays and slices are dumped like the hexdump -C command which
+ includes offsets, byte values in hex, and ASCII output
+
+The configuration options are controlled by an exported package global,
+spew.Config. See ConfigState for options documentation.
+
+See Fdump if you would prefer dumping to an arbitrary io.Writer or Sdump to
+get the formatted result as a string.
+*/
+func Dump(a ...interface{}) {
+ fdump(&Config, os.Stdout, a...)
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/format.go b/vendor/github.com/davecgh/go-spew/spew/format.go
new file mode 100644
index 000000000..b04edb7d7
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/format.go
@@ -0,0 +1,419 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+package spew
+
+import (
+ "bytes"
+ "fmt"
+ "reflect"
+ "strconv"
+ "strings"
+)
+
+// supportedFlags is a list of all the character flags supported by fmt package.
+const supportedFlags = "0-+# "
+
+// formatState implements the fmt.Formatter interface and contains information
+// about the state of a formatting operation. The NewFormatter function can
+// be used to get a new Formatter which can be used directly as arguments
+// in standard fmt package printing calls.
+type formatState struct {
+ value interface{}
+ fs fmt.State
+ depth int
+ pointers map[uintptr]int
+ ignoreNextType bool
+ cs *ConfigState
+}
+
+// buildDefaultFormat recreates the original format string without precision
+// and width information to pass in to fmt.Sprintf in the case of an
+// unrecognized type. Unless new types are added to the language, this
+// function won't ever be called.
+func (f *formatState) buildDefaultFormat() (format string) {
+ buf := bytes.NewBuffer(percentBytes)
+
+ for _, flag := range supportedFlags {
+ if f.fs.Flag(int(flag)) {
+ buf.WriteRune(flag)
+ }
+ }
+
+ buf.WriteRune('v')
+
+ format = buf.String()
+ return format
+}
+
+// constructOrigFormat recreates the original format string including precision
+// and width information to pass along to the standard fmt package. This allows
+// automatic deferral of all format strings this package doesn't support.
+func (f *formatState) constructOrigFormat(verb rune) (format string) {
+ buf := bytes.NewBuffer(percentBytes)
+
+ for _, flag := range supportedFlags {
+ if f.fs.Flag(int(flag)) {
+ buf.WriteRune(flag)
+ }
+ }
+
+ if width, ok := f.fs.Width(); ok {
+ buf.WriteString(strconv.Itoa(width))
+ }
+
+ if precision, ok := f.fs.Precision(); ok {
+ buf.Write(precisionBytes)
+ buf.WriteString(strconv.Itoa(precision))
+ }
+
+ buf.WriteRune(verb)
+
+ format = buf.String()
+ return format
+}
+
+// unpackValue returns values inside of non-nil interfaces when possible and
+// ensures that types for values which have been unpacked from an interface
+// are displayed when the show types flag is also set.
+// This is useful for data types like structs, arrays, slices, and maps which
+// can contain varying types packed inside an interface.
+func (f *formatState) unpackValue(v reflect.Value) reflect.Value {
+ if v.Kind() == reflect.Interface {
+ f.ignoreNextType = false
+ if !v.IsNil() {
+ v = v.Elem()
+ }
+ }
+ return v
+}
+
+// formatPtr handles formatting of pointers by indirecting them as necessary.
+func (f *formatState) formatPtr(v reflect.Value) {
+ // Display nil if top level pointer is nil.
+ showTypes := f.fs.Flag('#')
+ if v.IsNil() && (!showTypes || f.ignoreNextType) {
+ f.fs.Write(nilAngleBytes)
+ return
+ }
+
+ // Remove pointers at or below the current depth from map used to detect
+ // circular refs.
+ for k, depth := range f.pointers {
+ if depth >= f.depth {
+ delete(f.pointers, k)
+ }
+ }
+
+ // Keep list of all dereferenced pointers to possibly show later.
+ pointerChain := make([]uintptr, 0)
+
+ // Figure out how many levels of indirection there are by derferencing
+ // pointers and unpacking interfaces down the chain while detecting circular
+ // references.
+ nilFound := false
+ cycleFound := false
+ indirects := 0
+ ve := v
+ for ve.Kind() == reflect.Ptr {
+ if ve.IsNil() {
+ nilFound = true
+ break
+ }
+ indirects++
+ addr := ve.Pointer()
+ pointerChain = append(pointerChain, addr)
+ if pd, ok := f.pointers[addr]; ok && pd < f.depth {
+ cycleFound = true
+ indirects--
+ break
+ }
+ f.pointers[addr] = f.depth
+
+ ve = ve.Elem()
+ if ve.Kind() == reflect.Interface {
+ if ve.IsNil() {
+ nilFound = true
+ break
+ }
+ ve = ve.Elem()
+ }
+ }
+
+ // Display type or indirection level depending on flags.
+ if showTypes && !f.ignoreNextType {
+ f.fs.Write(openParenBytes)
+ f.fs.Write(bytes.Repeat(asteriskBytes, indirects))
+ f.fs.Write([]byte(ve.Type().String()))
+ f.fs.Write(closeParenBytes)
+ } else {
+ if nilFound || cycleFound {
+ indirects += strings.Count(ve.Type().String(), "*")
+ }
+ f.fs.Write(openAngleBytes)
+ f.fs.Write([]byte(strings.Repeat("*", indirects)))
+ f.fs.Write(closeAngleBytes)
+ }
+
+ // Display pointer information depending on flags.
+ if f.fs.Flag('+') && (len(pointerChain) > 0) {
+ f.fs.Write(openParenBytes)
+ for i, addr := range pointerChain {
+ if i > 0 {
+ f.fs.Write(pointerChainBytes)
+ }
+ printHexPtr(f.fs, addr)
+ }
+ f.fs.Write(closeParenBytes)
+ }
+
+ // Display dereferenced value.
+ switch {
+ case nilFound:
+ f.fs.Write(nilAngleBytes)
+
+ case cycleFound:
+ f.fs.Write(circularShortBytes)
+
+ default:
+ f.ignoreNextType = true
+ f.format(ve)
+ }
+}
+
+// format is the main workhorse for providing the Formatter interface. It
+// uses the passed reflect value to figure out what kind of object we are
+// dealing with and formats it appropriately. It is a recursive function,
+// however circular data structures are detected and handled properly.
+func (f *formatState) format(v reflect.Value) {
+ // Handle invalid reflect values immediately.
+ kind := v.Kind()
+ if kind == reflect.Invalid {
+ f.fs.Write(invalidAngleBytes)
+ return
+ }
+
+ // Handle pointers specially.
+ if kind == reflect.Ptr {
+ f.formatPtr(v)
+ return
+ }
+
+ // Print type information unless already handled elsewhere.
+ if !f.ignoreNextType && f.fs.Flag('#') {
+ f.fs.Write(openParenBytes)
+ f.fs.Write([]byte(v.Type().String()))
+ f.fs.Write(closeParenBytes)
+ }
+ f.ignoreNextType = false
+
+ // Call Stringer/error interfaces if they exist and the handle methods
+ // flag is enabled.
+ if !f.cs.DisableMethods {
+ if (kind != reflect.Invalid) && (kind != reflect.Interface) {
+ if handled := handleMethods(f.cs, f.fs, v); handled {
+ return
+ }
+ }
+ }
+
+ switch kind {
+ case reflect.Invalid:
+ // Do nothing. We should never get here since invalid has already
+ // been handled above.
+
+ case reflect.Bool:
+ printBool(f.fs, v.Bool())
+
+ case reflect.Int8, reflect.Int16, reflect.Int32, reflect.Int64, reflect.Int:
+ printInt(f.fs, v.Int(), 10)
+
+ case reflect.Uint8, reflect.Uint16, reflect.Uint32, reflect.Uint64, reflect.Uint:
+ printUint(f.fs, v.Uint(), 10)
+
+ case reflect.Float32:
+ printFloat(f.fs, v.Float(), 32)
+
+ case reflect.Float64:
+ printFloat(f.fs, v.Float(), 64)
+
+ case reflect.Complex64:
+ printComplex(f.fs, v.Complex(), 32)
+
+ case reflect.Complex128:
+ printComplex(f.fs, v.Complex(), 64)
+
+ case reflect.Slice:
+ if v.IsNil() {
+ f.fs.Write(nilAngleBytes)
+ break
+ }
+ fallthrough
+
+ case reflect.Array:
+ f.fs.Write(openBracketBytes)
+ f.depth++
+ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {
+ f.fs.Write(maxShortBytes)
+ } else {
+ numEntries := v.Len()
+ for i := 0; i < numEntries; i++ {
+ if i > 0 {
+ f.fs.Write(spaceBytes)
+ }
+ f.ignoreNextType = true
+ f.format(f.unpackValue(v.Index(i)))
+ }
+ }
+ f.depth--
+ f.fs.Write(closeBracketBytes)
+
+ case reflect.String:
+ f.fs.Write([]byte(v.String()))
+
+ case reflect.Interface:
+ // The only time we should get here is for nil interfaces due to
+ // unpackValue calls.
+ if v.IsNil() {
+ f.fs.Write(nilAngleBytes)
+ }
+
+ case reflect.Ptr:
+ // Do nothing. We should never get here since pointers have already
+ // been handled above.
+
+ case reflect.Map:
+ // nil maps should be indicated as different than empty maps
+ if v.IsNil() {
+ f.fs.Write(nilAngleBytes)
+ break
+ }
+
+ f.fs.Write(openMapBytes)
+ f.depth++
+ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {
+ f.fs.Write(maxShortBytes)
+ } else {
+ keys := v.MapKeys()
+ if f.cs.SortKeys {
+ sortValues(keys, f.cs)
+ }
+ for i, key := range keys {
+ if i > 0 {
+ f.fs.Write(spaceBytes)
+ }
+ f.ignoreNextType = true
+ f.format(f.unpackValue(key))
+ f.fs.Write(colonBytes)
+ f.ignoreNextType = true
+ f.format(f.unpackValue(v.MapIndex(key)))
+ }
+ }
+ f.depth--
+ f.fs.Write(closeMapBytes)
+
+ case reflect.Struct:
+ numFields := v.NumField()
+ f.fs.Write(openBraceBytes)
+ f.depth++
+ if (f.cs.MaxDepth != 0) && (f.depth > f.cs.MaxDepth) {
+ f.fs.Write(maxShortBytes)
+ } else {
+ vt := v.Type()
+ for i := 0; i < numFields; i++ {
+ if i > 0 {
+ f.fs.Write(spaceBytes)
+ }
+ vtf := vt.Field(i)
+ if f.fs.Flag('+') || f.fs.Flag('#') {
+ f.fs.Write([]byte(vtf.Name))
+ f.fs.Write(colonBytes)
+ }
+ f.format(f.unpackValue(v.Field(i)))
+ }
+ }
+ f.depth--
+ f.fs.Write(closeBraceBytes)
+
+ case reflect.Uintptr:
+ printHexPtr(f.fs, uintptr(v.Uint()))
+
+ case reflect.UnsafePointer, reflect.Chan, reflect.Func:
+ printHexPtr(f.fs, v.Pointer())
+
+ // There were not any other types at the time this code was written, but
+ // fall back to letting the default fmt package handle it if any get added.
+ default:
+ format := f.buildDefaultFormat()
+ if v.CanInterface() {
+ fmt.Fprintf(f.fs, format, v.Interface())
+ } else {
+ fmt.Fprintf(f.fs, format, v.String())
+ }
+ }
+}
+
+// Format satisfies the fmt.Formatter interface. See NewFormatter for usage
+// details.
+func (f *formatState) Format(fs fmt.State, verb rune) {
+ f.fs = fs
+
+ // Use standard formatting for verbs that are not v.
+ if verb != 'v' {
+ format := f.constructOrigFormat(verb)
+ fmt.Fprintf(fs, format, f.value)
+ return
+ }
+
+ if f.value == nil {
+ if fs.Flag('#') {
+ fs.Write(interfaceBytes)
+ }
+ fs.Write(nilAngleBytes)
+ return
+ }
+
+ f.format(reflect.ValueOf(f.value))
+}
+
+// newFormatter is a helper function to consolidate the logic from the various
+// public methods which take varying config states.
+func newFormatter(cs *ConfigState, v interface{}) fmt.Formatter {
+ fs := &formatState{value: v, cs: cs}
+ fs.pointers = make(map[uintptr]int)
+ return fs
+}
+
+/*
+NewFormatter returns a custom formatter that satisfies the fmt.Formatter
+interface. As a result, it integrates cleanly with standard fmt package
+printing functions. The formatter is useful for inline printing of smaller data
+types similar to the standard %v format specifier.
+
+The custom formatter only responds to the %v (most compact), %+v (adds pointer
+addresses), %#v (adds types), or %#+v (adds types and pointer addresses) verb
+combinations. Any other verbs such as %x and %q will be sent to the the
+standard fmt package for formatting. In addition, the custom formatter ignores
+the width and precision arguments (however they will still work on the format
+specifiers not handled by the custom formatter).
+
+Typically this function shouldn't be called directly. It is much easier to make
+use of the custom formatter by calling one of the convenience functions such as
+Printf, Println, or Fprintf.
+*/
+func NewFormatter(v interface{}) fmt.Formatter {
+ return newFormatter(&Config, v)
+}
diff --git a/vendor/github.com/davecgh/go-spew/spew/spew.go b/vendor/github.com/davecgh/go-spew/spew/spew.go
new file mode 100644
index 000000000..32c0e3388
--- /dev/null
+++ b/vendor/github.com/davecgh/go-spew/spew/spew.go
@@ -0,0 +1,148 @@
+/*
+ * Copyright (c) 2013-2016 Dave Collins
+ *
+ * Permission to use, copy, modify, and distribute this software for any
+ * purpose with or without fee is hereby granted, provided that the above
+ * copyright notice and this permission notice appear in all copies.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ */
+
+package spew
+
+import (
+ "fmt"
+ "io"
+)
+
+// Errorf is a wrapper for fmt.Errorf that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the formatted string as a value that satisfies error. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Errorf(format, spew.NewFormatter(a), spew.NewFormatter(b))
+func Errorf(format string, a ...interface{}) (err error) {
+ return fmt.Errorf(format, convertArgs(a)...)
+}
+
+// Fprint is a wrapper for fmt.Fprint that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprint(w, spew.NewFormatter(a), spew.NewFormatter(b))
+func Fprint(w io.Writer, a ...interface{}) (n int, err error) {
+ return fmt.Fprint(w, convertArgs(a)...)
+}
+
+// Fprintf is a wrapper for fmt.Fprintf that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprintf(w, format, spew.NewFormatter(a), spew.NewFormatter(b))
+func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error) {
+ return fmt.Fprintf(w, format, convertArgs(a)...)
+}
+
+// Fprintln is a wrapper for fmt.Fprintln that treats each argument as if it
+// passed with a default Formatter interface returned by NewFormatter. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Fprintln(w, spew.NewFormatter(a), spew.NewFormatter(b))
+func Fprintln(w io.Writer, a ...interface{}) (n int, err error) {
+ return fmt.Fprintln(w, convertArgs(a)...)
+}
+
+// Print is a wrapper for fmt.Print that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Print(spew.NewFormatter(a), spew.NewFormatter(b))
+func Print(a ...interface{}) (n int, err error) {
+ return fmt.Print(convertArgs(a)...)
+}
+
+// Printf is a wrapper for fmt.Printf that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Printf(format, spew.NewFormatter(a), spew.NewFormatter(b))
+func Printf(format string, a ...interface{}) (n int, err error) {
+ return fmt.Printf(format, convertArgs(a)...)
+}
+
+// Println is a wrapper for fmt.Println that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the number of bytes written and any write error encountered. See
+// NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Println(spew.NewFormatter(a), spew.NewFormatter(b))
+func Println(a ...interface{}) (n int, err error) {
+ return fmt.Println(convertArgs(a)...)
+}
+
+// Sprint is a wrapper for fmt.Sprint that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprint(spew.NewFormatter(a), spew.NewFormatter(b))
+func Sprint(a ...interface{}) string {
+ return fmt.Sprint(convertArgs(a)...)
+}
+
+// Sprintf is a wrapper for fmt.Sprintf that treats each argument as if it were
+// passed with a default Formatter interface returned by NewFormatter. It
+// returns the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprintf(format, spew.NewFormatter(a), spew.NewFormatter(b))
+func Sprintf(format string, a ...interface{}) string {
+ return fmt.Sprintf(format, convertArgs(a)...)
+}
+
+// Sprintln is a wrapper for fmt.Sprintln that treats each argument as if it
+// were passed with a default Formatter interface returned by NewFormatter. It
+// returns the resulting string. See NewFormatter for formatting details.
+//
+// This function is shorthand for the following syntax:
+//
+// fmt.Sprintln(spew.NewFormatter(a), spew.NewFormatter(b))
+func Sprintln(a ...interface{}) string {
+ return fmt.Sprintln(convertArgs(a)...)
+}
+
+// convertArgs accepts a slice of arguments and returns a slice of the same
+// length with each argument converted to a default spew Formatter interface.
+func convertArgs(args []interface{}) (formatters []interface{}) {
+ formatters = make([]interface{}, len(args))
+ for index, arg := range args {
+ formatters[index] = NewFormatter(arg)
+ }
+ return formatters
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/.gitignore b/vendor/github.com/dgrijalva/jwt-go/.gitignore
new file mode 100644
index 000000000..80bed650e
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/.gitignore
@@ -0,0 +1,4 @@
+.DS_Store
+bin
+
+
diff --git a/vendor/github.com/dgrijalva/jwt-go/.travis.yml b/vendor/github.com/dgrijalva/jwt-go/.travis.yml
new file mode 100644
index 000000000..1027f56cd
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/.travis.yml
@@ -0,0 +1,13 @@
+language: go
+
+script:
+ - go vet ./...
+ - go test -v ./...
+
+go:
+ - 1.3
+ - 1.4
+ - 1.5
+ - 1.6
+ - 1.7
+ - tip
diff --git a/vendor/github.com/dgrijalva/jwt-go/LICENSE b/vendor/github.com/dgrijalva/jwt-go/LICENSE
new file mode 100644
index 000000000..df83a9c2f
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/LICENSE
@@ -0,0 +1,8 @@
+Copyright (c) 2012 Dave Grijalva
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/vendor/github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md b/vendor/github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md
new file mode 100644
index 000000000..7fc1f793c
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/MIGRATION_GUIDE.md
@@ -0,0 +1,97 @@
+## Migration Guide from v2 -> v3
+
+Version 3 adds several new, frequently requested features. To do so, it introduces a few breaking changes. We've worked to keep these as minimal as possible. This guide explains the breaking changes and how you can quickly update your code.
+
+### `Token.Claims` is now an interface type
+
+The most requested feature from the 2.0 verison of this library was the ability to provide a custom type to the JSON parser for claims. This was implemented by introducing a new interface, `Claims`, to replace `map[string]interface{}`. We also included two concrete implementations of `Claims`: `MapClaims` and `StandardClaims`.
+
+`MapClaims` is an alias for `map[string]interface{}` with built in validation behavior. It is the default claims type when using `Parse`. The usage is unchanged except you must type cast the claims property.
+
+The old example for parsing a token looked like this..
+
+```go
+ if token, err := jwt.Parse(tokenString, keyLookupFunc); err == nil {
+ fmt.Printf("Token for user %v expires %v", token.Claims["user"], token.Claims["exp"])
+ }
+```
+
+is now directly mapped to...
+
+```go
+ if token, err := jwt.Parse(tokenString, keyLookupFunc); err == nil {
+ claims := token.Claims.(jwt.MapClaims)
+ fmt.Printf("Token for user %v expires %v", claims["user"], claims["exp"])
+ }
+```
+
+`StandardClaims` is designed to be embedded in your custom type. You can supply a custom claims type with the new `ParseWithClaims` function. Here's an example of using a custom claims type.
+
+```go
+ type MyCustomClaims struct {
+ User string
+ *StandardClaims
+ }
+
+ if token, err := jwt.ParseWithClaims(tokenString, &MyCustomClaims{}, keyLookupFunc); err == nil {
+ claims := token.Claims.(*MyCustomClaims)
+ fmt.Printf("Token for user %v expires %v", claims.User, claims.StandardClaims.ExpiresAt)
+ }
+```
+
+### `ParseFromRequest` has been moved
+
+To keep this library focused on the tokens without becoming overburdened with complex request processing logic, `ParseFromRequest` and its new companion `ParseFromRequestWithClaims` have been moved to a subpackage, `request`. The method signatues have also been augmented to receive a new argument: `Extractor`.
+
+`Extractors` do the work of picking the token string out of a request. The interface is simple and composable.
+
+This simple parsing example:
+
+```go
+ if token, err := jwt.ParseFromRequest(tokenString, req, keyLookupFunc); err == nil {
+ fmt.Printf("Token for user %v expires %v", token.Claims["user"], token.Claims["exp"])
+ }
+```
+
+is directly mapped to:
+
+```go
+ if token, err := request.ParseFromRequest(req, request.OAuth2Extractor, keyLookupFunc); err == nil {
+ claims := token.Claims.(jwt.MapClaims)
+ fmt.Printf("Token for user %v expires %v", claims["user"], claims["exp"])
+ }
+```
+
+There are several concrete `Extractor` types provided for your convenience:
+
+* `HeaderExtractor` will search a list of headers until one contains content.
+* `ArgumentExtractor` will search a list of keys in request query and form arguments until one contains content.
+* `MultiExtractor` will try a list of `Extractors` in order until one returns content.
+* `AuthorizationHeaderExtractor` will look in the `Authorization` header for a `Bearer` token.
+* `OAuth2Extractor` searches the places an OAuth2 token would be specified (per the spec): `Authorization` header and `access_token` argument
+* `PostExtractionFilter` wraps an `Extractor`, allowing you to process the content before it's parsed. A simple example is stripping the `Bearer ` text from a header
+
+
+### RSA signing methods no longer accept `[]byte` keys
+
+Due to a [critical vulnerability](https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/), we've decided the convenience of accepting `[]byte` instead of `rsa.PublicKey` or `rsa.PrivateKey` isn't worth the risk of misuse.
+
+To replace this behavior, we've added two helper methods: `ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error)` and `ParseRSAPublicKeyFromPEM(key []byte) (*rsa.PublicKey, error)`. These are just simple helpers for unpacking PEM encoded PKCS1 and PKCS8 keys. If your keys are encoded any other way, all you need to do is convert them to the `crypto/rsa` package's types.
+
+```go
+ func keyLookupFunc(*Token) (interface{}, error) {
+ // Don't forget to validate the alg is what you expect:
+ if _, ok := token.Method.(*jwt.SigningMethodRSA); !ok {
+ return nil, fmt.Errorf("Unexpected signing method: %v", token.Header["alg"])
+ }
+
+ // Look up key
+ key, err := lookupPublicKey(token.Header["kid"])
+ if err != nil {
+ return nil, err
+ }
+
+ // Unpack key from PEM encoded PKCS8
+ return jwt.ParseRSAPublicKeyFromPEM(key)
+ }
+```
diff --git a/vendor/github.com/dgrijalva/jwt-go/README.md b/vendor/github.com/dgrijalva/jwt-go/README.md
new file mode 100644
index 000000000..d358d881b
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/README.md
@@ -0,0 +1,100 @@
+# jwt-go
+
+[![Build Status](https://travis-ci.org/dgrijalva/jwt-go.svg?branch=master)](https://travis-ci.org/dgrijalva/jwt-go)
+[![GoDoc](https://godoc.org/github.com/dgrijalva/jwt-go?status.svg)](https://godoc.org/github.com/dgrijalva/jwt-go)
+
+A [go](http://www.golang.org) (or 'golang' for search engine friendliness) implementation of [JSON Web Tokens](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html)
+
+**NEW VERSION COMING:** There have been a lot of improvements suggested since the version 3.0.0 released in 2016. I'm working now on cutting two different releases: 3.2.0 will contain any non-breaking changes or enhancements. 4.0.0 will follow shortly which will include breaking changes. See the 4.0.0 milestone to get an idea of what's coming. If you have other ideas, or would like to participate in 4.0.0, now's the time. If you depend on this library and don't want to be interrupted, I recommend you use your dependency mangement tool to pin to version 3.
+
+**SECURITY NOTICE:** Some older versions of Go have a security issue in the cryotp/elliptic. Recommendation is to upgrade to at least 1.8.3. See issue #216 for more detail.
+
+**SECURITY NOTICE:** It's important that you [validate the `alg` presented is what you expect](https://auth0.com/blog/2015/03/31/critical-vulnerabilities-in-json-web-token-libraries/). This library attempts to make it easy to do the right thing by requiring key types match the expected alg, but you should take the extra step to verify it in your usage. See the examples provided.
+
+## What the heck is a JWT?
+
+JWT.io has [a great introduction](https://jwt.io/introduction) to JSON Web Tokens.
+
+In short, it's a signed JSON object that does something useful (for example, authentication). It's commonly used for `Bearer` tokens in Oauth 2. A token is made of three parts, separated by `.`'s. The first two parts are JSON objects, that have been [base64url](http://tools.ietf.org/html/rfc4648) encoded. The last part is the signature, encoded the same way.
+
+The first part is called the header. It contains the necessary information for verifying the last part, the signature. For example, which encryption method was used for signing and what key was used.
+
+The part in the middle is the interesting bit. It's called the Claims and contains the actual stuff you care about. Refer to [the RFC](http://self-issued.info/docs/draft-jones-json-web-token.html) for information about reserved keys and the proper way to add your own.
+
+## What's in the box?
+
+This library supports the parsing and verification as well as the generation and signing of JWTs. Current supported signing algorithms are HMAC SHA, RSA, RSA-PSS, and ECDSA, though hooks are present for adding your own.
+
+## Examples
+
+See [the project documentation](https://godoc.org/github.com/dgrijalva/jwt-go) for examples of usage:
+
+* [Simple example of parsing and validating a token](https://godoc.org/github.com/dgrijalva/jwt-go#example-Parse--Hmac)
+* [Simple example of building and signing a token](https://godoc.org/github.com/dgrijalva/jwt-go#example-New--Hmac)
+* [Directory of Examples](https://godoc.org/github.com/dgrijalva/jwt-go#pkg-examples)
+
+## Extensions
+
+This library publishes all the necessary components for adding your own signing methods. Simply implement the `SigningMethod` interface and register a factory method using `RegisterSigningMethod`.
+
+Here's an example of an extension that integrates with the Google App Engine signing tools: https://github.com/someone1/gcp-jwt-go
+
+## Compliance
+
+This library was last reviewed to comply with [RTF 7519](http://www.rfc-editor.org/info/rfc7519) dated May 2015 with a few notable differences:
+
+* In order to protect against accidental use of [Unsecured JWTs](http://self-issued.info/docs/draft-ietf-oauth-json-web-token.html#UnsecuredJWT), tokens using `alg=none` will only be accepted if the constant `jwt.UnsafeAllowNoneSignatureType` is provided as the key.
+
+## Project Status & Versioning
+
+This library is considered production ready. Feedback and feature requests are appreciated. The API should be considered stable. There should be very few backwards-incompatible changes outside of major version updates (and only with good reason).
+
+This project uses [Semantic Versioning 2.0.0](http://semver.org). Accepted pull requests will land on `master`. Periodically, versions will be tagged from `master`. You can find all the releases on [the project releases page](https://github.com/dgrijalva/jwt-go/releases).
+
+While we try to make it obvious when we make breaking changes, there isn't a great mechanism for pushing announcements out to users. You may want to use this alternative package include: `gopkg.in/dgrijalva/jwt-go.v3`. It will do the right thing WRT semantic versioning.
+
+**BREAKING CHANGES:***
+* Version 3.0.0 includes _a lot_ of changes from the 2.x line, including a few that break the API. We've tried to break as few things as possible, so there should just be a few type signature changes. A full list of breaking changes is available in `VERSION_HISTORY.md`. See `MIGRATION_GUIDE.md` for more information on updating your code.
+
+## Usage Tips
+
+### Signing vs Encryption
+
+A token is simply a JSON object that is signed by its author. this tells you exactly two things about the data:
+
+* The author of the token was in the possession of the signing secret
+* The data has not been modified since it was signed
+
+It's important to know that JWT does not provide encryption, which means anyone who has access to the token can read its contents. If you need to protect (encrypt) the data, there is a companion spec, `JWE`, that provides this functionality. JWE is currently outside the scope of this library.
+
+### Choosing a Signing Method
+
+There are several signing methods available, and you should probably take the time to learn about the various options before choosing one. The principal design decision is most likely going to be symmetric vs asymmetric.
+
+Symmetric signing methods, such as HSA, use only a single secret. This is probably the simplest signing method to use since any `[]byte` can be used as a valid secret. They are also slightly computationally faster to use, though this rarely is enough to matter. Symmetric signing methods work the best when both producers and consumers of tokens are trusted, or even the same system. Since the same secret is used to both sign and validate tokens, you can't easily distribute the key for validation.
+
+Asymmetric signing methods, such as RSA, use different keys for signing and verifying tokens. This makes it possible to produce tokens with a private key, and allow any consumer to access the public key for verification.
+
+### Signing Methods and Key Types
+
+Each signing method expects a different object type for its signing keys. See the package documentation for details. Here are the most common ones:
+
+* The [HMAC signing method](https://godoc.org/github.com/dgrijalva/jwt-go#SigningMethodHMAC) (`HS256`,`HS384`,`HS512`) expect `[]byte` values for signing and validation
+* The [RSA signing method](https://godoc.org/github.com/dgrijalva/jwt-go#SigningMethodRSA) (`RS256`,`RS384`,`RS512`) expect `*rsa.PrivateKey` for signing and `*rsa.PublicKey` for validation
+* The [ECDSA signing method](https://godoc.org/github.com/dgrijalva/jwt-go#SigningMethodECDSA) (`ES256`,`ES384`,`ES512`) expect `*ecdsa.PrivateKey` for signing and `*ecdsa.PublicKey` for validation
+
+### JWT and OAuth
+
+It's worth mentioning that OAuth and JWT are not the same thing. A JWT token is simply a signed JSON object. It can be used anywhere such a thing is useful. There is some confusion, though, as JWT is the most common type of bearer token used in OAuth2 authentication.
+
+Without going too far down the rabbit hole, here's a description of the interaction of these technologies:
+
+* OAuth is a protocol for allowing an identity provider to be separate from the service a user is logging in to. For example, whenever you use Facebook to log into a different service (Yelp, Spotify, etc), you are using OAuth.
+* OAuth defines several options for passing around authentication data. One popular method is called a "bearer token". A bearer token is simply a string that _should_ only be held by an authenticated user. Thus, simply presenting this token proves your identity. You can probably derive from here why a JWT might make a good bearer token.
+* Because bearer tokens are used for authentication, it's important they're kept secret. This is why transactions that use bearer tokens typically happen over SSL.
+
+## More
+
+Documentation can be found [on godoc.org](http://godoc.org/github.com/dgrijalva/jwt-go).
+
+The command line utility included in this project (cmd/jwt) provides a straightforward example of token creation and parsing as well as a useful tool for debugging your own integration. You'll also find several implementation examples in the documentation.
diff --git a/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md b/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md
new file mode 100644
index 000000000..637029831
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/VERSION_HISTORY.md
@@ -0,0 +1,118 @@
+## `jwt-go` Version History
+
+#### 3.2.0
+
+* Added method `ParseUnverified` to allow users to split up the tasks of parsing and validation
+* HMAC signing method returns `ErrInvalidKeyType` instead of `ErrInvalidKey` where appropriate
+* Added options to `request.ParseFromRequest`, which allows for an arbitrary list of modifiers to parsing behavior. Initial set include `WithClaims` and `WithParser`. Existing usage of this function will continue to work as before.
+* Deprecated `ParseFromRequestWithClaims` to simplify API in the future.
+
+#### 3.1.0
+
+* Improvements to `jwt` command line tool
+* Added `SkipClaimsValidation` option to `Parser`
+* Documentation updates
+
+#### 3.0.0
+
+* **Compatibility Breaking Changes**: See MIGRATION_GUIDE.md for tips on updating your code
+ * Dropped support for `[]byte` keys when using RSA signing methods. This convenience feature could contribute to security vulnerabilities involving mismatched key types with signing methods.
+ * `ParseFromRequest` has been moved to `request` subpackage and usage has changed
+ * The `Claims` property on `Token` is now type `Claims` instead of `map[string]interface{}`. The default value is type `MapClaims`, which is an alias to `map[string]interface{}`. This makes it possible to use a custom type when decoding claims.
+* Other Additions and Changes
+ * Added `Claims` interface type to allow users to decode the claims into a custom type
+ * Added `ParseWithClaims`, which takes a third argument of type `Claims`. Use this function instead of `Parse` if you have a custom type you'd like to decode into.
+ * Dramatically improved the functionality and flexibility of `ParseFromRequest`, which is now in the `request` subpackage
+ * Added `ParseFromRequestWithClaims` which is the `FromRequest` equivalent of `ParseWithClaims`
+ * Added new interface type `Extractor`, which is used for extracting JWT strings from http requests. Used with `ParseFromRequest` and `ParseFromRequestWithClaims`.
+ * Added several new, more specific, validation errors to error type bitmask
+ * Moved examples from README to executable example files
+ * Signing method registry is now thread safe
+ * Added new property to `ValidationError`, which contains the raw error returned by calls made by parse/verify (such as those returned by keyfunc or json parser)
+
+#### 2.7.0
+
+This will likely be the last backwards compatible release before 3.0.0, excluding essential bug fixes.
+
+* Added new option `-show` to the `jwt` command that will just output the decoded token without verifying
+* Error text for expired tokens includes how long it's been expired
+* Fixed incorrect error returned from `ParseRSAPublicKeyFromPEM`
+* Documentation updates
+
+#### 2.6.0
+
+* Exposed inner error within ValidationError
+* Fixed validation errors when using UseJSONNumber flag
+* Added several unit tests
+
+#### 2.5.0
+
+* Added support for signing method none. You shouldn't use this. The API tries to make this clear.
+* Updated/fixed some documentation
+* Added more helpful error message when trying to parse tokens that begin with `BEARER `
+
+#### 2.4.0
+
+* Added new type, Parser, to allow for configuration of various parsing parameters
+ * You can now specify a list of valid signing methods. Anything outside this set will be rejected.
+ * You can now opt to use the `json.Number` type instead of `float64` when parsing token JSON
+* Added support for [Travis CI](https://travis-ci.org/dgrijalva/jwt-go)
+* Fixed some bugs with ECDSA parsing
+
+#### 2.3.0
+
+* Added support for ECDSA signing methods
+* Added support for RSA PSS signing methods (requires go v1.4)
+
+#### 2.2.0
+
+* Gracefully handle a `nil` `Keyfunc` being passed to `Parse`. Result will now be the parsed token and an error, instead of a panic.
+
+#### 2.1.0
+
+Backwards compatible API change that was missed in 2.0.0.
+
+* The `SignedString` method on `Token` now takes `interface{}` instead of `[]byte`
+
+#### 2.0.0
+
+There were two major reasons for breaking backwards compatibility with this update. The first was a refactor required to expand the width of the RSA and HMAC-SHA signing implementations. There will likely be no required code changes to support this change.
+
+The second update, while unfortunately requiring a small change in integration, is required to open up this library to other signing methods. Not all keys used for all signing methods have a single standard on-disk representation. Requiring `[]byte` as the type for all keys proved too limiting. Additionally, this implementation allows for pre-parsed tokens to be reused, which might matter in an application that parses a high volume of tokens with a small set of keys. Backwards compatibilty has been maintained for passing `[]byte` to the RSA signing methods, but they will also accept `*rsa.PublicKey` and `*rsa.PrivateKey`.
+
+It is likely the only integration change required here will be to change `func(t *jwt.Token) ([]byte, error)` to `func(t *jwt.Token) (interface{}, error)` when calling `Parse`.
+
+* **Compatibility Breaking Changes**
+ * `SigningMethodHS256` is now `*SigningMethodHMAC` instead of `type struct`
+ * `SigningMethodRS256` is now `*SigningMethodRSA` instead of `type struct`
+ * `KeyFunc` now returns `interface{}` instead of `[]byte`
+ * `SigningMethod.Sign` now takes `interface{}` instead of `[]byte` for the key
+ * `SigningMethod.Verify` now takes `interface{}` instead of `[]byte` for the key
+* Renamed type `SigningMethodHS256` to `SigningMethodHMAC`. Specific sizes are now just instances of this type.
+ * Added public package global `SigningMethodHS256`
+ * Added public package global `SigningMethodHS384`
+ * Added public package global `SigningMethodHS512`
+* Renamed type `SigningMethodRS256` to `SigningMethodRSA`. Specific sizes are now just instances of this type.
+ * Added public package global `SigningMethodRS256`
+ * Added public package global `SigningMethodRS384`
+ * Added public package global `SigningMethodRS512`
+* Moved sample private key for HMAC tests from an inline value to a file on disk. Value is unchanged.
+* Refactored the RSA implementation to be easier to read
+* Exposed helper methods `ParseRSAPrivateKeyFromPEM` and `ParseRSAPublicKeyFromPEM`
+
+#### 1.0.2
+
+* Fixed bug in parsing public keys from certificates
+* Added more tests around the parsing of keys for RS256
+* Code refactoring in RS256 implementation. No functional changes
+
+#### 1.0.1
+
+* Fixed panic if RS256 signing method was passed an invalid key
+
+#### 1.0.0
+
+* First versioned release
+* API stabilized
+* Supports creating, signing, parsing, and validating JWT tokens
+* Supports RS256 and HS256 signing methods
\ No newline at end of file
diff --git a/vendor/github.com/dgrijalva/jwt-go/claims.go b/vendor/github.com/dgrijalva/jwt-go/claims.go
new file mode 100644
index 000000000..f0228f02e
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/claims.go
@@ -0,0 +1,134 @@
+package jwt
+
+import (
+ "crypto/subtle"
+ "fmt"
+ "time"
+)
+
+// For a type to be a Claims object, it must just have a Valid method that determines
+// if the token is invalid for any supported reason
+type Claims interface {
+ Valid() error
+}
+
+// Structured version of Claims Section, as referenced at
+// https://tools.ietf.org/html/rfc7519#section-4.1
+// See examples for how to use this with your own claim types
+type StandardClaims struct {
+ Audience string `json:"aud,omitempty"`
+ ExpiresAt int64 `json:"exp,omitempty"`
+ Id string `json:"jti,omitempty"`
+ IssuedAt int64 `json:"iat,omitempty"`
+ Issuer string `json:"iss,omitempty"`
+ NotBefore int64 `json:"nbf,omitempty"`
+ Subject string `json:"sub,omitempty"`
+}
+
+// Validates time based claims "exp, iat, nbf".
+// There is no accounting for clock skew.
+// As well, if any of the above claims are not in the token, it will still
+// be considered a valid claim.
+func (c StandardClaims) Valid() error {
+ vErr := new(ValidationError)
+ now := TimeFunc().Unix()
+
+ // The claims below are optional, by default, so if they are set to the
+ // default value in Go, let's not fail the verification for them.
+ if c.VerifyExpiresAt(now, false) == false {
+ delta := time.Unix(now, 0).Sub(time.Unix(c.ExpiresAt, 0))
+ vErr.Inner = fmt.Errorf("token is expired by %v", delta)
+ vErr.Errors |= ValidationErrorExpired
+ }
+
+ if c.VerifyIssuedAt(now, false) == false {
+ vErr.Inner = fmt.Errorf("Token used before issued")
+ vErr.Errors |= ValidationErrorIssuedAt
+ }
+
+ if c.VerifyNotBefore(now, false) == false {
+ vErr.Inner = fmt.Errorf("token is not valid yet")
+ vErr.Errors |= ValidationErrorNotValidYet
+ }
+
+ if vErr.valid() {
+ return nil
+ }
+
+ return vErr
+}
+
+// Compares the aud claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (c *StandardClaims) VerifyAudience(cmp string, req bool) bool {
+ return verifyAud(c.Audience, cmp, req)
+}
+
+// Compares the exp claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (c *StandardClaims) VerifyExpiresAt(cmp int64, req bool) bool {
+ return verifyExp(c.ExpiresAt, cmp, req)
+}
+
+// Compares the iat claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (c *StandardClaims) VerifyIssuedAt(cmp int64, req bool) bool {
+ return verifyIat(c.IssuedAt, cmp, req)
+}
+
+// Compares the iss claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (c *StandardClaims) VerifyIssuer(cmp string, req bool) bool {
+ return verifyIss(c.Issuer, cmp, req)
+}
+
+// Compares the nbf claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (c *StandardClaims) VerifyNotBefore(cmp int64, req bool) bool {
+ return verifyNbf(c.NotBefore, cmp, req)
+}
+
+// ----- helpers
+
+func verifyAud(aud string, cmp string, required bool) bool {
+ if aud == "" {
+ return !required
+ }
+ if subtle.ConstantTimeCompare([]byte(aud), []byte(cmp)) != 0 {
+ return true
+ } else {
+ return false
+ }
+}
+
+func verifyExp(exp int64, now int64, required bool) bool {
+ if exp == 0 {
+ return !required
+ }
+ return now <= exp
+}
+
+func verifyIat(iat int64, now int64, required bool) bool {
+ if iat == 0 {
+ return !required
+ }
+ return now >= iat
+}
+
+func verifyIss(iss string, cmp string, required bool) bool {
+ if iss == "" {
+ return !required
+ }
+ if subtle.ConstantTimeCompare([]byte(iss), []byte(cmp)) != 0 {
+ return true
+ } else {
+ return false
+ }
+}
+
+func verifyNbf(nbf int64, now int64, required bool) bool {
+ if nbf == 0 {
+ return !required
+ }
+ return now >= nbf
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/doc.go b/vendor/github.com/dgrijalva/jwt-go/doc.go
new file mode 100644
index 000000000..a86dc1a3b
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/doc.go
@@ -0,0 +1,4 @@
+// Package jwt is a Go implementation of JSON Web Tokens: http://self-issued.info/docs/draft-jones-json-web-token.html
+//
+// See README.md for more info.
+package jwt
diff --git a/vendor/github.com/dgrijalva/jwt-go/ecdsa.go b/vendor/github.com/dgrijalva/jwt-go/ecdsa.go
new file mode 100644
index 000000000..f97738124
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/ecdsa.go
@@ -0,0 +1,148 @@
+package jwt
+
+import (
+ "crypto"
+ "crypto/ecdsa"
+ "crypto/rand"
+ "errors"
+ "math/big"
+)
+
+var (
+ // Sadly this is missing from crypto/ecdsa compared to crypto/rsa
+ ErrECDSAVerification = errors.New("crypto/ecdsa: verification error")
+)
+
+// Implements the ECDSA family of signing methods signing methods
+// Expects *ecdsa.PrivateKey for signing and *ecdsa.PublicKey for verification
+type SigningMethodECDSA struct {
+ Name string
+ Hash crypto.Hash
+ KeySize int
+ CurveBits int
+}
+
+// Specific instances for EC256 and company
+var (
+ SigningMethodES256 *SigningMethodECDSA
+ SigningMethodES384 *SigningMethodECDSA
+ SigningMethodES512 *SigningMethodECDSA
+)
+
+func init() {
+ // ES256
+ SigningMethodES256 = &SigningMethodECDSA{"ES256", crypto.SHA256, 32, 256}
+ RegisterSigningMethod(SigningMethodES256.Alg(), func() SigningMethod {
+ return SigningMethodES256
+ })
+
+ // ES384
+ SigningMethodES384 = &SigningMethodECDSA{"ES384", crypto.SHA384, 48, 384}
+ RegisterSigningMethod(SigningMethodES384.Alg(), func() SigningMethod {
+ return SigningMethodES384
+ })
+
+ // ES512
+ SigningMethodES512 = &SigningMethodECDSA{"ES512", crypto.SHA512, 66, 521}
+ RegisterSigningMethod(SigningMethodES512.Alg(), func() SigningMethod {
+ return SigningMethodES512
+ })
+}
+
+func (m *SigningMethodECDSA) Alg() string {
+ return m.Name
+}
+
+// Implements the Verify method from SigningMethod
+// For this verify method, key must be an ecdsa.PublicKey struct
+func (m *SigningMethodECDSA) Verify(signingString, signature string, key interface{}) error {
+ var err error
+
+ // Decode the signature
+ var sig []byte
+ if sig, err = DecodeSegment(signature); err != nil {
+ return err
+ }
+
+ // Get the key
+ var ecdsaKey *ecdsa.PublicKey
+ switch k := key.(type) {
+ case *ecdsa.PublicKey:
+ ecdsaKey = k
+ default:
+ return ErrInvalidKeyType
+ }
+
+ if len(sig) != 2*m.KeySize {
+ return ErrECDSAVerification
+ }
+
+ r := big.NewInt(0).SetBytes(sig[:m.KeySize])
+ s := big.NewInt(0).SetBytes(sig[m.KeySize:])
+
+ // Create hasher
+ if !m.Hash.Available() {
+ return ErrHashUnavailable
+ }
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ // Verify the signature
+ if verifystatus := ecdsa.Verify(ecdsaKey, hasher.Sum(nil), r, s); verifystatus == true {
+ return nil
+ } else {
+ return ErrECDSAVerification
+ }
+}
+
+// Implements the Sign method from SigningMethod
+// For this signing method, key must be an ecdsa.PrivateKey struct
+func (m *SigningMethodECDSA) Sign(signingString string, key interface{}) (string, error) {
+ // Get the key
+ var ecdsaKey *ecdsa.PrivateKey
+ switch k := key.(type) {
+ case *ecdsa.PrivateKey:
+ ecdsaKey = k
+ default:
+ return "", ErrInvalidKeyType
+ }
+
+ // Create the hasher
+ if !m.Hash.Available() {
+ return "", ErrHashUnavailable
+ }
+
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ // Sign the string and return r, s
+ if r, s, err := ecdsa.Sign(rand.Reader, ecdsaKey, hasher.Sum(nil)); err == nil {
+ curveBits := ecdsaKey.Curve.Params().BitSize
+
+ if m.CurveBits != curveBits {
+ return "", ErrInvalidKey
+ }
+
+ keyBytes := curveBits / 8
+ if curveBits%8 > 0 {
+ keyBytes += 1
+ }
+
+ // We serialize the outpus (r and s) into big-endian byte arrays and pad
+ // them with zeros on the left to make sure the sizes work out. Both arrays
+ // must be keyBytes long, and the output must be 2*keyBytes long.
+ rBytes := r.Bytes()
+ rBytesPadded := make([]byte, keyBytes)
+ copy(rBytesPadded[keyBytes-len(rBytes):], rBytes)
+
+ sBytes := s.Bytes()
+ sBytesPadded := make([]byte, keyBytes)
+ copy(sBytesPadded[keyBytes-len(sBytes):], sBytes)
+
+ out := append(rBytesPadded, sBytesPadded...)
+
+ return EncodeSegment(out), nil
+ } else {
+ return "", err
+ }
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go b/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go
new file mode 100644
index 000000000..d19624b72
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/ecdsa_utils.go
@@ -0,0 +1,67 @@
+package jwt
+
+import (
+ "crypto/ecdsa"
+ "crypto/x509"
+ "encoding/pem"
+ "errors"
+)
+
+var (
+ ErrNotECPublicKey = errors.New("Key is not a valid ECDSA public key")
+ ErrNotECPrivateKey = errors.New("Key is not a valid ECDSA private key")
+)
+
+// Parse PEM encoded Elliptic Curve Private Key Structure
+func ParseECPrivateKeyFromPEM(key []byte) (*ecdsa.PrivateKey, error) {
+ var err error
+
+ // Parse PEM block
+ var block *pem.Block
+ if block, _ = pem.Decode(key); block == nil {
+ return nil, ErrKeyMustBePEMEncoded
+ }
+
+ // Parse the key
+ var parsedKey interface{}
+ if parsedKey, err = x509.ParseECPrivateKey(block.Bytes); err != nil {
+ return nil, err
+ }
+
+ var pkey *ecdsa.PrivateKey
+ var ok bool
+ if pkey, ok = parsedKey.(*ecdsa.PrivateKey); !ok {
+ return nil, ErrNotECPrivateKey
+ }
+
+ return pkey, nil
+}
+
+// Parse PEM encoded PKCS1 or PKCS8 public key
+func ParseECPublicKeyFromPEM(key []byte) (*ecdsa.PublicKey, error) {
+ var err error
+
+ // Parse PEM block
+ var block *pem.Block
+ if block, _ = pem.Decode(key); block == nil {
+ return nil, ErrKeyMustBePEMEncoded
+ }
+
+ // Parse the key
+ var parsedKey interface{}
+ if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
+ if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
+ parsedKey = cert.PublicKey
+ } else {
+ return nil, err
+ }
+ }
+
+ var pkey *ecdsa.PublicKey
+ var ok bool
+ if pkey, ok = parsedKey.(*ecdsa.PublicKey); !ok {
+ return nil, ErrNotECPublicKey
+ }
+
+ return pkey, nil
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/errors.go b/vendor/github.com/dgrijalva/jwt-go/errors.go
new file mode 100644
index 000000000..1c93024aa
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/errors.go
@@ -0,0 +1,59 @@
+package jwt
+
+import (
+ "errors"
+)
+
+// Error constants
+var (
+ ErrInvalidKey = errors.New("key is invalid")
+ ErrInvalidKeyType = errors.New("key is of invalid type")
+ ErrHashUnavailable = errors.New("the requested hash function is unavailable")
+)
+
+// The errors that might occur when parsing and validating a token
+const (
+ ValidationErrorMalformed uint32 = 1 << iota // Token is malformed
+ ValidationErrorUnverifiable // Token could not be verified because of signing problems
+ ValidationErrorSignatureInvalid // Signature validation failed
+
+ // Standard Claim validation errors
+ ValidationErrorAudience // AUD validation failed
+ ValidationErrorExpired // EXP validation failed
+ ValidationErrorIssuedAt // IAT validation failed
+ ValidationErrorIssuer // ISS validation failed
+ ValidationErrorNotValidYet // NBF validation failed
+ ValidationErrorId // JTI validation failed
+ ValidationErrorClaimsInvalid // Generic claims validation error
+)
+
+// Helper for constructing a ValidationError with a string error message
+func NewValidationError(errorText string, errorFlags uint32) *ValidationError {
+ return &ValidationError{
+ text: errorText,
+ Errors: errorFlags,
+ }
+}
+
+// The error from Parse if token is not valid
+type ValidationError struct {
+ Inner error // stores the error returned by external dependencies, i.e.: KeyFunc
+ Errors uint32 // bitfield. see ValidationError... constants
+ text string // errors that do not have a valid error just have text
+}
+
+// Validation error is an error type
+func (e ValidationError) Error() string {
+ if e.Inner != nil {
+ return e.Inner.Error()
+ } else if e.text != "" {
+ return e.text
+ } else {
+ return "token is invalid"
+ }
+}
+
+// No errors
+func (e *ValidationError) valid() bool {
+ return e.Errors == 0
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/hmac.go b/vendor/github.com/dgrijalva/jwt-go/hmac.go
new file mode 100644
index 000000000..addbe5d40
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/hmac.go
@@ -0,0 +1,95 @@
+package jwt
+
+import (
+ "crypto"
+ "crypto/hmac"
+ "errors"
+)
+
+// Implements the HMAC-SHA family of signing methods signing methods
+// Expects key type of []byte for both signing and validation
+type SigningMethodHMAC struct {
+ Name string
+ Hash crypto.Hash
+}
+
+// Specific instances for HS256 and company
+var (
+ SigningMethodHS256 *SigningMethodHMAC
+ SigningMethodHS384 *SigningMethodHMAC
+ SigningMethodHS512 *SigningMethodHMAC
+ ErrSignatureInvalid = errors.New("signature is invalid")
+)
+
+func init() {
+ // HS256
+ SigningMethodHS256 = &SigningMethodHMAC{"HS256", crypto.SHA256}
+ RegisterSigningMethod(SigningMethodHS256.Alg(), func() SigningMethod {
+ return SigningMethodHS256
+ })
+
+ // HS384
+ SigningMethodHS384 = &SigningMethodHMAC{"HS384", crypto.SHA384}
+ RegisterSigningMethod(SigningMethodHS384.Alg(), func() SigningMethod {
+ return SigningMethodHS384
+ })
+
+ // HS512
+ SigningMethodHS512 = &SigningMethodHMAC{"HS512", crypto.SHA512}
+ RegisterSigningMethod(SigningMethodHS512.Alg(), func() SigningMethod {
+ return SigningMethodHS512
+ })
+}
+
+func (m *SigningMethodHMAC) Alg() string {
+ return m.Name
+}
+
+// Verify the signature of HSXXX tokens. Returns nil if the signature is valid.
+func (m *SigningMethodHMAC) Verify(signingString, signature string, key interface{}) error {
+ // Verify the key is the right type
+ keyBytes, ok := key.([]byte)
+ if !ok {
+ return ErrInvalidKeyType
+ }
+
+ // Decode signature, for comparison
+ sig, err := DecodeSegment(signature)
+ if err != nil {
+ return err
+ }
+
+ // Can we use the specified hashing method?
+ if !m.Hash.Available() {
+ return ErrHashUnavailable
+ }
+
+ // This signing method is symmetric, so we validate the signature
+ // by reproducing the signature from the signing string and key, then
+ // comparing that against the provided signature.
+ hasher := hmac.New(m.Hash.New, keyBytes)
+ hasher.Write([]byte(signingString))
+ if !hmac.Equal(sig, hasher.Sum(nil)) {
+ return ErrSignatureInvalid
+ }
+
+ // No validation errors. Signature is good.
+ return nil
+}
+
+// Implements the Sign method from SigningMethod for this signing method.
+// Key must be []byte
+func (m *SigningMethodHMAC) Sign(signingString string, key interface{}) (string, error) {
+ if keyBytes, ok := key.([]byte); ok {
+ if !m.Hash.Available() {
+ return "", ErrHashUnavailable
+ }
+
+ hasher := hmac.New(m.Hash.New, keyBytes)
+ hasher.Write([]byte(signingString))
+
+ return EncodeSegment(hasher.Sum(nil)), nil
+ }
+
+ return "", ErrInvalidKeyType
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/map_claims.go b/vendor/github.com/dgrijalva/jwt-go/map_claims.go
new file mode 100644
index 000000000..291213c46
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/map_claims.go
@@ -0,0 +1,94 @@
+package jwt
+
+import (
+ "encoding/json"
+ "errors"
+ // "fmt"
+)
+
+// Claims type that uses the map[string]interface{} for JSON decoding
+// This is the default claims type if you don't supply one
+type MapClaims map[string]interface{}
+
+// Compares the aud claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (m MapClaims) VerifyAudience(cmp string, req bool) bool {
+ aud, _ := m["aud"].(string)
+ return verifyAud(aud, cmp, req)
+}
+
+// Compares the exp claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (m MapClaims) VerifyExpiresAt(cmp int64, req bool) bool {
+ switch exp := m["exp"].(type) {
+ case float64:
+ return verifyExp(int64(exp), cmp, req)
+ case json.Number:
+ v, _ := exp.Int64()
+ return verifyExp(v, cmp, req)
+ }
+ return req == false
+}
+
+// Compares the iat claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (m MapClaims) VerifyIssuedAt(cmp int64, req bool) bool {
+ switch iat := m["iat"].(type) {
+ case float64:
+ return verifyIat(int64(iat), cmp, req)
+ case json.Number:
+ v, _ := iat.Int64()
+ return verifyIat(v, cmp, req)
+ }
+ return req == false
+}
+
+// Compares the iss claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (m MapClaims) VerifyIssuer(cmp string, req bool) bool {
+ iss, _ := m["iss"].(string)
+ return verifyIss(iss, cmp, req)
+}
+
+// Compares the nbf claim against cmp.
+// If required is false, this method will return true if the value matches or is unset
+func (m MapClaims) VerifyNotBefore(cmp int64, req bool) bool {
+ switch nbf := m["nbf"].(type) {
+ case float64:
+ return verifyNbf(int64(nbf), cmp, req)
+ case json.Number:
+ v, _ := nbf.Int64()
+ return verifyNbf(v, cmp, req)
+ }
+ return req == false
+}
+
+// Validates time based claims "exp, iat, nbf".
+// There is no accounting for clock skew.
+// As well, if any of the above claims are not in the token, it will still
+// be considered a valid claim.
+func (m MapClaims) Valid() error {
+ vErr := new(ValidationError)
+ now := TimeFunc().Unix()
+
+ if m.VerifyExpiresAt(now, false) == false {
+ vErr.Inner = errors.New("Token is expired")
+ vErr.Errors |= ValidationErrorExpired
+ }
+
+ if m.VerifyIssuedAt(now, false) == false {
+ vErr.Inner = errors.New("Token used before issued")
+ vErr.Errors |= ValidationErrorIssuedAt
+ }
+
+ if m.VerifyNotBefore(now, false) == false {
+ vErr.Inner = errors.New("Token is not valid yet")
+ vErr.Errors |= ValidationErrorNotValidYet
+ }
+
+ if vErr.valid() {
+ return nil
+ }
+
+ return vErr
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/none.go b/vendor/github.com/dgrijalva/jwt-go/none.go
new file mode 100644
index 000000000..f04d189d0
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/none.go
@@ -0,0 +1,52 @@
+package jwt
+
+// Implements the none signing method. This is required by the spec
+// but you probably should never use it.
+var SigningMethodNone *signingMethodNone
+
+const UnsafeAllowNoneSignatureType unsafeNoneMagicConstant = "none signing method allowed"
+
+var NoneSignatureTypeDisallowedError error
+
+type signingMethodNone struct{}
+type unsafeNoneMagicConstant string
+
+func init() {
+ SigningMethodNone = &signingMethodNone{}
+ NoneSignatureTypeDisallowedError = NewValidationError("'none' signature type is not allowed", ValidationErrorSignatureInvalid)
+
+ RegisterSigningMethod(SigningMethodNone.Alg(), func() SigningMethod {
+ return SigningMethodNone
+ })
+}
+
+func (m *signingMethodNone) Alg() string {
+ return "none"
+}
+
+// Only allow 'none' alg type if UnsafeAllowNoneSignatureType is specified as the key
+func (m *signingMethodNone) Verify(signingString, signature string, key interface{}) (err error) {
+ // Key must be UnsafeAllowNoneSignatureType to prevent accidentally
+ // accepting 'none' signing method
+ if _, ok := key.(unsafeNoneMagicConstant); !ok {
+ return NoneSignatureTypeDisallowedError
+ }
+ // If signing method is none, signature must be an empty string
+ if signature != "" {
+ return NewValidationError(
+ "'none' signing method with non-empty signature",
+ ValidationErrorSignatureInvalid,
+ )
+ }
+
+ // Accept 'none' signing method.
+ return nil
+}
+
+// Only allow 'none' signing if UnsafeAllowNoneSignatureType is specified as the key
+func (m *signingMethodNone) Sign(signingString string, key interface{}) (string, error) {
+ if _, ok := key.(unsafeNoneMagicConstant); ok {
+ return "", nil
+ }
+ return "", NoneSignatureTypeDisallowedError
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/parser.go b/vendor/github.com/dgrijalva/jwt-go/parser.go
new file mode 100644
index 000000000..d6901d9ad
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/parser.go
@@ -0,0 +1,148 @@
+package jwt
+
+import (
+ "bytes"
+ "encoding/json"
+ "fmt"
+ "strings"
+)
+
+type Parser struct {
+ ValidMethods []string // If populated, only these methods will be considered valid
+ UseJSONNumber bool // Use JSON Number format in JSON decoder
+ SkipClaimsValidation bool // Skip claims validation during token parsing
+}
+
+// Parse, validate, and return a token.
+// keyFunc will receive the parsed token and should return the key for validating.
+// If everything is kosher, err will be nil
+func (p *Parser) Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
+ return p.ParseWithClaims(tokenString, MapClaims{}, keyFunc)
+}
+
+func (p *Parser) ParseWithClaims(tokenString string, claims Claims, keyFunc Keyfunc) (*Token, error) {
+ token, parts, err := p.ParseUnverified(tokenString, claims)
+ if err != nil {
+ return token, err
+ }
+
+ // Verify signing method is in the required set
+ if p.ValidMethods != nil {
+ var signingMethodValid = false
+ var alg = token.Method.Alg()
+ for _, m := range p.ValidMethods {
+ if m == alg {
+ signingMethodValid = true
+ break
+ }
+ }
+ if !signingMethodValid {
+ // signing method is not in the listed set
+ return token, NewValidationError(fmt.Sprintf("signing method %v is invalid", alg), ValidationErrorSignatureInvalid)
+ }
+ }
+
+ // Lookup key
+ var key interface{}
+ if keyFunc == nil {
+ // keyFunc was not provided. short circuiting validation
+ return token, NewValidationError("no Keyfunc was provided.", ValidationErrorUnverifiable)
+ }
+ if key, err = keyFunc(token); err != nil {
+ // keyFunc returned an error
+ if ve, ok := err.(*ValidationError); ok {
+ return token, ve
+ }
+ return token, &ValidationError{Inner: err, Errors: ValidationErrorUnverifiable}
+ }
+
+ vErr := &ValidationError{}
+
+ // Validate Claims
+ if !p.SkipClaimsValidation {
+ if err := token.Claims.Valid(); err != nil {
+
+ // If the Claims Valid returned an error, check if it is a validation error,
+ // If it was another error type, create a ValidationError with a generic ClaimsInvalid flag set
+ if e, ok := err.(*ValidationError); !ok {
+ vErr = &ValidationError{Inner: err, Errors: ValidationErrorClaimsInvalid}
+ } else {
+ vErr = e
+ }
+ }
+ }
+
+ // Perform validation
+ token.Signature = parts[2]
+ if err = token.Method.Verify(strings.Join(parts[0:2], "."), token.Signature, key); err != nil {
+ vErr.Inner = err
+ vErr.Errors |= ValidationErrorSignatureInvalid
+ }
+
+ if vErr.valid() {
+ token.Valid = true
+ return token, nil
+ }
+
+ return token, vErr
+}
+
+// WARNING: Don't use this method unless you know what you're doing
+//
+// This method parses the token but doesn't validate the signature. It's only
+// ever useful in cases where you know the signature is valid (because it has
+// been checked previously in the stack) and you want to extract values from
+// it.
+func (p *Parser) ParseUnverified(tokenString string, claims Claims) (token *Token, parts []string, err error) {
+ parts = strings.Split(tokenString, ".")
+ if len(parts) != 3 {
+ return nil, parts, NewValidationError("token contains an invalid number of segments", ValidationErrorMalformed)
+ }
+
+ token = &Token{Raw: tokenString}
+
+ // parse Header
+ var headerBytes []byte
+ if headerBytes, err = DecodeSegment(parts[0]); err != nil {
+ if strings.HasPrefix(strings.ToLower(tokenString), "bearer ") {
+ return token, parts, NewValidationError("tokenstring should not contain 'bearer '", ValidationErrorMalformed)
+ }
+ return token, parts, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
+ }
+ if err = json.Unmarshal(headerBytes, &token.Header); err != nil {
+ return token, parts, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
+ }
+
+ // parse Claims
+ var claimBytes []byte
+ token.Claims = claims
+
+ if claimBytes, err = DecodeSegment(parts[1]); err != nil {
+ return token, parts, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
+ }
+ dec := json.NewDecoder(bytes.NewBuffer(claimBytes))
+ if p.UseJSONNumber {
+ dec.UseNumber()
+ }
+ // JSON Decode. Special case for map type to avoid weird pointer behavior
+ if c, ok := token.Claims.(MapClaims); ok {
+ err = dec.Decode(&c)
+ } else {
+ err = dec.Decode(&claims)
+ }
+ // Handle decode error
+ if err != nil {
+ return token, parts, &ValidationError{Inner: err, Errors: ValidationErrorMalformed}
+ }
+
+ // Lookup signature method
+ if method, ok := token.Header["alg"].(string); ok {
+ if token.Method = GetSigningMethod(method); token.Method == nil {
+ return token, parts, NewValidationError("signing method (alg) is unavailable.", ValidationErrorUnverifiable)
+ }
+ } else {
+ return token, parts, NewValidationError("signing method (alg) is unspecified.", ValidationErrorUnverifiable)
+ }
+
+ return token, parts, nil
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/rsa.go b/vendor/github.com/dgrijalva/jwt-go/rsa.go
new file mode 100644
index 000000000..e4caf1ca4
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/rsa.go
@@ -0,0 +1,101 @@
+package jwt
+
+import (
+ "crypto"
+ "crypto/rand"
+ "crypto/rsa"
+)
+
+// Implements the RSA family of signing methods signing methods
+// Expects *rsa.PrivateKey for signing and *rsa.PublicKey for validation
+type SigningMethodRSA struct {
+ Name string
+ Hash crypto.Hash
+}
+
+// Specific instances for RS256 and company
+var (
+ SigningMethodRS256 *SigningMethodRSA
+ SigningMethodRS384 *SigningMethodRSA
+ SigningMethodRS512 *SigningMethodRSA
+)
+
+func init() {
+ // RS256
+ SigningMethodRS256 = &SigningMethodRSA{"RS256", crypto.SHA256}
+ RegisterSigningMethod(SigningMethodRS256.Alg(), func() SigningMethod {
+ return SigningMethodRS256
+ })
+
+ // RS384
+ SigningMethodRS384 = &SigningMethodRSA{"RS384", crypto.SHA384}
+ RegisterSigningMethod(SigningMethodRS384.Alg(), func() SigningMethod {
+ return SigningMethodRS384
+ })
+
+ // RS512
+ SigningMethodRS512 = &SigningMethodRSA{"RS512", crypto.SHA512}
+ RegisterSigningMethod(SigningMethodRS512.Alg(), func() SigningMethod {
+ return SigningMethodRS512
+ })
+}
+
+func (m *SigningMethodRSA) Alg() string {
+ return m.Name
+}
+
+// Implements the Verify method from SigningMethod
+// For this signing method, must be an *rsa.PublicKey structure.
+func (m *SigningMethodRSA) Verify(signingString, signature string, key interface{}) error {
+ var err error
+
+ // Decode the signature
+ var sig []byte
+ if sig, err = DecodeSegment(signature); err != nil {
+ return err
+ }
+
+ var rsaKey *rsa.PublicKey
+ var ok bool
+
+ if rsaKey, ok = key.(*rsa.PublicKey); !ok {
+ return ErrInvalidKeyType
+ }
+
+ // Create hasher
+ if !m.Hash.Available() {
+ return ErrHashUnavailable
+ }
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ // Verify the signature
+ return rsa.VerifyPKCS1v15(rsaKey, m.Hash, hasher.Sum(nil), sig)
+}
+
+// Implements the Sign method from SigningMethod
+// For this signing method, must be an *rsa.PrivateKey structure.
+func (m *SigningMethodRSA) Sign(signingString string, key interface{}) (string, error) {
+ var rsaKey *rsa.PrivateKey
+ var ok bool
+
+ // Validate type of key
+ if rsaKey, ok = key.(*rsa.PrivateKey); !ok {
+ return "", ErrInvalidKey
+ }
+
+ // Create the hasher
+ if !m.Hash.Available() {
+ return "", ErrHashUnavailable
+ }
+
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ // Sign the string and return the encoded bytes
+ if sigBytes, err := rsa.SignPKCS1v15(rand.Reader, rsaKey, m.Hash, hasher.Sum(nil)); err == nil {
+ return EncodeSegment(sigBytes), nil
+ } else {
+ return "", err
+ }
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go b/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go
new file mode 100644
index 000000000..10ee9db8a
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/rsa_pss.go
@@ -0,0 +1,126 @@
+// +build go1.4
+
+package jwt
+
+import (
+ "crypto"
+ "crypto/rand"
+ "crypto/rsa"
+)
+
+// Implements the RSAPSS family of signing methods signing methods
+type SigningMethodRSAPSS struct {
+ *SigningMethodRSA
+ Options *rsa.PSSOptions
+}
+
+// Specific instances for RS/PS and company
+var (
+ SigningMethodPS256 *SigningMethodRSAPSS
+ SigningMethodPS384 *SigningMethodRSAPSS
+ SigningMethodPS512 *SigningMethodRSAPSS
+)
+
+func init() {
+ // PS256
+ SigningMethodPS256 = &SigningMethodRSAPSS{
+ &SigningMethodRSA{
+ Name: "PS256",
+ Hash: crypto.SHA256,
+ },
+ &rsa.PSSOptions{
+ SaltLength: rsa.PSSSaltLengthAuto,
+ Hash: crypto.SHA256,
+ },
+ }
+ RegisterSigningMethod(SigningMethodPS256.Alg(), func() SigningMethod {
+ return SigningMethodPS256
+ })
+
+ // PS384
+ SigningMethodPS384 = &SigningMethodRSAPSS{
+ &SigningMethodRSA{
+ Name: "PS384",
+ Hash: crypto.SHA384,
+ },
+ &rsa.PSSOptions{
+ SaltLength: rsa.PSSSaltLengthAuto,
+ Hash: crypto.SHA384,
+ },
+ }
+ RegisterSigningMethod(SigningMethodPS384.Alg(), func() SigningMethod {
+ return SigningMethodPS384
+ })
+
+ // PS512
+ SigningMethodPS512 = &SigningMethodRSAPSS{
+ &SigningMethodRSA{
+ Name: "PS512",
+ Hash: crypto.SHA512,
+ },
+ &rsa.PSSOptions{
+ SaltLength: rsa.PSSSaltLengthAuto,
+ Hash: crypto.SHA512,
+ },
+ }
+ RegisterSigningMethod(SigningMethodPS512.Alg(), func() SigningMethod {
+ return SigningMethodPS512
+ })
+}
+
+// Implements the Verify method from SigningMethod
+// For this verify method, key must be an rsa.PublicKey struct
+func (m *SigningMethodRSAPSS) Verify(signingString, signature string, key interface{}) error {
+ var err error
+
+ // Decode the signature
+ var sig []byte
+ if sig, err = DecodeSegment(signature); err != nil {
+ return err
+ }
+
+ var rsaKey *rsa.PublicKey
+ switch k := key.(type) {
+ case *rsa.PublicKey:
+ rsaKey = k
+ default:
+ return ErrInvalidKey
+ }
+
+ // Create hasher
+ if !m.Hash.Available() {
+ return ErrHashUnavailable
+ }
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ return rsa.VerifyPSS(rsaKey, m.Hash, hasher.Sum(nil), sig, m.Options)
+}
+
+// Implements the Sign method from SigningMethod
+// For this signing method, key must be an rsa.PrivateKey struct
+func (m *SigningMethodRSAPSS) Sign(signingString string, key interface{}) (string, error) {
+ var rsaKey *rsa.PrivateKey
+
+ switch k := key.(type) {
+ case *rsa.PrivateKey:
+ rsaKey = k
+ default:
+ return "", ErrInvalidKeyType
+ }
+
+ // Create the hasher
+ if !m.Hash.Available() {
+ return "", ErrHashUnavailable
+ }
+
+ hasher := m.Hash.New()
+ hasher.Write([]byte(signingString))
+
+ // Sign the string and return the encoded bytes
+ if sigBytes, err := rsa.SignPSS(rand.Reader, rsaKey, m.Hash, hasher.Sum(nil), m.Options); err == nil {
+ return EncodeSegment(sigBytes), nil
+ } else {
+ return "", err
+ }
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go b/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
new file mode 100644
index 000000000..a5ababf95
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/rsa_utils.go
@@ -0,0 +1,101 @@
+package jwt
+
+import (
+ "crypto/rsa"
+ "crypto/x509"
+ "encoding/pem"
+ "errors"
+)
+
+var (
+ ErrKeyMustBePEMEncoded = errors.New("Invalid Key: Key must be PEM encoded PKCS1 or PKCS8 private key")
+ ErrNotRSAPrivateKey = errors.New("Key is not a valid RSA private key")
+ ErrNotRSAPublicKey = errors.New("Key is not a valid RSA public key")
+)
+
+// Parse PEM encoded PKCS1 or PKCS8 private key
+func ParseRSAPrivateKeyFromPEM(key []byte) (*rsa.PrivateKey, error) {
+ var err error
+
+ // Parse PEM block
+ var block *pem.Block
+ if block, _ = pem.Decode(key); block == nil {
+ return nil, ErrKeyMustBePEMEncoded
+ }
+
+ var parsedKey interface{}
+ if parsedKey, err = x509.ParsePKCS1PrivateKey(block.Bytes); err != nil {
+ if parsedKey, err = x509.ParsePKCS8PrivateKey(block.Bytes); err != nil {
+ return nil, err
+ }
+ }
+
+ var pkey *rsa.PrivateKey
+ var ok bool
+ if pkey, ok = parsedKey.(*rsa.PrivateKey); !ok {
+ return nil, ErrNotRSAPrivateKey
+ }
+
+ return pkey, nil
+}
+
+// Parse PEM encoded PKCS1 or PKCS8 private key protected with password
+func ParseRSAPrivateKeyFromPEMWithPassword(key []byte, password string) (*rsa.PrivateKey, error) {
+ var err error
+
+ // Parse PEM block
+ var block *pem.Block
+ if block, _ = pem.Decode(key); block == nil {
+ return nil, ErrKeyMustBePEMEncoded
+ }
+
+ var parsedKey interface{}
+
+ var blockDecrypted []byte
+ if blockDecrypted, err = x509.DecryptPEMBlock(block, []byte(password)); err != nil {
+ return nil, err
+ }
+
+ if parsedKey, err = x509.ParsePKCS1PrivateKey(blockDecrypted); err != nil {
+ if parsedKey, err = x509.ParsePKCS8PrivateKey(blockDecrypted); err != nil {
+ return nil, err
+ }
+ }
+
+ var pkey *rsa.PrivateKey
+ var ok bool
+ if pkey, ok = parsedKey.(*rsa.PrivateKey); !ok {
+ return nil, ErrNotRSAPrivateKey
+ }
+
+ return pkey, nil
+}
+
+// Parse PEM encoded PKCS1 or PKCS8 public key
+func ParseRSAPublicKeyFromPEM(key []byte) (*rsa.PublicKey, error) {
+ var err error
+
+ // Parse PEM block
+ var block *pem.Block
+ if block, _ = pem.Decode(key); block == nil {
+ return nil, ErrKeyMustBePEMEncoded
+ }
+
+ // Parse the key
+ var parsedKey interface{}
+ if parsedKey, err = x509.ParsePKIXPublicKey(block.Bytes); err != nil {
+ if cert, err := x509.ParseCertificate(block.Bytes); err == nil {
+ parsedKey = cert.PublicKey
+ } else {
+ return nil, err
+ }
+ }
+
+ var pkey *rsa.PublicKey
+ var ok bool
+ if pkey, ok = parsedKey.(*rsa.PublicKey); !ok {
+ return nil, ErrNotRSAPublicKey
+ }
+
+ return pkey, nil
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/signing_method.go b/vendor/github.com/dgrijalva/jwt-go/signing_method.go
new file mode 100644
index 000000000..ed1f212b2
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/signing_method.go
@@ -0,0 +1,35 @@
+package jwt
+
+import (
+ "sync"
+)
+
+var signingMethods = map[string]func() SigningMethod{}
+var signingMethodLock = new(sync.RWMutex)
+
+// Implement SigningMethod to add new methods for signing or verifying tokens.
+type SigningMethod interface {
+ Verify(signingString, signature string, key interface{}) error // Returns nil if signature is valid
+ Sign(signingString string, key interface{}) (string, error) // Returns encoded signature or error
+ Alg() string // returns the alg identifier for this method (example: 'HS256')
+}
+
+// Register the "alg" name and a factory function for signing method.
+// This is typically done during init() in the method's implementation
+func RegisterSigningMethod(alg string, f func() SigningMethod) {
+ signingMethodLock.Lock()
+ defer signingMethodLock.Unlock()
+
+ signingMethods[alg] = f
+}
+
+// Get a signing method from an "alg" string
+func GetSigningMethod(alg string) (method SigningMethod) {
+ signingMethodLock.RLock()
+ defer signingMethodLock.RUnlock()
+
+ if methodF, ok := signingMethods[alg]; ok {
+ method = methodF()
+ }
+ return
+}
diff --git a/vendor/github.com/dgrijalva/jwt-go/token.go b/vendor/github.com/dgrijalva/jwt-go/token.go
new file mode 100644
index 000000000..d637e0867
--- /dev/null
+++ b/vendor/github.com/dgrijalva/jwt-go/token.go
@@ -0,0 +1,108 @@
+package jwt
+
+import (
+ "encoding/base64"
+ "encoding/json"
+ "strings"
+ "time"
+)
+
+// TimeFunc provides the current time when parsing token to validate "exp" claim (expiration time).
+// You can override it to use another time value. This is useful for testing or if your
+// server uses a different time zone than your tokens.
+var TimeFunc = time.Now
+
+// Parse methods use this callback function to supply
+// the key for verification. The function receives the parsed,
+// but unverified Token. This allows you to use properties in the
+// Header of the token (such as `kid`) to identify which key to use.
+type Keyfunc func(*Token) (interface{}, error)
+
+// A JWT Token. Different fields will be used depending on whether you're
+// creating or parsing/verifying a token.
+type Token struct {
+ Raw string // The raw token. Populated when you Parse a token
+ Method SigningMethod // The signing method used or to be used
+ Header map[string]interface{} // The first segment of the token
+ Claims Claims // The second segment of the token
+ Signature string // The third segment of the token. Populated when you Parse a token
+ Valid bool // Is the token valid? Populated when you Parse/Verify a token
+}
+
+// Create a new Token. Takes a signing method
+func New(method SigningMethod) *Token {
+ return NewWithClaims(method, MapClaims{})
+}
+
+func NewWithClaims(method SigningMethod, claims Claims) *Token {
+ return &Token{
+ Header: map[string]interface{}{
+ "typ": "JWT",
+ "alg": method.Alg(),
+ },
+ Claims: claims,
+ Method: method,
+ }
+}
+
+// Get the complete, signed token
+func (t *Token) SignedString(key interface{}) (string, error) {
+ var sig, sstr string
+ var err error
+ if sstr, err = t.SigningString(); err != nil {
+ return "", err
+ }
+ if sig, err = t.Method.Sign(sstr, key); err != nil {
+ return "", err
+ }
+ return strings.Join([]string{sstr, sig}, "."), nil
+}
+
+// Generate the signing string. This is the
+// most expensive part of the whole deal. Unless you
+// need this for something special, just go straight for
+// the SignedString.
+func (t *Token) SigningString() (string, error) {
+ var err error
+ parts := make([]string, 2)
+ for i, _ := range parts {
+ var jsonValue []byte
+ if i == 0 {
+ if jsonValue, err = json.Marshal(t.Header); err != nil {
+ return "", err
+ }
+ } else {
+ if jsonValue, err = json.Marshal(t.Claims); err != nil {
+ return "", err
+ }
+ }
+
+ parts[i] = EncodeSegment(jsonValue)
+ }
+ return strings.Join(parts, "."), nil
+}
+
+// Parse, validate, and return a token.
+// keyFunc will receive the parsed token and should return the key for validating.
+// If everything is kosher, err will be nil
+func Parse(tokenString string, keyFunc Keyfunc) (*Token, error) {
+ return new(Parser).Parse(tokenString, keyFunc)
+}
+
+func ParseWithClaims(tokenString string, claims Claims, keyFunc Keyfunc) (*Token, error) {
+ return new(Parser).ParseWithClaims(tokenString, claims, keyFunc)
+}
+
+// Encode JWT specific base64url encoding with padding stripped
+func EncodeSegment(seg []byte) string {
+ return strings.TrimRight(base64.URLEncoding.EncodeToString(seg), "=")
+}
+
+// Decode JWT specific base64url encoding with padding stripped
+func DecodeSegment(seg string) ([]byte, error) {
+ if l := len(seg) % 4; l > 0 {
+ seg += strings.Repeat("=", 4-l)
+ }
+
+ return base64.URLEncoding.DecodeString(seg)
+}
diff --git a/vendor/github.com/dsoprea/go-exif/.travis.yml b/vendor/github.com/dsoprea/go-exif/.travis.yml
new file mode 100644
index 000000000..162896e30
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/.travis.yml
@@ -0,0 +1,24 @@
+language: go
+go:
+ - master
+ - stable
+ - "1.14"
+ - "1.13"
+ - "1.12"
+env:
+ - GO111MODULE=on
+install:
+ - go get -t ./...
+script:
+# v1
+ - go test -v .
+ - go test -v ./exif-read-tool
+# v2
+ - cd v2
+ - go test -v ./...
+ - cd ..
+# v3. Coverage reports comes from this.
+ - cd v3
+ - go test -v ./... -coverprofile=coverage.txt -covermode=atomic
+after_success:
+ - curl -s https://codecov.io/bash | bash
diff --git a/vendor/github.com/dsoprea/go-exif/LICENSE b/vendor/github.com/dsoprea/go-exif/LICENSE
new file mode 100644
index 000000000..0b9358a3a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/LICENSE
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright 2019 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-exif/README.md b/vendor/github.com/dsoprea/go-exif/README.md
new file mode 100644
index 000000000..972d58493
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/README.md
@@ -0,0 +1,206 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-exif.svg?branch=master)](https://travis-ci.org/dsoprea/go-exif)
+[![codecov](https://codecov.io/gh/dsoprea/go-exif/branch/master/graph/badge.svg)](https://codecov.io/gh/dsoprea/go-exif)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-exif/v3)](https://goreportcard.com/report/github.com/dsoprea/go-exif/v3)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-exif/v3?status.svg)](https://godoc.org/github.com/dsoprea/go-exif/v3)
+
+# Overview
+
+This package provides native Go functionality to parse an existing EXIF block, update an existing EXIF block, or add a new EXIF block.
+
+
+# Getting
+
+To get the project and dependencies:
+
+```
+$ go get -t github.com/dsoprea/go-exif/v3
+```
+
+
+# Scope
+
+This project is concerned only with parsing and encoding raw EXIF data. It does
+not understand specific file-formats. This package assumes you know how to
+extract the raw EXIF data from a file, such as a JPEG, and, if you want to
+update it, know how to write it back. File-specific formats are not the concern
+of *go-exif*, though we provide
+[exif.SearchAndExtractExif][search-and-extract-exif] and
+[exif.SearchFileAndExtractExif][search-file-and-extract-exif] as brute-force
+search mechanisms that will help you explore the EXIF information for newer
+formats that you might not yet have any way to parse.
+
+That said, the author also provides the following projects to support the
+efficient processing of the corresponding image formats:
+
+- [go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure)
+- [go-png-image-structure](https://github.com/dsoprea/go-png-image-structure)
+- [go-tiff-image-structure](https://github.com/dsoprea/go-tiff-image-structure)
+- [go-heic-exif-extractor](https://github.com/dsoprea/go-heic-exif-extractor)
+
+See the [SetExif example in go-jpeg-image-structure][jpeg-set-exif] for
+practical information on getting started with JPEG files.
+
+
+# Usage
+
+The package provides a set of [working examples][examples] and is covered by
+unit-tests. Please look to these for getting familiar with how to read and write
+EXIF.
+
+Create an instance of the `Exif` type and call `Scan()` with a byte-slice, where
+the first byte is the beginning of the raw EXIF data. You may pass a callback
+that will be invoked for every tag or `nil` if you do not want one. If no
+callback is given, you are effectively just validating the structure or parsing
+of the image.
+
+Obviously, it is most efficient to properly parse the media file and then
+provide the specific EXIF data to be parsed, but there is also a heuristic for
+finding the EXIF data within the media blob, directly. This means that, at least
+for testing or curiosity, **you do not have to parse or even understand the
+format of image or audio file in order to find and decode the EXIF information
+inside of it.** See the usage of the `SearchAndExtractExif` method in the
+example.
+
+The library often refers to an IFD with an "IFD path" (e.g. IFD/Exif,
+IFD/GPSInfo). A "fully-qualified" IFD-path is one that includes an index
+describing which specific sibling IFD is being referred to if not the first one
+(e.g. IFD1, the IFD where the thumbnail is expressed per the TIFF standard).
+
+There is an "IFD mapping" and a "tag index" that must be created and passed to
+the library from the top. These contain all of the knowledge of the IFD
+hierarchies and their tag-IDs (the IFD mapping) and the tags that they are
+allowed to host (the tag index). There are convenience functions to load them
+with the standard TIFF information, but you, alternatively, may choose
+something totally different (to support parsing any kind of EXIF data that does
+not follow or is not relevant to TIFF at all).
+
+
+# Standards and Customization
+
+This project is configuration driven. By default, it has no knowledge of tags
+and IDs until you load them prior to using (which is incorporated in the
+examples). You are just as easily able to add additional custom IFDs and custom
+tags for them. If desired, you could completely ignore the standard information
+and load *totally* non-standard IFDs and tags.
+
+This would be useful for divergent implementations that add non-standard
+information to images. It would also be useful if there is some need to just
+store a flat list of tags in an image for simplified, proprietary usage.
+
+
+# Reader Tool
+
+There is a runnable reading/dumping tool included:
+
+```
+$ go get github.com/dsoprea/go-exif/v3/command/exif-read-tool
+$ exif-read-tool --filepath ""
+```
+
+Example output:
+
+```
+IFD-PATH=[IFD] ID=(0x010f) NAME=[Make] COUNT=(6) TYPE=[ASCII] VALUE=[Canon]
+IFD-PATH=[IFD] ID=(0x0110) NAME=[Model] COUNT=(22) TYPE=[ASCII] VALUE=[Canon EOS 5D Mark III]
+IFD-PATH=[IFD] ID=(0x0112) NAME=[Orientation] COUNT=(1) TYPE=[SHORT] VALUE=[1]
+IFD-PATH=[IFD] ID=(0x011a) NAME=[XResolution] COUNT=(1) TYPE=[RATIONAL] VALUE=[72/1]
+IFD-PATH=[IFD] ID=(0x011b) NAME=[YResolution] COUNT=(1) TYPE=[RATIONAL] VALUE=[72/1]
+IFD-PATH=[IFD] ID=(0x0128) NAME=[ResolutionUnit] COUNT=(1) TYPE=[SHORT] VALUE=[2]
+IFD-PATH=[IFD] ID=(0x0132) NAME=[DateTime] COUNT=(20) TYPE=[ASCII] VALUE=[2017:12:02 08:18:50]
+...
+```
+
+You can also print the raw, parsed data as JSON:
+
+```
+$ exif-read-tool --filepath "" -json
+```
+
+Example output:
+
+```
+[
+ {
+ "ifd_path": "IFD",
+ "fq_ifd_path": "IFD",
+ "ifd_index": 0,
+ "tag_id": 271,
+ "tag_name": "Make",
+ "tag_type_id": 2,
+ "tag_type_name": "ASCII",
+ "unit_count": 6,
+ "value": "Canon",
+ "value_string": "Canon"
+ },
+ {
+ "ifd_path": "IFD",
+...
+```
+
+
+# Testing
+
+The traditional method:
+
+```
+$ go test github.com/dsoprea/go-exif/v3/...
+```
+
+
+# Release Notes
+
+## v3 Release
+
+This release primarily introduces an interchangeable data-layer, where any
+`io.ReadSeeker` can be used to read EXIF data rather than necessarily loading
+the EXIF blob into memory first.
+
+Several backwards-incompatible clean-ups were also included in this release. See
+[releases][releases] for more information.
+
+## v2 Release
+
+Features a heavily reflowed interface that makes usage much simpler. The
+undefined-type tag-processing (which affects most photographic images) has also
+been overhauled and streamlined. It is now complete and stable. Adoption is
+strongly encouraged.
+
+
+# *Contributing*
+
+EXIF has an excellently-documented structure but there are a lot of devices and
+manufacturers out there. There are only so many files that we can personally
+find to test against, and most of these are images that have been generated only
+in the past few years. JPEG, being the largest implementor of EXIF, has been
+around for even longer (but not much). Therefore, there is a lot of
+compatibility to test for.
+
+**If you are able to help by running the included reader-tool against all of the
+EXIF-compatible files you have, it would be deeply appreciated. This is mostly
+going to be JPEG files (but not all variations). If you are able to test a large
+number of files (thousands or millions) then please post an issue mentioning how
+many files you have processed. If you had failures, then please share them and
+try to support efforts to understand them.**
+
+If you are able to test 100K+ files, I will give you credit on the project. The
+further back in time your images reach, the higher in the list your name/company
+will go.
+
+
+# Contributors/Testing
+
+Thank you to the following users for solving non-trivial issues, supporting the
+project with solving edge-case problems in specific images, or otherwise
+providing their non-trivial time or image corpus to test go-exif:
+
+- [philip-firstorder](https://github.com/philip-firstorder) (200K images)
+- [matchstick](https://github.com/matchstick) (102K images)
+
+In addition to these, it has been tested on my own collection, north of 478K
+images.
+
+[search-and-extract-exif]: https://godoc.org/github.com/dsoprea/go-exif/v3#SearchAndExtractExif
+[search-file-and-extract-exif]: https://godoc.org/github.com/dsoprea/go-exif/v3#SearchFileAndExtractExif
+[jpeg-set-exif]: https://godoc.org/github.com/dsoprea/go-jpeg-image-structure#example-SegmentList-SetExif
+[examples]: https://godoc.org/github.com/dsoprea/go-exif/v3#pkg-examples
+[releases]: https://github.com/dsoprea/go-exif/releases
diff --git a/vendor/github.com/dsoprea/go-exif/error.go b/vendor/github.com/dsoprea/go-exif/error.go
new file mode 100644
index 000000000..0e6e138cb
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/error.go
@@ -0,0 +1,10 @@
+package exif
+
+import (
+ "errors"
+)
+
+var (
+ ErrTagNotFound = errors.New("tag not found")
+ ErrTagNotStandard = errors.New("tag not a standard tag")
+)
diff --git a/vendor/github.com/dsoprea/go-exif/exif.go b/vendor/github.com/dsoprea/go-exif/exif.go
new file mode 100644
index 000000000..8d1b848f0
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/exif.go
@@ -0,0 +1,247 @@
+package exif
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "os"
+
+ "encoding/binary"
+ "io/ioutil"
+
+ "github.com/dsoprea/go-logging"
+)
+
+const (
+ // ExifAddressableAreaStart is the absolute offset in the file that all
+ // offsets are relative to.
+ ExifAddressableAreaStart = uint32(0x0)
+
+ // ExifDefaultFirstIfdOffset is essentially the number of bytes in addition
+ // to `ExifAddressableAreaStart` that you have to move in order to escape
+ // the rest of the header and get to the earliest point where we can put
+ // stuff (which has to be the first IFD). This is the size of the header
+ // sequence containing the two-character byte-order, two-character fixed-
+ // bytes, and the four bytes describing the first-IFD offset.
+ ExifDefaultFirstIfdOffset = uint32(2 + 2 + 4)
+)
+
+var (
+ exifLogger = log.NewLogger("exif.exif")
+
+ // EncodeDefaultByteOrder is the default byte-order for encoding operations.
+ EncodeDefaultByteOrder = binary.BigEndian
+
+ // Default byte order for tests.
+ TestDefaultByteOrder = binary.BigEndian
+
+ BigEndianBoBytes = [2]byte{'M', 'M'}
+ LittleEndianBoBytes = [2]byte{'I', 'I'}
+
+ ByteOrderLookup = map[[2]byte]binary.ByteOrder{
+ BigEndianBoBytes: binary.BigEndian,
+ LittleEndianBoBytes: binary.LittleEndian,
+ }
+
+ ByteOrderLookupR = map[binary.ByteOrder][2]byte{
+ binary.BigEndian: BigEndianBoBytes,
+ binary.LittleEndian: LittleEndianBoBytes,
+ }
+
+ ExifFixedBytesLookup = map[binary.ByteOrder][2]byte{
+ binary.LittleEndian: {0x2a, 0x00},
+ binary.BigEndian: {0x00, 0x2a},
+ }
+)
+
+var (
+ ErrNoExif = errors.New("no exif data")
+ ErrExifHeaderError = errors.New("exif header error")
+)
+
+// SearchAndExtractExif returns a slice from the beginning of the EXIF data to
+// end of the file (it's not practical to try and calculate where the data
+// actually ends; it needs to be formally parsed).
+func SearchAndExtractExif(data []byte) (rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ // Search for the beginning of the EXIF information. The EXIF is near the
+ // beginning of our/most JPEGs, so this has a very low cost.
+
+ foundAt := -1
+ for i := 0; i < len(data); i++ {
+ if _, err := ParseExifHeader(data[i:]); err == nil {
+ foundAt = i
+ break
+ } else if log.Is(err, ErrNoExif) == false {
+ return nil, err
+ }
+ }
+
+ if foundAt == -1 {
+ return nil, ErrNoExif
+ }
+
+ return data[foundAt:], nil
+}
+
+// SearchFileAndExtractExif returns a slice from the beginning of the EXIF data
+// to the end of the file (it's not practical to try and calculate where the
+// data actually ends).
+func SearchFileAndExtractExif(filepath string) (rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ // Open the file.
+
+ f, err := os.Open(filepath)
+ log.PanicIf(err)
+
+ defer f.Close()
+
+ data, err := ioutil.ReadAll(f)
+ log.PanicIf(err)
+
+ rawExif, err = SearchAndExtractExif(data)
+ log.PanicIf(err)
+
+ return rawExif, nil
+}
+
+type ExifHeader struct {
+ ByteOrder binary.ByteOrder
+ FirstIfdOffset uint32
+}
+
+func (eh ExifHeader) String() string {
+ return fmt.Sprintf("ExifHeader", eh.ByteOrder, eh.FirstIfdOffset)
+}
+
+// ParseExifHeader parses the bytes at the very top of the header.
+//
+// This will panic with ErrNoExif on any data errors so that we can double as
+// an EXIF-detection routine.
+func ParseExifHeader(data []byte) (eh ExifHeader, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Good reference:
+ //
+ // CIPA DC-008-2016; JEITA CP-3451D
+ // -> http://www.cipa.jp/std/documents/e/DC-008-Translation-2016-E.pdf
+
+ if len(data) < 2 {
+ exifLogger.Warningf(nil, "Not enough data for EXIF header (1): (%d)", len(data))
+ return eh, ErrNoExif
+ }
+
+ byteOrderBytes := [2]byte{data[0], data[1]}
+
+ byteOrder, found := ByteOrderLookup[byteOrderBytes]
+ if found == false {
+ // exifLogger.Warningf(nil, "EXIF byte-order not recognized: [%v]", byteOrderBytes)
+ return eh, ErrNoExif
+ }
+
+ if len(data) < 4 {
+ exifLogger.Warningf(nil, "Not enough data for EXIF header (2): (%d)", len(data))
+ return eh, ErrNoExif
+ }
+
+ fixedBytes := [2]byte{data[2], data[3]}
+ expectedFixedBytes := ExifFixedBytesLookup[byteOrder]
+ if fixedBytes != expectedFixedBytes {
+ // exifLogger.Warningf(nil, "EXIF header fixed-bytes should be [%v] but are: [%v]", expectedFixedBytes, fixedBytes)
+ return eh, ErrNoExif
+ }
+
+ if len(data) < 2 {
+ exifLogger.Warningf(nil, "Not enough data for EXIF header (3): (%d)", len(data))
+ return eh, ErrNoExif
+ }
+
+ firstIfdOffset := byteOrder.Uint32(data[4:8])
+
+ eh = ExifHeader{
+ ByteOrder: byteOrder,
+ FirstIfdOffset: firstIfdOffset,
+ }
+
+ return eh, nil
+}
+
+// Visit recursively invokes a callback for every tag.
+func Visit(rootIfdName string, ifdMapping *IfdMapping, tagIndex *TagIndex, exifData []byte, visitor RawTagVisitor) (eh ExifHeader, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ eh, err = ParseExifHeader(exifData)
+ log.PanicIf(err)
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, exifData, eh.ByteOrder)
+
+ err = ie.Scan(rootIfdName, eh.FirstIfdOffset, visitor, true)
+ log.PanicIf(err)
+
+ return eh, nil
+}
+
+// Collect recursively builds a static structure of all IFDs and tags.
+func Collect(ifdMapping *IfdMapping, tagIndex *TagIndex, exifData []byte) (eh ExifHeader, index IfdIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ eh, err = ParseExifHeader(exifData)
+ log.PanicIf(err)
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, exifData, eh.ByteOrder)
+
+ index, err = ie.Collect(eh.FirstIfdOffset, true)
+ log.PanicIf(err)
+
+ return eh, index, nil
+}
+
+// BuildExifHeader constructs the bytes that go in the very beginning.
+func BuildExifHeader(byteOrder binary.ByteOrder, firstIfdOffset uint32) (headerBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ b := new(bytes.Buffer)
+
+ // This is the point in the data that all offsets are relative to.
+ boBytes := ByteOrderLookupR[byteOrder]
+ _, err = b.WriteString(string(boBytes[:]))
+ log.PanicIf(err)
+
+ fixedBytes := ExifFixedBytesLookup[byteOrder]
+
+ _, err = b.Write(fixedBytes[:])
+ log.PanicIf(err)
+
+ err = binary.Write(b, byteOrder, firstIfdOffset)
+ log.PanicIf(err)
+
+ return b.Bytes(), nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/go.mod b/vendor/github.com/dsoprea/go-exif/go.mod
new file mode 100644
index 000000000..82f266655
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/go.mod
@@ -0,0 +1,11 @@
+module github.com/dsoprea/go-exif
+
+go 1.13
+
+require (
+ github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696
+ github.com/go-errors/errors v1.0.1 // indirect
+ github.com/golang/geo v0.0.0-20190916061304-5b978397cfec
+ golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 // indirect
+ gopkg.in/yaml.v2 v2.2.7
+)
diff --git a/vendor/github.com/dsoprea/go-exif/go.sum b/vendor/github.com/dsoprea/go-exif/go.sum
new file mode 100644
index 000000000..a36fc5992
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/go.sum
@@ -0,0 +1,14 @@
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696 h1:VGFnZAcLwPpt1sHlAxml+pGLZz9A2s+K/s1YNhPC91Y=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696/go.mod h1:Nm/x2ZUNRW6Fe5C3LxdY1PyZY5wmDv/s5dkPJ/VB3iA=
+github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
+github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
+gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/dsoprea/go-exif/gps.go b/vendor/github.com/dsoprea/go-exif/gps.go
new file mode 100644
index 000000000..7d74f22d3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/gps.go
@@ -0,0 +1,56 @@
+package exif
+
+import (
+ "errors"
+ "fmt"
+ "time"
+
+ "github.com/golang/geo/s2"
+)
+
+var (
+ ErrGpsCoordinatesNotValid = errors.New("GPS coordinates not valid")
+)
+
+type GpsDegrees struct {
+ Orientation byte
+ Degrees, Minutes, Seconds float64
+}
+
+func (d GpsDegrees) String() string {
+ return fmt.Sprintf("Degrees", string([]byte{d.Orientation}), d.Degrees, d.Minutes, d.Seconds)
+}
+
+func (d GpsDegrees) Decimal() float64 {
+ decimal := float64(d.Degrees) + float64(d.Minutes)/60.0 + float64(d.Seconds)/3600.0
+
+ if d.Orientation == 'S' || d.Orientation == 'W' {
+ return -decimal
+ } else {
+ return decimal
+ }
+}
+
+type GpsInfo struct {
+ Latitude, Longitude GpsDegrees
+ Altitude int
+ Timestamp time.Time
+}
+
+func (gi *GpsInfo) String() string {
+ return fmt.Sprintf("GpsInfo", gi.Latitude.Decimal(), gi.Longitude.Decimal(), gi.Altitude, gi.Timestamp)
+}
+
+func (gi *GpsInfo) S2CellId() s2.CellID {
+ latitude := gi.Latitude.Decimal()
+ longitude := gi.Longitude.Decimal()
+
+ ll := s2.LatLngFromDegrees(latitude, longitude)
+ cellId := s2.CellIDFromLatLng(ll)
+
+ if cellId.IsValid() == false {
+ panic(ErrGpsCoordinatesNotValid)
+ }
+
+ return cellId
+}
diff --git a/vendor/github.com/dsoprea/go-exif/ifd.go b/vendor/github.com/dsoprea/go-exif/ifd.go
new file mode 100644
index 000000000..e75404ddc
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/ifd.go
@@ -0,0 +1,407 @@
+package exif
+
+import (
+ "errors"
+ "fmt"
+ "strings"
+
+ "github.com/dsoprea/go-logging"
+)
+
+const (
+ // IFD names. The paths that we referred to the IFDs with are comprised of
+ // these.
+
+ IfdStandard = "IFD"
+ IfdExif = "Exif"
+ IfdGps = "GPSInfo"
+ IfdIop = "Iop"
+
+ // Tag IDs for child IFDs.
+
+ IfdExifId = 0x8769
+ IfdGpsId = 0x8825
+ IfdIopId = 0xA005
+
+ // Just a placeholder.
+
+ IfdRootId = 0x0000
+
+ // The paths of the standard IFDs expressed in the standard IFD-mappings
+ // and as the group-names in the tag data.
+
+ IfdPathStandard = "IFD"
+ IfdPathStandardExif = "IFD/Exif"
+ IfdPathStandardExifIop = "IFD/Exif/Iop"
+ IfdPathStandardGps = "IFD/GPSInfo"
+)
+
+var (
+ ifdLogger = log.NewLogger("exif.ifd")
+)
+
+var (
+ ErrChildIfdNotMapped = errors.New("no child-IFD for that tag-ID under parent")
+)
+
+// type IfdIdentity struct {
+// ParentIfdName string
+// IfdName string
+// }
+
+// func (ii IfdIdentity) String() string {
+// return fmt.Sprintf("IfdIdentity", ii.ParentIfdName, ii.IfdName)
+// }
+
+type MappedIfd struct {
+ ParentTagId uint16
+ Placement []uint16
+ Path []string
+
+ Name string
+ TagId uint16
+ Children map[uint16]*MappedIfd
+}
+
+func (mi *MappedIfd) String() string {
+ pathPhrase := mi.PathPhrase()
+ return fmt.Sprintf("MappedIfd<(0x%04X) [%s] PATH=[%s]>", mi.TagId, mi.Name, pathPhrase)
+}
+
+func (mi *MappedIfd) PathPhrase() string {
+ return strings.Join(mi.Path, "/")
+}
+
+// IfdMapping describes all of the IFDs that we currently recognize.
+type IfdMapping struct {
+ rootNode *MappedIfd
+}
+
+func NewIfdMapping() (ifdMapping *IfdMapping) {
+ rootNode := &MappedIfd{
+ Path: make([]string, 0),
+ Children: make(map[uint16]*MappedIfd),
+ }
+
+ return &IfdMapping{
+ rootNode: rootNode,
+ }
+}
+
+func NewIfdMappingWithStandard() (ifdMapping *IfdMapping) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ im := NewIfdMapping()
+
+ err := LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ return im
+}
+
+func (im *IfdMapping) Get(parentPlacement []uint16) (childIfd *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ptr := im.rootNode
+ for _, tagId := range parentPlacement {
+ if descendantPtr, found := ptr.Children[tagId]; found == false {
+ log.Panicf("ifd child with tag-ID (%04x) not registered: [%s]", tagId, ptr.PathPhrase())
+ } else {
+ ptr = descendantPtr
+ }
+ }
+
+ return ptr, nil
+}
+
+func (im *IfdMapping) GetWithPath(pathPhrase string) (mi *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if pathPhrase == "" {
+ log.Panicf("path-phrase is empty")
+ }
+
+ path := strings.Split(pathPhrase, "/")
+ ptr := im.rootNode
+
+ for _, name := range path {
+ var hit *MappedIfd
+ for _, mi := range ptr.Children {
+ if mi.Name == name {
+ hit = mi
+ break
+ }
+ }
+
+ if hit == nil {
+ log.Panicf("ifd child with name [%s] not registered: [%s]", name, ptr.PathPhrase())
+ }
+
+ ptr = hit
+ }
+
+ return ptr, nil
+}
+
+// GetChild is a convenience function to get the child path for a given parent
+// placement and child tag-ID.
+func (im *IfdMapping) GetChild(parentPathPhrase string, tagId uint16) (mi *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ mi, err = im.GetWithPath(parentPathPhrase)
+ log.PanicIf(err)
+
+ for _, childMi := range mi.Children {
+ if childMi.TagId == tagId {
+ return childMi, nil
+ }
+ }
+
+ // Whether or not an IFD is defined in data, such an IFD is not registered
+ // and would be unknown.
+ log.Panic(ErrChildIfdNotMapped)
+ return nil, nil
+}
+
+type IfdTagIdAndIndex struct {
+ Name string
+ TagId uint16
+ Index int
+}
+
+func (itii IfdTagIdAndIndex) String() string {
+ return fmt.Sprintf("IfdTagIdAndIndex", itii.Name, itii.TagId, itii.Index)
+}
+
+// ResolvePath takes a list of names, which can also be suffixed with indices
+// (to identify the second, third, etc.. sibling IFD) and returns a list of
+// tag-IDs and those indices.
+//
+// Example:
+//
+// - IFD/Exif/Iop
+// - IFD0/Exif/Iop
+//
+// This is the only call that supports adding the numeric indices.
+func (im *IfdMapping) ResolvePath(pathPhrase string) (lineage []IfdTagIdAndIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ pathPhrase = strings.TrimSpace(pathPhrase)
+
+ if pathPhrase == "" {
+ log.Panicf("can not resolve empty path-phrase")
+ }
+
+ path := strings.Split(pathPhrase, "/")
+ lineage = make([]IfdTagIdAndIndex, len(path))
+
+ ptr := im.rootNode
+ empty := IfdTagIdAndIndex{}
+ for i, name := range path {
+ indexByte := name[len(name)-1]
+ index := 0
+ if indexByte >= '0' && indexByte <= '9' {
+ index = int(indexByte - '0')
+ name = name[:len(name)-1]
+ }
+
+ itii := IfdTagIdAndIndex{}
+ for _, mi := range ptr.Children {
+ if mi.Name != name {
+ continue
+ }
+
+ itii.Name = name
+ itii.TagId = mi.TagId
+ itii.Index = index
+
+ ptr = mi
+
+ break
+ }
+
+ if itii == empty {
+ log.Panicf("ifd child with name [%s] not registered: [%s]", name, pathPhrase)
+ }
+
+ lineage[i] = itii
+ }
+
+ return lineage, nil
+}
+
+func (im *IfdMapping) FqPathPhraseFromLineage(lineage []IfdTagIdAndIndex) (fqPathPhrase string) {
+ fqPathParts := make([]string, len(lineage))
+ for i, itii := range lineage {
+ if itii.Index > 0 {
+ fqPathParts[i] = fmt.Sprintf("%s%d", itii.Name, itii.Index)
+ } else {
+ fqPathParts[i] = itii.Name
+ }
+ }
+
+ return strings.Join(fqPathParts, "/")
+}
+
+func (im *IfdMapping) PathPhraseFromLineage(lineage []IfdTagIdAndIndex) (pathPhrase string) {
+ pathParts := make([]string, len(lineage))
+ for i, itii := range lineage {
+ pathParts[i] = itii.Name
+ }
+
+ return strings.Join(pathParts, "/")
+}
+
+// StripPathPhraseIndices returns a non-fully-qualified path-phrase (no
+// indices).
+func (im *IfdMapping) StripPathPhraseIndices(pathPhrase string) (strippedPathPhrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ lineage, err := im.ResolvePath(pathPhrase)
+ log.PanicIf(err)
+
+ strippedPathPhrase = im.PathPhraseFromLineage(lineage)
+ return strippedPathPhrase, nil
+}
+
+// Add puts the given IFD at the given position of the tree. The position of the
+// tree is referred to as the placement and is represented by a set of tag-IDs,
+// where the leftmost is the root tag and the tags going to the right are
+// progressive descendants.
+func (im *IfdMapping) Add(parentPlacement []uint16, tagId uint16, name string) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! It would be nicer to provide a list of names in the placement rather than tag-IDs.
+
+ ptr, err := im.Get(parentPlacement)
+ log.PanicIf(err)
+
+ path := make([]string, len(parentPlacement)+1)
+ if len(parentPlacement) > 0 {
+ copy(path, ptr.Path)
+ }
+
+ path[len(path)-1] = name
+
+ placement := make([]uint16, len(parentPlacement)+1)
+ if len(placement) > 0 {
+ copy(placement, ptr.Placement)
+ }
+
+ placement[len(placement)-1] = tagId
+
+ childIfd := &MappedIfd{
+ ParentTagId: ptr.TagId,
+ Path: path,
+ Placement: placement,
+ Name: name,
+ TagId: tagId,
+ Children: make(map[uint16]*MappedIfd),
+ }
+
+ if _, found := ptr.Children[tagId]; found == true {
+ log.Panicf("child IFD with tag-ID (%04x) already registered under IFD [%s] with tag-ID (%04x)", tagId, ptr.Name, ptr.TagId)
+ }
+
+ ptr.Children[tagId] = childIfd
+
+ return nil
+}
+
+func (im *IfdMapping) dumpLineages(stack []*MappedIfd, input []string) (output []string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ currentIfd := stack[len(stack)-1]
+
+ output = input
+ for _, childIfd := range currentIfd.Children {
+ stackCopy := make([]*MappedIfd, len(stack)+1)
+
+ copy(stackCopy, stack)
+ stackCopy[len(stack)] = childIfd
+
+ // Add to output, but don't include the obligatory root node.
+ parts := make([]string, len(stackCopy)-1)
+ for i, mi := range stackCopy[1:] {
+ parts[i] = mi.Name
+ }
+
+ output = append(output, strings.Join(parts, "/"))
+
+ output, err = im.dumpLineages(stackCopy, output)
+ log.PanicIf(err)
+ }
+
+ return output, nil
+}
+
+func (im *IfdMapping) DumpLineages() (output []string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ stack := []*MappedIfd{im.rootNode}
+ output = make([]string, 0)
+
+ output, err = im.dumpLineages(stack, output)
+ log.PanicIf(err)
+
+ return output, nil
+}
+
+func LoadStandardIfds(im *IfdMapping) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = im.Add([]uint16{}, IfdRootId, IfdStandard)
+ log.PanicIf(err)
+
+ err = im.Add([]uint16{IfdRootId}, IfdExifId, IfdExif)
+ log.PanicIf(err)
+
+ err = im.Add([]uint16{IfdRootId, IfdExifId}, IfdIopId, IfdIop)
+ log.PanicIf(err)
+
+ err = im.Add([]uint16{IfdRootId}, IfdGpsId, IfdGps)
+ log.PanicIf(err)
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/ifd_builder.go b/vendor/github.com/dsoprea/go-exif/ifd_builder.go
new file mode 100644
index 000000000..40ef4dc4f
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/ifd_builder.go
@@ -0,0 +1,1265 @@
+package exif
+
+// NOTES:
+//
+// The thumbnail offset and length tags shouldn't be set directly. Use the
+// (*IfdBuilder).SetThumbnail() method instead.
+
+import (
+ "errors"
+ "fmt"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ ifdBuilderLogger = log.NewLogger("exif.ifd_builder")
+)
+
+var (
+ ErrTagEntryNotFound = errors.New("tag entry not found")
+ ErrChildIbNotFound = errors.New("child IB not found")
+)
+
+type IfdBuilderTagValue struct {
+ valueBytes []byte
+ ib *IfdBuilder
+}
+
+func (ibtv IfdBuilderTagValue) String() string {
+ if ibtv.IsBytes() == true {
+ var valuePhrase string
+ if len(ibtv.valueBytes) <= 8 {
+ valuePhrase = fmt.Sprintf("%v", ibtv.valueBytes)
+ } else {
+ valuePhrase = fmt.Sprintf("%v...", ibtv.valueBytes[:8])
+ }
+
+ return fmt.Sprintf("IfdBuilderTagValue", valuePhrase, len(ibtv.valueBytes))
+ } else if ibtv.IsIb() == true {
+ return fmt.Sprintf("IfdBuilderTagValue", ibtv.ib)
+ } else {
+ log.Panicf("IBTV state undefined")
+ return ""
+ }
+}
+
+func NewIfdBuilderTagValueFromBytes(valueBytes []byte) *IfdBuilderTagValue {
+ return &IfdBuilderTagValue{
+ valueBytes: valueBytes,
+ }
+}
+
+func NewIfdBuilderTagValueFromIfdBuilder(ib *IfdBuilder) *IfdBuilderTagValue {
+ return &IfdBuilderTagValue{
+ ib: ib,
+ }
+}
+
+// IsBytes returns true if the bytes are populated. This is always the case
+// when we're loaded from a tag in an existing IFD.
+func (ibtv IfdBuilderTagValue) IsBytes() bool {
+ return ibtv.valueBytes != nil
+}
+
+func (ibtv IfdBuilderTagValue) Bytes() []byte {
+ if ibtv.IsBytes() == false {
+ log.Panicf("this tag is not a byte-slice value")
+ } else if ibtv.IsIb() == true {
+ log.Panicf("this tag is an IFD-builder value not a byte-slice")
+ }
+
+ return ibtv.valueBytes
+}
+
+func (ibtv IfdBuilderTagValue) IsIb() bool {
+ return ibtv.ib != nil
+}
+
+func (ibtv IfdBuilderTagValue) Ib() *IfdBuilder {
+ if ibtv.IsIb() == false {
+ log.Panicf("this tag is not an IFD-builder value")
+ } else if ibtv.IsBytes() == true {
+ log.Panicf("this tag is a byte-slice, not a IFD-builder")
+ }
+
+ return ibtv.ib
+}
+
+type BuilderTag struct {
+ // ifdPath is the path of the IFD that hosts this tag.
+ ifdPath string
+
+ tagId uint16
+ typeId TagTypePrimitive
+
+ // value is either a value that can be encoded, an IfdBuilder instance (for
+ // child IFDs), or an IfdTagEntry instance representing an existing,
+ // previously-stored tag.
+ value *IfdBuilderTagValue
+
+ // byteOrder is the byte order. It's chiefly/originally here to support
+ // printing the value.
+ byteOrder binary.ByteOrder
+}
+
+func NewBuilderTag(ifdPath string, tagId uint16, typeId TagTypePrimitive, value *IfdBuilderTagValue, byteOrder binary.ByteOrder) *BuilderTag {
+ return &BuilderTag{
+ ifdPath: ifdPath,
+ tagId: tagId,
+ typeId: typeId,
+ value: value,
+ byteOrder: byteOrder,
+ }
+}
+
+func NewChildIfdBuilderTag(ifdPath string, tagId uint16, value *IfdBuilderTagValue) *BuilderTag {
+ return &BuilderTag{
+ ifdPath: ifdPath,
+ tagId: tagId,
+ typeId: TypeLong,
+ value: value,
+ }
+}
+
+func (bt *BuilderTag) Value() (value *IfdBuilderTagValue) {
+ return bt.value
+}
+
+func (bt *BuilderTag) String() string {
+ var valueString string
+
+ if bt.value.IsBytes() == true {
+ var err error
+
+ valueString, err = Format(bt.value.Bytes(), bt.typeId, false, bt.byteOrder)
+ log.PanicIf(err)
+ } else {
+ valueString = fmt.Sprintf("%v", bt.value)
+ }
+
+ return fmt.Sprintf("BuilderTag", bt.ifdPath, bt.tagId, TypeNames[bt.typeId], valueString)
+}
+
+func (bt *BuilderTag) SetValue(byteOrder binary.ByteOrder, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ tt := NewTagType(bt.typeId, byteOrder)
+ ve := NewValueEncoder(byteOrder)
+
+ var ed EncodedData
+ if bt.typeId == TypeUndefined {
+ var err error
+
+ ed, err = EncodeUndefined(bt.ifdPath, bt.tagId, value)
+ log.PanicIf(err)
+ } else {
+ var err error
+
+ ed, err = ve.EncodeWithType(tt, value)
+ log.PanicIf(err)
+ }
+
+ bt.value = NewIfdBuilderTagValueFromBytes(ed.Encoded)
+
+ return nil
+}
+
+// NewStandardBuilderTag constructs a `BuilderTag` instance. The type is looked
+// up. `ii` is the type of IFD that owns this tag.
+func NewStandardBuilderTag(ifdPath string, it *IndexedTag, byteOrder binary.ByteOrder, value interface{}) *BuilderTag {
+ typeId := it.Type
+ tt := NewTagType(typeId, byteOrder)
+
+ ve := NewValueEncoder(byteOrder)
+
+ var ed EncodedData
+ if it.Type == TypeUndefined {
+ var err error
+
+ ed, err = EncodeUndefined(ifdPath, it.Id, value)
+ log.PanicIf(err)
+ } else {
+ var err error
+
+ ed, err = ve.EncodeWithType(tt, value)
+ log.PanicIf(err)
+ }
+
+ tagValue := NewIfdBuilderTagValueFromBytes(ed.Encoded)
+
+ return NewBuilderTag(
+ ifdPath,
+ it.Id,
+ typeId,
+ tagValue,
+ byteOrder)
+}
+
+type IfdBuilder struct {
+ // ifdName is the name of the IFD represented by this instance.
+ name string
+
+ // ifdPath is the path of the IFD represented by this instance.
+ ifdPath string
+
+ // fqIfdPath is the fully-qualified path of the IFD represented by this
+ // instance.
+ fqIfdPath string
+
+ // ifdTagId will be non-zero if we're a child IFD.
+ ifdTagId uint16
+
+ byteOrder binary.ByteOrder
+
+ // Includes both normal tags and IFD tags (which point to child IFDs).
+ // TODO(dustin): Keep a separate list of children like with `Ifd`.
+ // TODO(dustin): Either rename this or `Entries` in `Ifd` to be the same thing.
+ tags []*BuilderTag
+
+ // existingOffset will be the offset that this IFD is currently found at if
+ // it represents an IFD that has previously been stored (or 0 if not).
+ existingOffset uint32
+
+ // nextIb represents the next link if we're chaining to another.
+ nextIb *IfdBuilder
+
+ // thumbnailData is populated with thumbnail data if there was thumbnail
+ // data. Otherwise, it's nil.
+ thumbnailData []byte
+
+ ifdMapping *IfdMapping
+ tagIndex *TagIndex
+}
+
+func NewIfdBuilder(ifdMapping *IfdMapping, tagIndex *TagIndex, fqIfdPath string, byteOrder binary.ByteOrder) (ib *IfdBuilder) {
+ ifdPath, err := ifdMapping.StripPathPhraseIndices(fqIfdPath)
+ log.PanicIf(err)
+
+ var ifdTagId uint16
+
+ mi, err := ifdMapping.GetWithPath(ifdPath)
+ if err == nil {
+ ifdTagId = mi.TagId
+ } else if log.Is(err, ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ ib = &IfdBuilder{
+ // The right-most part of the IFD-path.
+ name: mi.Name,
+
+ // ifdPath describes the current IFD placement within the IFD tree.
+ ifdPath: ifdPath,
+
+ // fqIfdPath describes the current IFD placement within the IFD tree as
+ // well as being qualified with non-zero indices.
+ fqIfdPath: fqIfdPath,
+
+ // ifdTagId is empty unless it's a child-IFD.
+ ifdTagId: ifdTagId,
+
+ byteOrder: byteOrder,
+ tags: make([]*BuilderTag, 0),
+
+ ifdMapping: ifdMapping,
+ tagIndex: tagIndex,
+ }
+
+ return ib
+}
+
+// NewIfdBuilderWithExistingIfd creates a new IB using the same header type
+// information as the given IFD.
+func NewIfdBuilderWithExistingIfd(ifd *Ifd) (ib *IfdBuilder) {
+ name := ifd.Name
+ ifdPath := ifd.IfdPath
+ fqIfdPath := ifd.FqIfdPath
+
+ var ifdTagId uint16
+
+ // There is no tag-ID for the root IFD. It will never be a child IFD.
+ if ifdPath != IfdPathStandard {
+ mi, err := ifd.ifdMapping.GetWithPath(ifdPath)
+ log.PanicIf(err)
+
+ ifdTagId = mi.TagId
+ }
+
+ ib = &IfdBuilder{
+ name: name,
+ ifdPath: ifdPath,
+ fqIfdPath: fqIfdPath,
+ ifdTagId: ifdTagId,
+ byteOrder: ifd.ByteOrder,
+ existingOffset: ifd.Offset,
+ ifdMapping: ifd.ifdMapping,
+ tagIndex: ifd.tagIndex,
+ }
+
+ return ib
+}
+
+// NewIfdBuilderFromExistingChain creates a chain of IB instances from an
+// IFD chain generated from real data.
+func NewIfdBuilderFromExistingChain(rootIfd *Ifd, itevr *IfdTagEntryValueResolver) (firstIb *IfdBuilder) {
+ // OBSOLETE(dustin): Support for `itevr` is now obsolete. This parameter will be removed in the future.
+
+ var lastIb *IfdBuilder
+ i := 0
+ for thisExistingIfd := rootIfd; thisExistingIfd != nil; thisExistingIfd = thisExistingIfd.NextIfd {
+ newIb := NewIfdBuilder(rootIfd.ifdMapping, rootIfd.tagIndex, rootIfd.FqIfdPath, thisExistingIfd.ByteOrder)
+ if firstIb == nil {
+ firstIb = newIb
+ } else {
+ lastIb.SetNextIb(newIb)
+ }
+
+ err := newIb.AddTagsFromExisting(thisExistingIfd, nil, nil, nil)
+ log.PanicIf(err)
+
+ lastIb = newIb
+ i++
+ }
+
+ return firstIb
+}
+
+func (ib *IfdBuilder) NextIb() (nextIb *IfdBuilder, err error) {
+ return ib.nextIb, nil
+}
+
+func (ib *IfdBuilder) ChildWithTagId(childIfdTagId uint16) (childIb *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for _, bt := range ib.tags {
+ if bt.value.IsIb() == false {
+ continue
+ }
+
+ childIbThis := bt.value.Ib()
+
+ if childIbThis.ifdTagId == childIfdTagId {
+ return childIbThis, nil
+ }
+ }
+
+ log.Panic(ErrChildIbNotFound)
+
+ // Never reached.
+ return nil, nil
+}
+
+func getOrCreateIbFromRootIbInner(rootIb *IfdBuilder, parentIb *IfdBuilder, currentLineage []IfdTagIdAndIndex) (ib *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ thisIb := rootIb
+
+ // Since we're calling ourselves recursively with incrementally different
+ // paths, the FQ IFD-path of the parent that called us needs to be passed
+ // in, in order for us to know it.
+ var parentLineage []IfdTagIdAndIndex
+ if parentIb != nil {
+ var err error
+
+ parentLineage, err = thisIb.ifdMapping.ResolvePath(parentIb.fqIfdPath)
+ log.PanicIf(err)
+ }
+
+ // Process the current path part.
+ currentItii := currentLineage[0]
+
+ // Make sure the leftmost part of the FQ IFD-path agrees with the IB we
+ // were given.
+
+ expectedFqRootIfdPath := ""
+ if parentLineage != nil {
+ expectedLineage := append(parentLineage, currentItii)
+ expectedFqRootIfdPath = thisIb.ifdMapping.PathPhraseFromLineage(expectedLineage)
+ } else {
+ expectedFqRootIfdPath = thisIb.ifdMapping.PathPhraseFromLineage(currentLineage[:1])
+ }
+
+ if expectedFqRootIfdPath != thisIb.fqIfdPath {
+ log.Panicf("the FQ IFD-path [%s] we were given does not match the builder's FQ IFD-path [%s]", expectedFqRootIfdPath, thisIb.fqIfdPath)
+ }
+
+ // If we actually wanted a sibling (currentItii.Index > 0) then seek to it,
+ // appending new siblings, as required, until we get there.
+ for i := 0; i < currentItii.Index; i++ {
+ if thisIb.nextIb == nil {
+ // Generate an FQ IFD-path for the sibling. It'll use the same
+ // non-FQ IFD-path as the current IB.
+
+ siblingFqIfdPath := ""
+ if parentLineage != nil {
+ siblingFqIfdPath = fmt.Sprintf("%s/%s%d", parentIb.fqIfdPath, currentItii.Name, i+1)
+ } else {
+ siblingFqIfdPath = fmt.Sprintf("%s%d", currentItii.Name, i+1)
+ }
+
+ thisIb.nextIb = NewIfdBuilder(thisIb.ifdMapping, thisIb.tagIndex, siblingFqIfdPath, thisIb.byteOrder)
+ }
+
+ thisIb = thisIb.nextIb
+ }
+
+ // There is no child IFD to process. We're done.
+ if len(currentLineage) == 1 {
+ return thisIb, nil
+ }
+
+ // Establish the next child to be processed.
+
+ childItii := currentLineage[1]
+
+ var foundChild *IfdBuilder
+ for _, bt := range thisIb.tags {
+ if bt.value.IsIb() == false {
+ continue
+ }
+
+ childIb := bt.value.Ib()
+
+ if childIb.ifdTagId == childItii.TagId {
+ foundChild = childIb
+ break
+ }
+ }
+
+ // If we didn't find the child, add it.
+ if foundChild == nil {
+ thisIbLineage, err := thisIb.ifdMapping.ResolvePath(thisIb.fqIfdPath)
+ log.PanicIf(err)
+
+ childLineage := make([]IfdTagIdAndIndex, len(thisIbLineage)+1)
+ copy(childLineage, thisIbLineage)
+
+ childLineage[len(childLineage)-1] = childItii
+
+ fqIfdChildPath := thisIb.ifdMapping.FqPathPhraseFromLineage(childLineage)
+
+ foundChild = NewIfdBuilder(thisIb.ifdMapping, thisIb.tagIndex, fqIfdChildPath, thisIb.byteOrder)
+
+ err = thisIb.AddChildIb(foundChild)
+ log.PanicIf(err)
+ }
+
+ finalIb, err := getOrCreateIbFromRootIbInner(foundChild, thisIb, currentLineage[1:])
+ log.PanicIf(err)
+
+ return finalIb, nil
+}
+
+// GetOrCreateIbFromRootIb returns an IB representing the requested IFD, even if
+// an IB doesn't already exist for it. This function may call itself
+// recursively.
+func GetOrCreateIbFromRootIb(rootIb *IfdBuilder, fqIfdPath string) (ib *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // lineage is a necessity of our recursion process. It doesn't include any
+ // parent IFDs on its left-side; it starts with the current IB only.
+ lineage, err := rootIb.ifdMapping.ResolvePath(fqIfdPath)
+ log.PanicIf(err)
+
+ ib, err = getOrCreateIbFromRootIbInner(rootIb, nil, lineage)
+ log.PanicIf(err)
+
+ return ib, nil
+}
+
+func (ib *IfdBuilder) String() string {
+ nextIfdPhrase := ""
+ if ib.nextIb != nil {
+ // TODO(dustin): We were setting this to ii.String(), but we were getting hex-data when printing this after building from an existing chain.
+ nextIfdPhrase = ib.nextIb.ifdPath
+ }
+
+ return fmt.Sprintf("IfdBuilder", ib.ifdPath, ib.ifdTagId, len(ib.tags), ib.existingOffset, nextIfdPhrase)
+}
+
+func (ib *IfdBuilder) Tags() (tags []*BuilderTag) {
+ return ib.tags
+}
+
+// SetThumbnail sets thumbnail data.
+//
+// NOTES:
+//
+// - We don't manage any facet of the thumbnail data. This is the
+// responsibility of the user/developer.
+// - This method will fail unless the thumbnail is set on a the root IFD.
+// However, in order to be valid, it must be set on the second one, linked to
+// by the first, as per the EXIF/TIFF specification.
+// - We set the offset to (0) now but will allocate the data and properly assign
+// the offset when the IB is encoded (later).
+func (ib *IfdBuilder) SetThumbnail(data []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if ib.ifdPath != IfdPathStandard {
+ log.Panicf("thumbnails can only go into a root Ifd (and only the second one)")
+ }
+
+ // TODO(dustin): !! Add a test for this function.
+
+ if data == nil || len(data) == 0 {
+ log.Panic("thumbnail is empty")
+ }
+
+ ib.thumbnailData = data
+
+ ibtvfb := NewIfdBuilderTagValueFromBytes(ib.thumbnailData)
+ offsetBt :=
+ NewBuilderTag(
+ ib.ifdPath,
+ ThumbnailOffsetTagId,
+ TypeLong,
+ ibtvfb,
+ ib.byteOrder)
+
+ err = ib.Set(offsetBt)
+ log.PanicIf(err)
+
+ thumbnailSizeIt, err := ib.tagIndex.Get(ib.ifdPath, ThumbnailSizeTagId)
+ log.PanicIf(err)
+
+ sizeBt := NewStandardBuilderTag(ib.ifdPath, thumbnailSizeIt, ib.byteOrder, []uint32{uint32(len(ib.thumbnailData))})
+
+ err = ib.Set(sizeBt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (ib *IfdBuilder) Thumbnail() []byte {
+ return ib.thumbnailData
+}
+
+func (ib *IfdBuilder) printTagTree(levels int) {
+ indent := strings.Repeat(" ", levels*2)
+
+ i := 0
+ for currentIb := ib; currentIb != nil; currentIb = currentIb.nextIb {
+ prefix := " "
+ if i > 0 {
+ prefix = ">"
+ }
+
+ if levels == 0 {
+ fmt.Printf("%s%sIFD: %s INDEX=(%d)\n", indent, prefix, currentIb, i)
+ } else {
+ fmt.Printf("%s%sChild IFD: %s\n", indent, prefix, currentIb)
+ }
+
+ if len(currentIb.tags) > 0 {
+ fmt.Printf("\n")
+
+ for i, tag := range currentIb.tags {
+ isChildIb := false
+ _, err := ib.ifdMapping.GetChild(currentIb.ifdPath, tag.tagId)
+ if err == nil {
+ isChildIb = true
+ } else if log.Is(err, ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ tagName := ""
+
+ // If a normal tag (not a child IFD) get the name.
+ if isChildIb == true {
+ tagName = ""
+ } else {
+ it, err := ib.tagIndex.Get(tag.ifdPath, tag.tagId)
+ if log.Is(err, ErrTagNotFound) == true {
+ tagName = ""
+ } else if err != nil {
+ log.Panic(err)
+ } else {
+ tagName = it.Name
+ }
+ }
+
+ value := tag.Value()
+
+ if value.IsIb() == true {
+ fmt.Printf("%s (%d): [%s] %s\n", indent, i, tagName, value.Ib())
+ } else {
+ fmt.Printf("%s (%d): [%s] %s\n", indent, i, tagName, tag)
+ }
+
+ if isChildIb == true {
+ if tag.value.IsIb() == false {
+ log.Panicf("tag-ID (0x%04x) is an IFD but the tag value is not an IB instance: %v", tag.tagId, tag)
+ }
+
+ fmt.Printf("\n")
+
+ childIb := tag.value.Ib()
+ childIb.printTagTree(levels + 1)
+ }
+ }
+
+ fmt.Printf("\n")
+ }
+
+ i++
+ }
+}
+
+func (ib *IfdBuilder) PrintTagTree() {
+ ib.printTagTree(0)
+}
+
+func (ib *IfdBuilder) printIfdTree(levels int) {
+ indent := strings.Repeat(" ", levels*2)
+
+ i := 0
+ for currentIb := ib; currentIb != nil; currentIb = currentIb.nextIb {
+ prefix := " "
+ if i > 0 {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%s%s\n", indent, prefix, currentIb)
+
+ if len(currentIb.tags) > 0 {
+ for _, tag := range currentIb.tags {
+ isChildIb := false
+ _, err := ib.ifdMapping.GetChild(currentIb.ifdPath, tag.tagId)
+ if err == nil {
+ isChildIb = true
+ } else if log.Is(err, ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ if isChildIb == true {
+ if tag.value.IsIb() == false {
+ log.Panicf("tag-ID (0x%04x) is an IFD but the tag value is not an IB instance: %v", tag.tagId, tag)
+ }
+
+ childIb := tag.value.Ib()
+ childIb.printIfdTree(levels + 1)
+ }
+ }
+ }
+
+ i++
+ }
+}
+
+func (ib *IfdBuilder) PrintIfdTree() {
+ ib.printIfdTree(0)
+}
+
+func (ib *IfdBuilder) dumpToStrings(thisIb *IfdBuilder, prefix string, tagId uint16, lines []string) (linesOutput []string) {
+ if lines == nil {
+ linesOutput = make([]string, 0)
+ } else {
+ linesOutput = lines
+ }
+
+ siblingIfdIndex := 0
+ for ; thisIb != nil; thisIb = thisIb.nextIb {
+ line := fmt.Sprintf("IFD", prefix, thisIb.fqIfdPath, siblingIfdIndex, thisIb.ifdTagId, tagId)
+ linesOutput = append(linesOutput, line)
+
+ for i, tag := range thisIb.tags {
+ var childIb *IfdBuilder
+ childIfdName := ""
+ if tag.value.IsIb() == true {
+ childIb = tag.value.Ib()
+ childIfdName = childIb.ifdPath
+ }
+
+ line := fmt.Sprintf("TAG", prefix, thisIb.fqIfdPath, thisIb.ifdTagId, childIfdName, i, tag.tagId)
+ linesOutput = append(linesOutput, line)
+
+ if childIb == nil {
+ continue
+ }
+
+ childPrefix := ""
+ if prefix == "" {
+ childPrefix = fmt.Sprintf("%s", thisIb.ifdPath)
+ } else {
+ childPrefix = fmt.Sprintf("%s->%s", prefix, thisIb.ifdPath)
+ }
+
+ linesOutput = thisIb.dumpToStrings(childIb, childPrefix, tag.tagId, linesOutput)
+ }
+
+ siblingIfdIndex++
+ }
+
+ return linesOutput
+}
+
+func (ib *IfdBuilder) DumpToStrings() (lines []string) {
+ return ib.dumpToStrings(ib, "", 0, lines)
+}
+
+func (ib *IfdBuilder) SetNextIb(nextIb *IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ib.nextIb = nextIb
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteN(tagId uint16, n int) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if n < 1 {
+ log.Panicf("N must be at least 1: (%d)", n)
+ }
+
+ for n > 0 {
+ j := -1
+ for i, bt := range ib.tags {
+ if bt.tagId == tagId {
+ j = i
+ break
+ }
+ }
+
+ if j == -1 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ ib.tags = append(ib.tags[:j], ib.tags[j+1:]...)
+ n--
+ }
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteFirst(tagId uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = ib.DeleteN(tagId, 1)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteAll(tagId uint16) (n int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for {
+ err = ib.DeleteN(tagId, 1)
+ if log.Is(err, ErrTagEntryNotFound) == true {
+ break
+ } else if err != nil {
+ log.Panic(err)
+ }
+
+ n++
+ }
+
+ return n, nil
+}
+
+func (ib *IfdBuilder) ReplaceAt(position int, bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if position < 0 {
+ log.Panicf("replacement position must be 0 or greater")
+ } else if position >= len(ib.tags) {
+ log.Panicf("replacement position does not exist")
+ }
+
+ ib.tags[position] = bt
+
+ return nil
+}
+
+func (ib *IfdBuilder) Replace(tagId uint16, bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ position, err := ib.Find(tagId)
+ log.PanicIf(err)
+
+ ib.tags[position] = bt
+
+ return nil
+}
+
+// Set will add a new entry or update an existing entry.
+func (ib *IfdBuilder) Set(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ position, err := ib.Find(bt.tagId)
+ if err == nil {
+ ib.tags[position] = bt
+ } else if log.Is(err, ErrTagEntryNotFound) == true {
+ err = ib.add(bt)
+ log.PanicIf(err)
+ } else {
+ log.Panic(err)
+ }
+
+ return nil
+}
+
+func (ib *IfdBuilder) FindN(tagId uint16, maxFound int) (found []int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found = make([]int, 0)
+
+ for i, bt := range ib.tags {
+ if bt.tagId == tagId {
+ found = append(found, i)
+ if maxFound == 0 || len(found) >= maxFound {
+ break
+ }
+ }
+ }
+
+ return found, nil
+}
+
+func (ib *IfdBuilder) Find(tagId uint16) (position int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found, err := ib.FindN(tagId, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ return found[0], nil
+}
+
+func (ib *IfdBuilder) FindTag(tagId uint16) (bt *BuilderTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found, err := ib.FindN(tagId, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ position := found[0]
+
+ return ib.tags[position], nil
+}
+
+func (ib *IfdBuilder) FindTagWithName(tagName string) (bt *BuilderTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.GetWithName(ib.ifdPath, tagName)
+ log.PanicIf(err)
+
+ found, err := ib.FindN(it.Id, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ position := found[0]
+
+ return ib.tags[position], nil
+}
+
+func (ib *IfdBuilder) add(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if bt.ifdPath == "" {
+ log.Panicf("BuilderTag ifdPath is not set: %s", bt)
+ } else if bt.typeId == 0x0 {
+ log.Panicf("BuilderTag type-ID is not set: %s", bt)
+ } else if bt.value == nil {
+ log.Panicf("BuilderTag value is not set: %s", bt)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ return nil
+}
+
+func (ib *IfdBuilder) Add(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if bt.value.IsIb() == true {
+ log.Panicf("child IfdBuilders must be added via AddChildIb() or AddTagsFromExisting(), not Add()")
+ }
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// AddChildIb adds a tag that branches to a new IFD.
+func (ib *IfdBuilder) AddChildIb(childIb *IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if childIb.ifdTagId == 0 {
+ log.Panicf("IFD can not be used as a child IFD (not associated with a tag-ID): %v", childIb)
+ } else if childIb.byteOrder != ib.byteOrder {
+ log.Panicf("Child IFD does not have the same byte-order: [%s] != [%s]", childIb.byteOrder, ib.byteOrder)
+ }
+
+ // Since no standard IFDs supports occuring more than once, check that a
+ // tag of this type has not been previously added. Note that we just search
+ // the current IFD and *not every* IFD.
+ for _, bt := range childIb.tags {
+ if bt.tagId == childIb.ifdTagId {
+ log.Panicf("child-IFD already added: %v", childIb.ifdPath)
+ }
+ }
+
+ bt := ib.NewBuilderTagFromBuilder(childIb)
+ ib.tags = append(ib.tags, bt)
+
+ return nil
+}
+
+func (ib *IfdBuilder) NewBuilderTagFromBuilder(childIb *IfdBuilder) (bt *BuilderTag) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ value := NewIfdBuilderTagValueFromIfdBuilder(childIb)
+
+ bt = NewChildIfdBuilderTag(
+ ib.ifdPath,
+ childIb.ifdTagId,
+ value)
+
+ return bt
+}
+
+// AddTagsFromExisting does a verbatim copy of the entries in `ifd` to this
+// builder. It excludes child IFDs. These must be added explicitly via
+// `AddChildIb()`.
+func (ib *IfdBuilder) AddTagsFromExisting(ifd *Ifd, itevr *IfdTagEntryValueResolver, includeTagIds []uint16, excludeTagIds []uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // OBSOLETE(dustin): Support for `itevr` is now obsolete. This parameter will be removed in the future.
+
+ thumbnailData, err := ifd.Thumbnail()
+ if err == nil {
+ err = ib.SetThumbnail(thumbnailData)
+ log.PanicIf(err)
+ } else if log.Is(err, ErrNoThumbnail) == false {
+ log.Panic(err)
+ }
+
+ for i, ite := range ifd.Entries {
+ if ite.TagId == ThumbnailOffsetTagId || ite.TagId == ThumbnailSizeTagId {
+ // These will be added on-the-fly when we encode.
+ continue
+ }
+
+ if excludeTagIds != nil && len(excludeTagIds) > 0 {
+ found := false
+ for _, excludedTagId := range excludeTagIds {
+ if excludedTagId == ite.TagId {
+ found = true
+ }
+ }
+
+ if found == true {
+ continue
+ }
+ }
+
+ if includeTagIds != nil && len(includeTagIds) > 0 {
+ // Whether or not there was a list of excludes, if there is a list
+ // of includes than the current tag has to be in it.
+
+ found := false
+ for _, includedTagId := range includeTagIds {
+ if includedTagId == ite.TagId {
+ found = true
+ break
+ }
+ }
+
+ if found == false {
+ continue
+ }
+ }
+
+ var bt *BuilderTag
+
+ if ite.ChildIfdPath != "" {
+ // If we want to add an IFD tag, we'll have to build it first and
+ // *then* add it via a different method.
+
+ // Figure out which of the child-IFDs that are associated with
+ // this IFD represents this specific child IFD.
+
+ var childIfd *Ifd
+ for _, thisChildIfd := range ifd.Children {
+ if thisChildIfd.ParentTagIndex != i {
+ continue
+ } else if thisChildIfd.TagId != 0xffff && thisChildIfd.TagId != ite.TagId {
+ log.Panicf("child-IFD tag is not correct: TAG-POSITION=(%d) ITE=%s CHILD-IFD=%s", thisChildIfd.ParentTagIndex, ite, thisChildIfd)
+ }
+
+ childIfd = thisChildIfd
+ break
+ }
+
+ if childIfd == nil {
+ childTagIds := make([]string, len(ifd.Children))
+ for j, childIfd := range ifd.Children {
+ childTagIds[j] = fmt.Sprintf("0x%04x (parent tag-position %d)", childIfd.TagId, childIfd.ParentTagIndex)
+ }
+
+ log.Panicf("could not find child IFD for child ITE: IFD-PATH=[%s] TAG-ID=(0x%04x) CURRENT-TAG-POSITION=(%d) CHILDREN=%v", ite.IfdPath, ite.TagId, i, childTagIds)
+ }
+
+ childIb := NewIfdBuilderFromExistingChain(childIfd, nil)
+ bt = ib.NewBuilderTagFromBuilder(childIb)
+ } else {
+ // Non-IFD tag.
+
+ valueContext := ifd.GetValueContext(ite)
+
+ var rawBytes []byte
+
+ if ite.TagType == TypeUndefined {
+ // It's an undefined-type value. Try to process, or skip if
+ // we don't know how to.
+
+ undefinedInterface, err := valueContext.Undefined()
+ if err != nil {
+ if err == ErrUnhandledUnknownTypedTag {
+ // It's an undefined-type tag that we don't handle. If
+ // we don't know how to handle it, we can't know how
+ // many bytes it is and we must skip it.
+ continue
+ }
+
+ log.Panic(err)
+ }
+
+ undefined, ok := undefinedInterface.(UnknownTagValue)
+ if ok != true {
+ log.Panicf("unexpected value returned from undefined-value processor")
+ }
+
+ rawBytes, err = undefined.ValueBytes()
+ log.PanicIf(err)
+ } else {
+ // It's a value with a standard type.
+
+ var err error
+
+ rawBytes, err = valueContext.readRawEncoded()
+ log.PanicIf(err)
+ }
+
+ value := NewIfdBuilderTagValueFromBytes(rawBytes)
+
+ bt = NewBuilderTag(
+ ifd.IfdPath,
+ ite.TagId,
+ ite.TagType,
+ value,
+ ib.byteOrder)
+ }
+
+ err := ib.add(bt)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
+
+// AddStandard quickly and easily composes and adds the tag using the
+// information already known about a tag. Only works with standard tags.
+func (ib *IfdBuilder) AddStandard(tagId uint16, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.Get(ib.ifdPath, tagId)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.ifdPath, it, ib.byteOrder, value)
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// AddStandardWithName quickly and easily composes and adds the tag using the
+// information already known about a tag (using the name). Only works with
+// standard tags.
+func (ib *IfdBuilder) AddStandardWithName(tagName string, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.GetWithName(ib.ifdPath, tagName)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.ifdPath, it, ib.byteOrder, value)
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// SetStandard quickly and easily composes and adds or replaces the tag using
+// the information already known about a tag. Only works with standard tags.
+func (ib *IfdBuilder) SetStandard(tagId uint16, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test for this function.
+
+ it, err := ib.tagIndex.Get(ib.ifdPath, tagId)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.ifdPath, it, ib.byteOrder, value)
+
+ i, err := ib.Find(tagId)
+ if err != nil {
+ if log.Is(err, ErrTagEntryNotFound) == false {
+ log.Panic(err)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ } else {
+ ib.tags[i] = bt
+ }
+
+ return nil
+}
+
+// SetStandardWithName quickly and easily composes and adds or replaces the
+// tag using the information already known about a tag (using the name). Only
+// works with standard tags.
+func (ib *IfdBuilder) SetStandardWithName(tagName string, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test for this function.
+
+ it, err := ib.tagIndex.GetWithName(ib.ifdPath, tagName)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.ifdPath, it, ib.byteOrder, value)
+
+ i, err := ib.Find(bt.tagId)
+ if err != nil {
+ if log.Is(err, ErrTagEntryNotFound) == false {
+ log.Panic(err)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ } else {
+ ib.tags[i] = bt
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/ifd_builder_encode.go b/vendor/github.com/dsoprea/go-exif/ifd_builder_encode.go
new file mode 100644
index 000000000..90fb2ddbf
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/ifd_builder_encode.go
@@ -0,0 +1,530 @@
+package exif
+
+import (
+ "bytes"
+ "fmt"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+const (
+ // Tag-ID + Tag-Type + Unit-Count + Value/Offset.
+ IfdTagEntrySize = uint32(2 + 2 + 4 + 4)
+)
+
+type ByteWriter struct {
+ b *bytes.Buffer
+ byteOrder binary.ByteOrder
+}
+
+func NewByteWriter(b *bytes.Buffer, byteOrder binary.ByteOrder) (bw *ByteWriter) {
+ return &ByteWriter{
+ b: b,
+ byteOrder: byteOrder,
+ }
+}
+
+func (bw ByteWriter) writeAsBytes(value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = binary.Write(bw.b, bw.byteOrder, value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteUint32(value uint32) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = bw.writeAsBytes(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteUint16(value uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = bw.writeAsBytes(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteFourBytes(value []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ len_ := len(value)
+ if len_ != 4 {
+ log.Panicf("value is not four-bytes: (%d)", len_)
+ }
+
+ _, err = bw.b.Write(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// ifdOffsetIterator keeps track of where the next IFD should be written by
+// keeping track of where the offsets start, the data that has been added, and
+// bumping the offset *when* the data is added.
+type ifdDataAllocator struct {
+ offset uint32
+ b bytes.Buffer
+}
+
+func newIfdDataAllocator(ifdDataAddressableOffset uint32) *ifdDataAllocator {
+ return &ifdDataAllocator{
+ offset: ifdDataAddressableOffset,
+ }
+}
+
+func (ida *ifdDataAllocator) Allocate(value []byte) (offset uint32, err error) {
+ _, err = ida.b.Write(value)
+ log.PanicIf(err)
+
+ offset = ida.offset
+ ida.offset += uint32(len(value))
+
+ return offset, nil
+}
+
+func (ida *ifdDataAllocator) NextOffset() uint32 {
+ return ida.offset
+}
+
+func (ida *ifdDataAllocator) Bytes() []byte {
+ return ida.b.Bytes()
+}
+
+// IfdByteEncoder converts an IB to raw bytes (for writing) while also figuring
+// out all of the allocations and indirection that is required for extended
+// data.
+type IfdByteEncoder struct {
+ // journal holds a list of actions taken while encoding.
+ journal [][3]string
+}
+
+func NewIfdByteEncoder() (ibe *IfdByteEncoder) {
+ return &IfdByteEncoder{
+ journal: make([][3]string, 0),
+ }
+}
+
+func (ibe *IfdByteEncoder) Journal() [][3]string {
+ return ibe.journal
+}
+
+func (ibe *IfdByteEncoder) TableSize(entryCount int) uint32 {
+ // Tag-Count + (Entry-Size * Entry-Count) + Next-IFD-Offset.
+ return uint32(2) + (IfdTagEntrySize * uint32(entryCount)) + uint32(4)
+}
+
+func (ibe *IfdByteEncoder) pushToJournal(where, direction, format string, args ...interface{}) {
+ event := [3]string{
+ direction,
+ where,
+ fmt.Sprintf(format, args...),
+ }
+
+ ibe.journal = append(ibe.journal, event)
+}
+
+// PrintJournal prints a hierarchical representation of the steps taken during
+// encoding.
+func (ibe *IfdByteEncoder) PrintJournal() {
+ maxWhereLength := 0
+ for _, event := range ibe.journal {
+ where := event[1]
+
+ len_ := len(where)
+ if len_ > maxWhereLength {
+ maxWhereLength = len_
+ }
+ }
+
+ level := 0
+ for i, event := range ibe.journal {
+ direction := event[0]
+ where := event[1]
+ message := event[2]
+
+ if direction != ">" && direction != "<" && direction != "-" {
+ log.Panicf("journal operation not valid: [%s]", direction)
+ }
+
+ if direction == "<" {
+ if level <= 0 {
+ log.Panicf("journal operations unbalanced (too many closes)")
+ }
+
+ level--
+ }
+
+ indent := strings.Repeat(" ", level)
+
+ fmt.Printf("%3d %s%s %s: %s\n", i, indent, direction, where, message)
+
+ if direction == ">" {
+ level++
+ }
+ }
+
+ if level != 0 {
+ log.Panicf("journal operations unbalanced (too many opens)")
+ }
+}
+
+// encodeTagToBytes encodes the given tag to a byte stream. If
+// `nextIfdOffsetToWrite` is more than (0), recurse into child IFDs
+// (`nextIfdOffsetToWrite` is required in order for them to know where the its
+// IFD data will be written, in order for them to know the offset of where
+// their allocated-data block will start, which follows right behind).
+func (ibe *IfdByteEncoder) encodeTagToBytes(ib *IfdBuilder, bt *BuilderTag, bw *ByteWriter, ida *ifdDataAllocator, nextIfdOffsetToWrite uint32) (childIfdBlock []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Write tag-ID.
+ err = bw.WriteUint16(bt.tagId)
+ log.PanicIf(err)
+
+ // Works for both values and child IFDs (which have an official size of
+ // LONG).
+ err = bw.WriteUint16(uint16(bt.typeId))
+ log.PanicIf(err)
+
+ // Write unit-count.
+
+ if bt.value.IsBytes() == true {
+ effectiveType := bt.typeId
+ if bt.typeId == TypeUndefined {
+ effectiveType = TypeByte
+ }
+
+ // It's a non-unknown value.Calculate the count of values of
+ // the type that we're writing and the raw bytes for the whole list.
+
+ typeSize := uint32(effectiveType.Size())
+
+ valueBytes := bt.value.Bytes()
+
+ len_ := len(valueBytes)
+ unitCount := uint32(len_) / typeSize
+
+ if _, found := tagsWithoutAlignment[bt.tagId]; found == false {
+ remainder := uint32(len_) % typeSize
+
+ if remainder > 0 {
+ log.Panicf("tag (0x%04x) value of (%d) bytes not evenly divisible by type-size (%d)", bt.tagId, len_, typeSize)
+ }
+ }
+
+ err = bw.WriteUint32(unitCount)
+ log.PanicIf(err)
+
+ // Write four-byte value/offset.
+
+ if len_ > 4 {
+ offset, err := ida.Allocate(valueBytes)
+ log.PanicIf(err)
+
+ err = bw.WriteUint32(offset)
+ log.PanicIf(err)
+ } else {
+ fourBytes := make([]byte, 4)
+ copy(fourBytes, valueBytes)
+
+ err = bw.WriteFourBytes(fourBytes)
+ log.PanicIf(err)
+ }
+ } else {
+ if bt.value.IsIb() == false {
+ log.Panicf("tag value is not a byte-slice but also not a child IB: %v", bt)
+ }
+
+ // Write unit-count (one LONG representing one offset).
+ err = bw.WriteUint32(1)
+ log.PanicIf(err)
+
+ if nextIfdOffsetToWrite > 0 {
+ var err error
+
+ ibe.pushToJournal("encodeTagToBytes", ">", "[%s]->[%s]", ib.ifdPath, bt.value.Ib().ifdPath)
+
+ // Create the block of IFD data and everything it requires.
+ childIfdBlock, err = ibe.encodeAndAttachIfd(bt.value.Ib(), nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ ibe.pushToJournal("encodeTagToBytes", "<", "[%s]->[%s]", bt.value.Ib().ifdPath, ib.ifdPath)
+
+ // Use the next-IFD offset for it. The IFD will actually get
+ // attached after we return.
+ err = bw.WriteUint32(nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ } else {
+ // No child-IFDs are to be allocated. Finish the entry with a NULL
+ // pointer.
+
+ ibe.pushToJournal("encodeTagToBytes", "-", "*Not* descending to child: [%s]", bt.value.Ib().ifdPath)
+
+ err = bw.WriteUint32(0)
+ log.PanicIf(err)
+ }
+ }
+
+ return childIfdBlock, nil
+}
+
+// encodeIfdToBytes encodes the given IB to a byte-slice. We are given the
+// offset at which this IFD will be written. This method is used called both to
+// pre-determine how big the table is going to be (so that we can calculate the
+// address to allocate data at) as well as to write the final table.
+//
+// It is necessary to fully realize the table in order to predetermine its size
+// because it is not enough to know the size of the table: If there are child
+// IFDs, we will not be able to allocate them without first knowing how much
+// data we need to allocate for the current IFD.
+func (ibe *IfdByteEncoder) encodeIfdToBytes(ib *IfdBuilder, ifdAddressableOffset uint32, nextIfdOffsetToWrite uint32, setNextIb bool) (data []byte, tableSize uint32, dataSize uint32, childIfdSizes []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ibe.pushToJournal("encodeIfdToBytes", ">", "%s", ib)
+
+ tableSize = ibe.TableSize(len(ib.tags))
+
+ b := new(bytes.Buffer)
+ bw := NewByteWriter(b, ib.byteOrder)
+
+ // Write tag count.
+ err = bw.WriteUint16(uint16(len(ib.tags)))
+ log.PanicIf(err)
+
+ ida := newIfdDataAllocator(ifdAddressableOffset)
+
+ childIfdBlocks := make([][]byte, 0)
+
+ // Write raw bytes for each tag entry. Allocate larger data to be referred
+ // to in the follow-up data-block as required. Any "unknown"-byte tags that
+ // we can't parse will not be present here (using AddTagsFromExisting(), at
+ // least).
+ for _, bt := range ib.tags {
+ childIfdBlock, err := ibe.encodeTagToBytes(ib, bt, bw, ida, nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ if childIfdBlock != nil {
+ // We aren't allowed to have non-nil child IFDs if we're just
+ // sizing things up.
+ if nextIfdOffsetToWrite == 0 {
+ log.Panicf("no IFD offset provided for child-IFDs; no new child-IFDs permitted")
+ }
+
+ nextIfdOffsetToWrite += uint32(len(childIfdBlock))
+ childIfdBlocks = append(childIfdBlocks, childIfdBlock)
+ }
+ }
+
+ dataBytes := ida.Bytes()
+ dataSize = uint32(len(dataBytes))
+
+ childIfdSizes = make([]uint32, len(childIfdBlocks))
+ childIfdsTotalSize := uint32(0)
+ for i, childIfdBlock := range childIfdBlocks {
+ len_ := uint32(len(childIfdBlock))
+ childIfdSizes[i] = len_
+ childIfdsTotalSize += len_
+ }
+
+ // N the link from this IFD to the next IFD that will be written in the
+ // next cycle.
+ if setNextIb == true {
+ // Write address of next IFD in chain. This will be the original
+ // allocation offset plus the size of everything we have allocated for
+ // this IFD and its child-IFDs.
+ //
+ // It is critical that this number is stepped properly. We experienced
+ // an issue whereby it first looked like we were duplicating the IFD and
+ // then that we were duplicating the tags in the wrong IFD, and then
+ // finally we determined that the next-IFD offset for the first IFD was
+ // accidentally pointing back to the EXIF IFD, so we were visiting it
+ // twice when visiting through the tags after decoding. It was an
+ // expensive bug to find.
+
+ ibe.pushToJournal("encodeIfdToBytes", "-", "Setting 'next' IFD to (0x%08x).", nextIfdOffsetToWrite)
+
+ err := bw.WriteUint32(nextIfdOffsetToWrite)
+ log.PanicIf(err)
+ } else {
+ err := bw.WriteUint32(0)
+ log.PanicIf(err)
+ }
+
+ _, err = b.Write(dataBytes)
+ log.PanicIf(err)
+
+ // Append any child IFD blocks after our table and data blocks. These IFDs
+ // were equipped with the appropriate offset information so it's expected
+ // that all offsets referred to by these will be correct.
+ //
+ // Note that child-IFDs are append after the current IFD and before the
+ // next IFD, as opposed to the root IFDs, which are chained together but
+ // will be interrupted by these child-IFDs (which is expected, per the
+ // standard).
+
+ for _, childIfdBlock := range childIfdBlocks {
+ _, err = b.Write(childIfdBlock)
+ log.PanicIf(err)
+ }
+
+ ibe.pushToJournal("encodeIfdToBytes", "<", "%s", ib)
+
+ return b.Bytes(), tableSize, dataSize, childIfdSizes, nil
+}
+
+// encodeAndAttachIfd is a reentrant function that processes the IFD chain.
+func (ibe *IfdByteEncoder) encodeAndAttachIfd(ib *IfdBuilder, ifdAddressableOffset uint32) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "%s", ib)
+
+ b := new(bytes.Buffer)
+
+ i := 0
+
+ for thisIb := ib; thisIb != nil; thisIb = thisIb.nextIb {
+
+ // Do a dry-run in order to pre-determine its size requirement.
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Beginning encoding process: (%d) [%s]", i, thisIb.ifdPath)
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Calculating size: (%d) [%s]", i, thisIb.ifdPath)
+
+ _, tableSize, allocatedDataSize, _, err := ibe.encodeIfdToBytes(thisIb, ifdAddressableOffset, 0, false)
+ log.PanicIf(err)
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Finished calculating size: (%d) [%s]", i, thisIb.ifdPath)
+
+ ifdAddressableOffset += tableSize
+ nextIfdOffsetToWrite := ifdAddressableOffset + allocatedDataSize
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Next IFD will be written at offset (0x%08x)", nextIfdOffsetToWrite)
+
+ // Write our IFD as well as any child-IFDs (now that we know the offset
+ // where new IFDs and their data will be allocated).
+
+ setNextIb := thisIb.nextIb != nil
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Encoding starting: (%d) [%s] NEXT-IFD-OFFSET-TO-WRITE=(0x%08x)", i, thisIb.ifdPath, nextIfdOffsetToWrite)
+
+ tableAndAllocated, effectiveTableSize, effectiveAllocatedDataSize, childIfdSizes, err :=
+ ibe.encodeIfdToBytes(thisIb, ifdAddressableOffset, nextIfdOffsetToWrite, setNextIb)
+
+ log.PanicIf(err)
+
+ if effectiveTableSize != tableSize {
+ log.Panicf("written table size does not match the pre-calculated table size: (%d) != (%d) %s", effectiveTableSize, tableSize, ib)
+ } else if effectiveAllocatedDataSize != allocatedDataSize {
+ log.Panicf("written allocated-data size does not match the pre-calculated allocated-data size: (%d) != (%d) %s", effectiveAllocatedDataSize, allocatedDataSize, ib)
+ }
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Encoding done: (%d) [%s]", i, thisIb.ifdPath)
+
+ totalChildIfdSize := uint32(0)
+ for _, childIfdSize := range childIfdSizes {
+ totalChildIfdSize += childIfdSize
+ }
+
+ if len(tableAndAllocated) != int(tableSize+allocatedDataSize+totalChildIfdSize) {
+ log.Panicf("IFD table and data is not a consistent size: (%d) != (%d)", len(tableAndAllocated), tableSize+allocatedDataSize+totalChildIfdSize)
+ }
+
+ // TODO(dustin): We might want to verify the original tableAndAllocated length, too.
+
+ _, err = b.Write(tableAndAllocated)
+ log.PanicIf(err)
+
+ // Advance past what we've allocated, thus far.
+
+ ifdAddressableOffset += allocatedDataSize + totalChildIfdSize
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Finishing encoding process: (%d) [%s] [FINAL:] NEXT-IFD-OFFSET-TO-WRITE=(0x%08x)", i, ib.ifdPath, nextIfdOffsetToWrite)
+
+ i++
+ }
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "%s", ib)
+
+ return b.Bytes(), nil
+}
+
+// EncodeToExifPayload is the base encoding step that transcribes the entire IB
+// structure to its on-disk layout.
+func (ibe *IfdByteEncoder) EncodeToExifPayload(ib *IfdBuilder) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ data, err = ibe.encodeAndAttachIfd(ib, ExifDefaultFirstIfdOffset)
+ log.PanicIf(err)
+
+ return data, nil
+}
+
+// EncodeToExif calls EncodeToExifPayload and then packages the result into a
+// complete EXIF block.
+func (ibe *IfdByteEncoder) EncodeToExif(ib *IfdBuilder) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ encodedIfds, err := ibe.EncodeToExifPayload(ib)
+ log.PanicIf(err)
+
+ // Wrap the IFD in a formal EXIF block.
+
+ b := new(bytes.Buffer)
+
+ headerBytes, err := BuildExifHeader(ib.byteOrder, ExifDefaultFirstIfdOffset)
+ log.PanicIf(err)
+
+ _, err = b.Write(headerBytes)
+ log.PanicIf(err)
+
+ _, err = b.Write(encodedIfds)
+ log.PanicIf(err)
+
+ return b.Bytes(), nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/ifd_enumerate.go b/vendor/github.com/dsoprea/go-exif/ifd_enumerate.go
new file mode 100644
index 000000000..317e847a9
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/ifd_enumerate.go
@@ -0,0 +1,1356 @@
+package exif
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "reflect"
+ "strconv"
+ "strings"
+ "time"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ ifdEnumerateLogger = log.NewLogger("exifjpeg.ifd")
+)
+
+var (
+ ErrNoThumbnail = errors.New("no thumbnail")
+ ErrNoGpsTags = errors.New("no gps tags")
+ ErrTagTypeNotValid = errors.New("tag type invalid")
+)
+
+var (
+ ValidGpsVersions = [][4]byte{
+ {2, 2, 0, 0},
+
+ // Suddenly appeared at the default in 2.31: https://home.jeita.or.jp/tsc/std-pdf/CP-3451D.pdf
+ //
+ // Note that the presence of 2.3.0.0 doesn't seem to guarantee
+ // coordinates. In some cases, we seen just the following:
+ //
+ // GPS Tag Version |2.3.0.0
+ // GPS Receiver Status |V
+ // Geodetic Survey Data|WGS-84
+ // GPS Differential Cor|0
+ //
+ {2, 3, 0, 0},
+ }
+)
+
+// IfdTagEnumerator knows how to decode an IFD and all of the tags it
+// describes.
+//
+// The IFDs and the actual values can float throughout the EXIF block, but the
+// IFD itself is just a minor header followed by a set of repeating,
+// statically-sized records. So, the tags (though notnecessarily their values)
+// are fairly simple to enumerate.
+type IfdTagEnumerator struct {
+ byteOrder binary.ByteOrder
+ addressableData []byte
+ ifdOffset uint32
+ buffer *bytes.Buffer
+}
+
+func NewIfdTagEnumerator(addressableData []byte, byteOrder binary.ByteOrder, ifdOffset uint32) (ite *IfdTagEnumerator) {
+ ite = &IfdTagEnumerator{
+ addressableData: addressableData,
+ byteOrder: byteOrder,
+ buffer: bytes.NewBuffer(addressableData[ifdOffset:]),
+ }
+
+ return ite
+}
+
+// getUint16 reads a uint16 and advances both our current and our current
+// accumulator (which allows us to know how far to seek to the beginning of the
+// next IFD when it's time to jump).
+func (ife *IfdTagEnumerator) getUint16() (value uint16, raw []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ needBytes := 2
+ offset := 0
+ raw = make([]byte, needBytes)
+
+ for offset < needBytes {
+ n, err := ife.buffer.Read(raw[offset:])
+ log.PanicIf(err)
+
+ offset += n
+ }
+
+ value = ife.byteOrder.Uint16(raw)
+
+ return value, raw, nil
+}
+
+// getUint32 reads a uint32 and advances both our current and our current
+// accumulator (which allows us to know how far to seek to the beginning of the
+// next IFD when it's time to jump).
+func (ife *IfdTagEnumerator) getUint32() (value uint32, raw []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ needBytes := 4
+ offset := 0
+ raw = make([]byte, needBytes)
+
+ for offset < needBytes {
+ n, err := ife.buffer.Read(raw[offset:])
+ log.PanicIf(err)
+
+ offset += n
+ }
+
+ value = ife.byteOrder.Uint32(raw)
+
+ return value, raw, nil
+}
+
+type IfdEnumerate struct {
+ exifData []byte
+ buffer *bytes.Buffer
+ byteOrder binary.ByteOrder
+ currentOffset uint32
+ tagIndex *TagIndex
+ ifdMapping *IfdMapping
+}
+
+func NewIfdEnumerate(ifdMapping *IfdMapping, tagIndex *TagIndex, exifData []byte, byteOrder binary.ByteOrder) *IfdEnumerate {
+ return &IfdEnumerate{
+ exifData: exifData,
+ buffer: bytes.NewBuffer(exifData),
+ byteOrder: byteOrder,
+ ifdMapping: ifdMapping,
+ tagIndex: tagIndex,
+ }
+}
+
+func (ie *IfdEnumerate) getTagEnumerator(ifdOffset uint32) (ite *IfdTagEnumerator) {
+ ite = NewIfdTagEnumerator(
+ ie.exifData[ExifAddressableAreaStart:],
+ ie.byteOrder,
+ ifdOffset)
+
+ return ite
+}
+
+func (ie *IfdEnumerate) parseTag(fqIfdPath string, tagPosition int, ite *IfdTagEnumerator, resolveValue bool) (tag *IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagId, _, err := ite.getUint16()
+ log.PanicIf(err)
+
+ tagTypeRaw, _, err := ite.getUint16()
+ log.PanicIf(err)
+
+ tagType := TagTypePrimitive(tagTypeRaw)
+
+ unitCount, _, err := ite.getUint32()
+ log.PanicIf(err)
+
+ valueOffset, rawValueOffset, err := ite.getUint32()
+ log.PanicIf(err)
+
+ if _, found := TypeNames[tagType]; found == false {
+ log.Panic(ErrTagTypeNotValid)
+ }
+
+ ifdPath, err := ie.ifdMapping.StripPathPhraseIndices(fqIfdPath)
+ log.PanicIf(err)
+
+ tag = &IfdTagEntry{
+ IfdPath: ifdPath,
+ TagId: tagId,
+ TagIndex: tagPosition,
+ TagType: tagType,
+ UnitCount: unitCount,
+ ValueOffset: valueOffset,
+ RawValueOffset: rawValueOffset,
+ }
+
+ if resolveValue == true {
+ value, isUnhandledUnknown, err := ie.resolveTagValue(tag)
+ log.PanicIf(err)
+
+ tag.value = value
+ tag.isUnhandledUnknown = isUnhandledUnknown
+ }
+
+ // If it's an IFD but not a standard one, it'll just be seen as a LONG
+ // (the standard IFD tag type), later, unless we skip it because it's
+ // [likely] not even in the standard list of known tags.
+ mi, err := ie.ifdMapping.GetChild(ifdPath, tagId)
+ if err == nil {
+ tag.ChildIfdName = mi.Name
+ tag.ChildIfdPath = mi.PathPhrase()
+ tag.ChildFqIfdPath = fmt.Sprintf("%s/%s", fqIfdPath, mi.Name)
+
+ // We also need to set `tag.ChildFqIfdPath` but can't do it here
+ // because we don't have the IFD index.
+ } else if log.Is(err, ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ return tag, nil
+}
+
+func (ie *IfdEnumerate) GetValueContext(ite *IfdTagEntry) *ValueContext {
+
+ // TODO(dustin): Add test
+
+ addressableData := ie.exifData[ExifAddressableAreaStart:]
+
+ return newValueContextFromTag(
+ ite,
+ addressableData,
+ ie.byteOrder)
+}
+
+func (ie *IfdEnumerate) resolveTagValue(ite *IfdTagEntry) (valueBytes []byte, isUnhandledUnknown bool, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ addressableData := ie.exifData[ExifAddressableAreaStart:]
+
+ // Return the exact bytes of the unknown-type value. Returning a string
+ // (`ValueString`) is easy because we can just pass everything to
+ // `Sprintf()`. Returning the raw, typed value (`Value`) is easy
+ // (obviously). However, here, in order to produce the list of bytes, we
+ // need to coerce whatever `Undefined()` returns.
+ if ite.TagType == TypeUndefined {
+ valueContext := ie.GetValueContext(ite)
+
+ value, err := valueContext.Undefined()
+ if err != nil {
+ if err == ErrUnhandledUnknownTypedTag {
+ valueBytes = []byte(UnparseableUnknownTagValuePlaceholder)
+ return valueBytes, true, nil
+ }
+
+ log.Panic(err)
+ } else {
+ switch value.(type) {
+ case []byte:
+ return value.([]byte), false, nil
+ case TagUnknownType_UnknownValue:
+ b := []byte(value.(TagUnknownType_UnknownValue))
+ return b, false, nil
+ case string:
+ return []byte(value.(string)), false, nil
+ case UnknownTagValue:
+ valueBytes, err := value.(UnknownTagValue).ValueBytes()
+ log.PanicIf(err)
+
+ return valueBytes, false, nil
+ default:
+ // TODO(dustin): !! Finish translating the rest of the types (make reusable and replace into other similar implementations?)
+ log.Panicf("can not produce bytes for unknown-type tag (0x%04x) (1): [%s]", ite.TagId, reflect.TypeOf(value))
+ }
+ }
+ } else {
+ originalType := NewTagType(ite.TagType, ie.byteOrder)
+ byteCount := uint32(originalType.Type().Size()) * ite.UnitCount
+
+ tt := NewTagType(TypeByte, ie.byteOrder)
+
+ if tt.valueIsEmbedded(byteCount) == true {
+ iteLogger.Debugf(nil, "Reading BYTE value (ITE; embedded).")
+
+ // In this case, the bytes normally used for the offset are actually
+ // data.
+ valueBytes, err = tt.ParseBytes(ite.RawValueOffset, byteCount)
+ log.PanicIf(err)
+ } else {
+ iteLogger.Debugf(nil, "Reading BYTE value (ITE; at offset).")
+
+ valueBytes, err = tt.ParseBytes(addressableData[ite.ValueOffset:], byteCount)
+ log.PanicIf(err)
+ }
+ }
+
+ return valueBytes, false, nil
+}
+
+// RawTagVisitorPtr is an optional callback that can get hit for every tag we parse
+// through. `addressableData` is the byte array startign after the EXIF header
+// (where the offsets of all IFDs and values are calculated from).
+//
+// This was reimplemented as an interface to allow for simpler change management
+// in the future.
+type RawTagWalk interface {
+ Visit(fqIfdPath string, ifdIndex int, tagId uint16, tagType TagType, valueContext *ValueContext) (err error)
+}
+
+type RawTagWalkLegacyWrapper struct {
+ legacyVisitor RawTagVisitor
+}
+
+func (rtwlw RawTagWalkLegacyWrapper) Visit(fqIfdPath string, ifdIndex int, tagId uint16, tagType TagType, valueContext *ValueContext) (err error) {
+ return rtwlw.legacyVisitor(fqIfdPath, ifdIndex, tagId, tagType, *valueContext)
+}
+
+// RawTagVisitor is an optional callback that can get hit for every tag we parse
+// through. `addressableData` is the byte array startign after the EXIF header
+// (where the offsets of all IFDs and values are calculated from).
+//
+// DEPRECATED(dustin): Use a RawTagWalk instead.
+type RawTagVisitor func(fqIfdPath string, ifdIndex int, tagId uint16, tagType TagType, valueContext ValueContext) (err error)
+
+// ParseIfd decodes the IFD block that we're currently sitting on the first
+// byte of.
+func (ie *IfdEnumerate) ParseIfd(fqIfdPath string, ifdIndex int, ite *IfdTagEnumerator, visitor interface{}, doDescend bool, resolveValues bool) (nextIfdOffset uint32, entries []*IfdTagEntry, thumbnailData []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ var visitorWrapper RawTagWalk
+
+ if visitor != nil {
+ var ok bool
+
+ visitorWrapper, ok = visitor.(RawTagWalk)
+ if ok == false {
+ // Legacy usage.
+
+ // `ok` can be `true` but `legacyVisitor` can still be `nil` (when
+ // passed as nil).
+ if legacyVisitor, ok := visitor.(RawTagVisitor); ok == true && legacyVisitor != nil {
+ visitorWrapper = RawTagWalkLegacyWrapper{
+ legacyVisitor: legacyVisitor,
+ }
+ }
+ }
+ }
+
+ tagCount, _, err := ite.getUint16()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Current IFD tag-count: (%d)", tagCount)
+
+ entries = make([]*IfdTagEntry, 0)
+
+ var iteThumbnailOffset *IfdTagEntry
+ var iteThumbnailSize *IfdTagEntry
+
+ for i := 0; i < int(tagCount); i++ {
+ tag, err := ie.parseTag(fqIfdPath, i, ite, resolveValues)
+ if err != nil {
+ if log.Is(err, ErrTagTypeNotValid) == true {
+ ifdEnumerateLogger.Warningf(nil, "Tag in IFD [%s] at position (%d) has invalid type and will be skipped.", fqIfdPath, i)
+ continue
+ }
+
+ log.Panic(err)
+ }
+
+ if tag.TagId == ThumbnailOffsetTagId {
+ iteThumbnailOffset = tag
+
+ continue
+ } else if tag.TagId == ThumbnailSizeTagId {
+ iteThumbnailSize = tag
+ continue
+ }
+
+ if visitorWrapper != nil {
+ tt := NewTagType(tag.TagType, ie.byteOrder)
+
+ valueContext := ie.GetValueContext(tag)
+
+ err := visitorWrapper.Visit(fqIfdPath, ifdIndex, tag.TagId, tt, valueContext)
+ log.PanicIf(err)
+ }
+
+ // If it's an IFD but not a standard one, it'll just be seen as a LONG
+ // (the standard IFD tag type), later, unless we skip it because it's
+ // [likely] not even in the standard list of known tags.
+ if tag.ChildIfdPath != "" {
+ if doDescend == true {
+ ifdEnumerateLogger.Debugf(nil, "Descending to IFD [%s].", tag.ChildIfdPath)
+
+ err := ie.scan(tag.ChildFqIfdPath, tag.ValueOffset, visitor, resolveValues)
+ log.PanicIf(err)
+ }
+ }
+
+ entries = append(entries, tag)
+ }
+
+ if iteThumbnailOffset != nil && iteThumbnailSize != nil {
+ thumbnailData, err = ie.parseThumbnail(iteThumbnailOffset, iteThumbnailSize)
+ log.PanicIf(err)
+ }
+
+ nextIfdOffset, _, err = ite.getUint32()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Next IFD at offset: (%08x)", nextIfdOffset)
+
+ return nextIfdOffset, entries, thumbnailData, nil
+}
+
+func (ie *IfdEnumerate) parseThumbnail(offsetIte, lengthIte *IfdTagEntry) (thumbnailData []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ addressableData := ie.exifData[ExifAddressableAreaStart:]
+
+ vRaw, err := lengthIte.Value(addressableData, ie.byteOrder)
+ log.PanicIf(err)
+
+ vList := vRaw.([]uint32)
+ if len(vList) != 1 {
+ log.Panicf("not exactly one long: (%d)", len(vList))
+ }
+
+ length := vList[0]
+
+ // The tag is official a LONG type, but it's actually an offset to a blob of bytes.
+ offsetIte.TagType = TypeByte
+ offsetIte.UnitCount = length
+
+ thumbnailData, err = offsetIte.ValueBytes(addressableData, ie.byteOrder)
+ log.PanicIf(err)
+
+ return thumbnailData, nil
+}
+
+// Scan enumerates the different EXIF's IFD blocks.
+func (ie *IfdEnumerate) scan(fqIfdName string, ifdOffset uint32, visitor interface{}, resolveValues bool) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for ifdIndex := 0; ; ifdIndex++ {
+ ifdEnumerateLogger.Debugf(nil, "Parsing IFD [%s] (%d) at offset (%04x).", fqIfdName, ifdIndex, ifdOffset)
+ ite := ie.getTagEnumerator(ifdOffset)
+
+ nextIfdOffset, _, _, err := ie.ParseIfd(fqIfdName, ifdIndex, ite, visitor, true, resolveValues)
+ log.PanicIf(err)
+
+ if nextIfdOffset == 0 {
+ break
+ }
+
+ ifdOffset = nextIfdOffset
+ }
+
+ return nil
+}
+
+// Scan enumerates the different EXIF blocks (called IFDs). `rootIfdName` will
+// be "IFD" in the TIFF standard.
+func (ie *IfdEnumerate) Scan(rootIfdName string, ifdOffset uint32, visitor RawTagVisitor, resolveValue bool) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = ie.scan(rootIfdName, ifdOffset, visitor, resolveValue)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// Ifd represents a single parsed IFD.
+type Ifd struct {
+
+ // TODO(dustin): !! Why are all of these public? Privatize them and then add NextIfd().
+
+ // This is just for convenience, just so that we can easily get the values
+ // and not involve other projects in semantics that they won't otherwise
+ // need to know.
+ addressableData []byte
+
+ ByteOrder binary.ByteOrder
+
+ // Name is the name of the IFD (the rightmost name in the path, sans any
+ // indices).
+ Name string
+
+ // IfdPath is a simple IFD path (e.g. IFD/GPSInfo). No indices.
+ IfdPath string
+
+ // FqIfdPath is a fully-qualified IFD path (e.g. IFD0/GPSInfo0). With
+ // indices.
+ FqIfdPath string
+
+ TagId uint16
+
+ Id int
+
+ ParentIfd *Ifd
+
+ // ParentTagIndex is our tag position in the parent IFD, if we had a parent
+ // (if `ParentIfd` is not nil and we weren't an IFD referenced as a sibling
+ // instead of as a child).
+ ParentTagIndex int
+
+ // Name string
+ Index int
+ Offset uint32
+
+ Entries []*IfdTagEntry
+ EntriesByTagId map[uint16][]*IfdTagEntry
+
+ Children []*Ifd
+
+ ChildIfdIndex map[string]*Ifd
+
+ NextIfdOffset uint32
+ NextIfd *Ifd
+
+ thumbnailData []byte
+
+ ifdMapping *IfdMapping
+ tagIndex *TagIndex
+}
+
+func (ifd *Ifd) ChildWithIfdPath(ifdPath string) (childIfd *Ifd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for _, childIfd := range ifd.Children {
+ if childIfd.IfdPath == ifdPath {
+ return childIfd, nil
+ }
+ }
+
+ log.Panic(ErrTagNotFound)
+ return nil, nil
+}
+
+func (ifd *Ifd) TagValue(ite *IfdTagEntry) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ value, err = ite.Value(ifd.addressableData, ifd.ByteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (ifd *Ifd) TagValueBytes(ite *IfdTagEntry) (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ value, err = ite.ValueBytes(ifd.addressableData, ifd.ByteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// FindTagWithId returns a list of tags (usually just zero or one) that match
+// the given tag ID. This is efficient.
+func (ifd *Ifd) FindTagWithId(tagId uint16) (results []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ results, found := ifd.EntriesByTagId[tagId]
+ if found != true {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return results, nil
+}
+
+// FindTagWithName returns a list of tags (usually just zero or one) that match
+// the given tag name. This is not efficient (though the labor is trivial).
+func (ifd *Ifd) FindTagWithName(tagName string) (results []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ifd.tagIndex.GetWithName(ifd.IfdPath, tagName)
+ if log.Is(err, ErrTagNotFound) == true {
+ log.Panic(ErrTagNotStandard)
+ } else if err != nil {
+ log.Panic(err)
+ }
+
+ results = make([]*IfdTagEntry, 0)
+ for _, ite := range ifd.Entries {
+ if ite.TagId == it.Id {
+ results = append(results, ite)
+ }
+ }
+
+ if len(results) == 0 {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return results, nil
+}
+
+func (ifd Ifd) String() string {
+ parentOffset := uint32(0)
+ if ifd.ParentIfd != nil {
+ parentOffset = ifd.ParentIfd.Offset
+ }
+
+ return fmt.Sprintf("Ifd", ifd.Id, ifd.IfdPath, ifd.Index, len(ifd.Entries), ifd.Offset, len(ifd.Children), parentOffset, ifd.NextIfdOffset)
+}
+
+func (ifd *Ifd) Thumbnail() (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if ifd.thumbnailData == nil {
+ log.Panic(ErrNoThumbnail)
+ }
+
+ return ifd.thumbnailData, nil
+}
+
+func (ifd *Ifd) dumpTags(tags []*IfdTagEntry) []*IfdTagEntry {
+ if tags == nil {
+ tags = make([]*IfdTagEntry, 0)
+ }
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, tag := range ifd.Entries {
+ tags = append(tags, tag)
+
+ if tag.ChildIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[tag.ChildIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", tag.ChildIfdPath)
+ }
+
+ tags = childIfd.dumpTags(tags)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ tags = ifd.NextIfd.dumpTags(tags)
+ }
+
+ return tags
+}
+
+// DumpTags prints the IFD hierarchy.
+func (ifd *Ifd) DumpTags() []*IfdTagEntry {
+ return ifd.dumpTags(nil)
+}
+
+func (ifd *Ifd) printTagTree(populateValues bool, index, level int, nextLink bool) {
+ indent := strings.Repeat(" ", level*2)
+
+ prefix := " "
+ if nextLink {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%sIFD: %s\n", indent, prefix, ifd)
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, tag := range ifd.Entries {
+ if tag.ChildIfdPath != "" {
+ fmt.Printf("%s - TAG: %s\n", indent, tag)
+ } else {
+ it, err := ifd.tagIndex.Get(ifd.IfdPath, tag.TagId)
+
+ tagName := ""
+ if err == nil {
+ tagName = it.Name
+ }
+
+ var value interface{}
+ if populateValues == true {
+ var err error
+
+ value, err = ifd.TagValue(tag)
+ if err != nil {
+ if err == ErrUnhandledUnknownTypedTag {
+ value = UnparseableUnknownTagValuePlaceholder
+ } else {
+ log.Panic(err)
+ }
+ }
+ }
+
+ fmt.Printf("%s - TAG: %s NAME=[%s] VALUE=[%v]\n", indent, tag, tagName, value)
+ }
+
+ if tag.ChildIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[tag.ChildIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", tag.ChildIfdPath)
+ }
+
+ childIfd.printTagTree(populateValues, 0, level+1, false)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ ifd.NextIfd.printTagTree(populateValues, index+1, level, true)
+ }
+}
+
+// PrintTagTree prints the IFD hierarchy.
+func (ifd *Ifd) PrintTagTree(populateValues bool) {
+ ifd.printTagTree(populateValues, 0, 0, false)
+}
+
+func (ifd *Ifd) printIfdTree(level int, nextLink bool) {
+ indent := strings.Repeat(" ", level*2)
+
+ prefix := " "
+ if nextLink {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%s%s\n", indent, prefix, ifd)
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, tag := range ifd.Entries {
+ if tag.ChildIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[tag.ChildIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", tag.ChildIfdPath)
+ }
+
+ childIfd.printIfdTree(level+1, false)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ ifd.NextIfd.printIfdTree(level, true)
+ }
+}
+
+// PrintIfdTree prints the IFD hierarchy.
+func (ifd *Ifd) PrintIfdTree() {
+ ifd.printIfdTree(0, false)
+}
+
+func (ifd *Ifd) dumpTree(tagsDump []string, level int) []string {
+ if tagsDump == nil {
+ tagsDump = make([]string, 0)
+ }
+
+ indent := strings.Repeat(" ", level*2)
+
+ var ifdPhrase string
+ if ifd.ParentIfd != nil {
+ ifdPhrase = fmt.Sprintf("[%s]->[%s]:(%d)", ifd.ParentIfd.IfdPath, ifd.IfdPath, ifd.Index)
+ } else {
+ ifdPhrase = fmt.Sprintf("[ROOT]->[%s]:(%d)", ifd.IfdPath, ifd.Index)
+ }
+
+ startBlurb := fmt.Sprintf("%s> IFD %s TOP", indent, ifdPhrase)
+ tagsDump = append(tagsDump, startBlurb)
+
+ ifdsFoundCount := 0
+ for _, tag := range ifd.Entries {
+ tagsDump = append(tagsDump, fmt.Sprintf("%s - (0x%04x)", indent, tag.TagId))
+
+ if tag.ChildIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[tag.ChildIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", tag.ChildIfdPath)
+ }
+
+ tagsDump = childIfd.dumpTree(tagsDump, level+1)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ finishBlurb := fmt.Sprintf("%s< IFD %s BOTTOM", indent, ifdPhrase)
+ tagsDump = append(tagsDump, finishBlurb)
+
+ if ifd.NextIfd != nil {
+ siblingBlurb := fmt.Sprintf("%s* LINKING TO SIBLING IFD [%s]:(%d)", indent, ifd.NextIfd.IfdPath, ifd.NextIfd.Index)
+ tagsDump = append(tagsDump, siblingBlurb)
+
+ tagsDump = ifd.NextIfd.dumpTree(tagsDump, level)
+ }
+
+ return tagsDump
+}
+
+// DumpTree returns a list of strings describing the IFD hierarchy.
+func (ifd *Ifd) DumpTree() []string {
+ return ifd.dumpTree(nil, 0)
+}
+
+// GpsInfo parses and consolidates the GPS info. This can only be called on the
+// GPS IFD.
+func (ifd *Ifd) GpsInfo() (gi *GpsInfo, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Also add functionality to update the GPS info.
+
+ gi = new(GpsInfo)
+
+ if ifd.IfdPath != IfdPathStandardGps {
+ log.Panicf("GPS can only be read on GPS IFD: [%s] != [%s]", ifd.IfdPath, IfdPathStandardGps)
+ }
+
+ if tags, found := ifd.EntriesByTagId[TagVersionId]; found == false {
+ // We've seen this. We'll just have to default to assuming we're in a
+ // 2.2.0.0 format.
+ ifdEnumerateLogger.Warningf(nil, "No GPS version tag (0x%04x) found.", TagVersionId)
+ } else {
+ hit := false
+ for _, acceptedGpsVersion := range ValidGpsVersions {
+ if bytes.Compare(tags[0].value, acceptedGpsVersion[:]) == 0 {
+ hit = true
+ break
+ }
+ }
+
+ if hit != true {
+ ifdEnumerateLogger.Warningf(nil, "GPS version not supported: %v", tags[0].value)
+ log.Panic(ErrNoGpsTags)
+ }
+ }
+
+ tags, found := ifd.EntriesByTagId[TagLatitudeId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "latitude not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ latitudeValue, err := ifd.TagValue(tags[0])
+ log.PanicIf(err)
+
+ // Look for whether North or South.
+ tags, found = ifd.EntriesByTagId[TagLatitudeRefId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "latitude-ref not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ latitudeRefValue, err := ifd.TagValue(tags[0])
+ log.PanicIf(err)
+
+ tags, found = ifd.EntriesByTagId[TagLongitudeId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "longitude not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ longitudeValue, err := ifd.TagValue(tags[0])
+ log.PanicIf(err)
+
+ // Look for whether West or East.
+ tags, found = ifd.EntriesByTagId[TagLongitudeRefId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "longitude-ref not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ longitudeRefValue, err := ifd.TagValue(tags[0])
+ log.PanicIf(err)
+
+ // Parse location.
+
+ latitudeRaw := latitudeValue.([]Rational)
+
+ gi.Latitude = GpsDegrees{
+ Orientation: latitudeRefValue.(string)[0],
+ Degrees: float64(latitudeRaw[0].Numerator) / float64(latitudeRaw[0].Denominator),
+ Minutes: float64(latitudeRaw[1].Numerator) / float64(latitudeRaw[1].Denominator),
+ Seconds: float64(latitudeRaw[2].Numerator) / float64(latitudeRaw[2].Denominator),
+ }
+
+ longitudeRaw := longitudeValue.([]Rational)
+
+ gi.Longitude = GpsDegrees{
+ Orientation: longitudeRefValue.(string)[0],
+ Degrees: float64(longitudeRaw[0].Numerator) / float64(longitudeRaw[0].Denominator),
+ Minutes: float64(longitudeRaw[1].Numerator) / float64(longitudeRaw[1].Denominator),
+ Seconds: float64(longitudeRaw[2].Numerator) / float64(longitudeRaw[2].Denominator),
+ }
+
+ // Parse altitude.
+
+ altitudeTags, foundAltitude := ifd.EntriesByTagId[TagAltitudeId]
+ altitudeRefTags, foundAltitudeRef := ifd.EntriesByTagId[TagAltitudeRefId]
+
+ if foundAltitude == true && foundAltitudeRef == true {
+ altitudeValue, err := ifd.TagValue(altitudeTags[0])
+ log.PanicIf(err)
+
+ altitudeRefValue, err := ifd.TagValue(altitudeRefTags[0])
+ log.PanicIf(err)
+
+ altitudeRaw := altitudeValue.([]Rational)
+ altitude := int(altitudeRaw[0].Numerator / altitudeRaw[0].Denominator)
+ if altitudeRefValue.([]byte)[0] == 1 {
+ altitude *= -1
+ }
+
+ gi.Altitude = altitude
+ }
+
+ // Parse time.
+
+ timestampTags, foundTimestamp := ifd.EntriesByTagId[TagTimestampId]
+ datestampTags, foundDatestamp := ifd.EntriesByTagId[TagDatestampId]
+
+ if foundTimestamp == true && foundDatestamp == true {
+ datestampValue, err := ifd.TagValue(datestampTags[0])
+ log.PanicIf(err)
+
+ dateParts := strings.Split(datestampValue.(string), ":")
+
+ year, err1 := strconv.ParseUint(dateParts[0], 10, 16)
+ month, err2 := strconv.ParseUint(dateParts[1], 10, 8)
+ day, err3 := strconv.ParseUint(dateParts[2], 10, 8)
+
+ if err1 == nil && err2 == nil && err3 == nil {
+ timestampValue, err := ifd.TagValue(timestampTags[0])
+ log.PanicIf(err)
+
+ timestampRaw := timestampValue.([]Rational)
+
+ hour := int(timestampRaw[0].Numerator / timestampRaw[0].Denominator)
+ minute := int(timestampRaw[1].Numerator / timestampRaw[1].Denominator)
+ second := int(timestampRaw[2].Numerator / timestampRaw[2].Denominator)
+
+ gi.Timestamp = time.Date(int(year), time.Month(month), int(day), hour, minute, second, 0, time.UTC)
+ }
+ }
+
+ return gi, nil
+}
+
+type ParsedTagVisitor func(*Ifd, *IfdTagEntry) error
+
+func (ifd *Ifd) EnumerateTagsRecursively(visitor ParsedTagVisitor) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for ptr := ifd; ptr != nil; ptr = ptr.NextIfd {
+ for _, ite := range ifd.Entries {
+ if ite.ChildIfdPath != "" {
+ childIfd := ifd.ChildIfdIndex[ite.ChildIfdPath]
+
+ err := childIfd.EnumerateTagsRecursively(visitor)
+ log.PanicIf(err)
+ } else {
+ err := visitor(ifd, ite)
+ log.PanicIf(err)
+ }
+ }
+ }
+
+ return nil
+}
+
+func (ifd *Ifd) GetValueContext(ite *IfdTagEntry) *ValueContext {
+ return newValueContextFromTag(
+ ite,
+ ifd.addressableData,
+ ifd.ByteOrder)
+}
+
+type QueuedIfd struct {
+ Name string
+ IfdPath string
+ FqIfdPath string
+
+ TagId uint16
+
+ Index int
+ Offset uint32
+ Parent *Ifd
+
+ // ParentTagIndex is our tag position in the parent IFD, if we had a parent
+ // (if `ParentIfd` is not nil and we weren't an IFD referenced as a sibling
+ // instead of as a child).
+ ParentTagIndex int
+}
+
+type IfdIndex struct {
+ RootIfd *Ifd
+ Ifds []*Ifd
+ Tree map[int]*Ifd
+ Lookup map[string][]*Ifd
+}
+
+// Scan enumerates the different EXIF blocks (called IFDs).
+func (ie *IfdEnumerate) Collect(rootIfdOffset uint32, resolveValues bool) (index IfdIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tree := make(map[int]*Ifd)
+ ifds := make([]*Ifd, 0)
+ lookup := make(map[string][]*Ifd)
+
+ queue := []QueuedIfd{
+ {
+ Name: IfdStandard,
+ IfdPath: IfdStandard,
+ FqIfdPath: IfdStandard,
+
+ TagId: 0xffff,
+
+ Index: 0,
+ Offset: rootIfdOffset,
+ },
+ }
+
+ edges := make(map[uint32]*Ifd)
+
+ for {
+ if len(queue) == 0 {
+ break
+ }
+
+ qi := queue[0]
+
+ name := qi.Name
+ ifdPath := qi.IfdPath
+ fqIfdPath := qi.FqIfdPath
+
+ index := qi.Index
+ offset := qi.Offset
+ parentIfd := qi.Parent
+
+ queue = queue[1:]
+
+ ifdEnumerateLogger.Debugf(nil, "Parsing IFD [%s] (%d) at offset (%04x).", ifdPath, index, offset)
+ ite := ie.getTagEnumerator(offset)
+
+ nextIfdOffset, entries, thumbnailData, err := ie.ParseIfd(fqIfdPath, index, ite, nil, false, resolveValues)
+ log.PanicIf(err)
+
+ id := len(ifds)
+
+ entriesByTagId := make(map[uint16][]*IfdTagEntry)
+ for _, tag := range entries {
+ tags, found := entriesByTagId[tag.TagId]
+ if found == false {
+ tags = make([]*IfdTagEntry, 0)
+ }
+
+ entriesByTagId[tag.TagId] = append(tags, tag)
+ }
+
+ ifd := &Ifd{
+ addressableData: ie.exifData[ExifAddressableAreaStart:],
+
+ ByteOrder: ie.byteOrder,
+
+ Name: name,
+ IfdPath: ifdPath,
+ FqIfdPath: fqIfdPath,
+
+ TagId: qi.TagId,
+
+ Id: id,
+
+ ParentIfd: parentIfd,
+ ParentTagIndex: qi.ParentTagIndex,
+
+ Index: index,
+ Offset: offset,
+ Entries: entries,
+ EntriesByTagId: entriesByTagId,
+
+ // This is populated as each child is processed.
+ Children: make([]*Ifd, 0),
+
+ NextIfdOffset: nextIfdOffset,
+ thumbnailData: thumbnailData,
+
+ ifdMapping: ie.ifdMapping,
+ tagIndex: ie.tagIndex,
+ }
+
+ // Add ourselves to a big list of IFDs.
+ ifds = append(ifds, ifd)
+
+ // Install ourselves into a by-id lookup table (keys are unique).
+ tree[id] = ifd
+
+ // Install into by-name buckets.
+
+ if list_, found := lookup[ifdPath]; found == true {
+ lookup[ifdPath] = append(list_, ifd)
+ } else {
+ list_ = make([]*Ifd, 1)
+ list_[0] = ifd
+
+ lookup[ifdPath] = list_
+ }
+
+ // Add a link from the previous IFD in the chain to us.
+ if previousIfd, found := edges[offset]; found == true {
+ previousIfd.NextIfd = ifd
+ }
+
+ // Attach as a child to our parent (where we appeared as a tag in
+ // that IFD).
+ if parentIfd != nil {
+ parentIfd.Children = append(parentIfd.Children, ifd)
+ }
+
+ // Determine if any of our entries is a child IFD and queue it.
+ for i, entry := range entries {
+ if entry.ChildIfdPath == "" {
+ continue
+ }
+
+ qi := QueuedIfd{
+ Name: entry.ChildIfdName,
+ IfdPath: entry.ChildIfdPath,
+ FqIfdPath: entry.ChildFqIfdPath,
+ TagId: entry.TagId,
+
+ Index: 0,
+ Offset: entry.ValueOffset,
+ Parent: ifd,
+ ParentTagIndex: i,
+ }
+
+ queue = append(queue, qi)
+ }
+
+ // If there's another IFD in the chain.
+ if nextIfdOffset != 0 {
+ // Allow the next link to know what the previous link was.
+ edges[nextIfdOffset] = ifd
+
+ siblingIndex := index + 1
+
+ var fqIfdPath string
+ if parentIfd != nil {
+ fqIfdPath = fmt.Sprintf("%s/%s%d", parentIfd.FqIfdPath, name, siblingIndex)
+ } else {
+ fqIfdPath = fmt.Sprintf("%s%d", name, siblingIndex)
+ }
+
+ qi := QueuedIfd{
+ Name: name,
+ IfdPath: ifdPath,
+ FqIfdPath: fqIfdPath,
+ TagId: 0xffff,
+ Index: siblingIndex,
+ Offset: nextIfdOffset,
+ }
+
+ queue = append(queue, qi)
+ }
+ }
+
+ index.RootIfd = tree[0]
+ index.Ifds = ifds
+ index.Tree = tree
+ index.Lookup = lookup
+
+ err = ie.setChildrenIndex(index.RootIfd)
+ log.PanicIf(err)
+
+ return index, nil
+}
+
+func (ie *IfdEnumerate) setChildrenIndex(ifd *Ifd) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ childIfdIndex := make(map[string]*Ifd)
+ for _, childIfd := range ifd.Children {
+ childIfdIndex[childIfd.IfdPath] = childIfd
+ }
+
+ ifd.ChildIfdIndex = childIfdIndex
+
+ for _, childIfd := range ifd.Children {
+ err := ie.setChildrenIndex(childIfd)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
+
+// ParseOneIfd is a hack to use an IE to parse a raw IFD block. Can be used for
+// testing.
+func ParseOneIfd(ifdMapping *IfdMapping, tagIndex *TagIndex, fqIfdPath, ifdPath string, byteOrder binary.ByteOrder, ifdBlock []byte, visitor RawTagVisitor, resolveValues bool) (nextIfdOffset uint32, entries []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, make([]byte, 0), byteOrder)
+ ite := NewIfdTagEnumerator(ifdBlock, byteOrder, 0)
+
+ nextIfdOffset, entries, _, err = ie.ParseIfd(fqIfdPath, 0, ite, visitor, true, resolveValues)
+ log.PanicIf(err)
+
+ return nextIfdOffset, entries, nil
+}
+
+// ParseOneTag is a hack to use an IE to parse a raw tag block.
+func ParseOneTag(ifdMapping *IfdMapping, tagIndex *TagIndex, fqIfdPath, ifdPath string, byteOrder binary.ByteOrder, tagBlock []byte, resolveValue bool) (tag *IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, make([]byte, 0), byteOrder)
+ ite := NewIfdTagEnumerator(tagBlock, byteOrder, 0)
+
+ tag, err = ie.parseTag(fqIfdPath, 0, ite, resolveValue)
+ log.PanicIf(err)
+
+ return tag, nil
+}
+
+func FindIfdFromRootIfd(rootIfd *Ifd, ifdPath string) (ifd *Ifd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ lineage, err := rootIfd.ifdMapping.ResolvePath(ifdPath)
+ log.PanicIf(err)
+
+ // Confirm the first IFD is our root IFD type, and then prune it because
+ // from then on we'll be searching down through our children.
+
+ if len(lineage) == 0 {
+ log.Panicf("IFD path must be non-empty.")
+ } else if lineage[0].Name != IfdStandard {
+ log.Panicf("First IFD path item must be [%s].", IfdStandard)
+ }
+
+ desiredRootIndex := lineage[0].Index
+ lineage = lineage[1:]
+
+ // TODO(dustin): !! This is a poorly conceived fix that just doubles the work we already have to do below, which then interacts badly with the indices not being properly represented in the IFD-phrase.
+ // TODO(dustin): !! <-- However, we're not sure whether we shouldn't store a secondary IFD-path with the indices. Some IFDs may not necessarily restrict which IFD indices they can be a child of (only the IFD itself matters). Validation should be delegated to the caller.
+ thisIfd := rootIfd
+ for currentRootIndex := 0; currentRootIndex < desiredRootIndex; currentRootIndex++ {
+ if thisIfd.NextIfd == nil {
+ log.Panicf("Root-IFD index (%d) does not exist in the data.", currentRootIndex)
+ }
+
+ thisIfd = thisIfd.NextIfd
+ }
+
+ for i, itii := range lineage {
+ var hit *Ifd
+ for _, childIfd := range thisIfd.Children {
+ if childIfd.TagId == itii.TagId {
+ hit = childIfd
+ break
+ }
+ }
+
+ // If we didn't find the child, add it.
+ if hit == nil {
+ log.Panicf("IFD [%s] in [%s] not found: %s", itii.Name, ifdPath, thisIfd.Children)
+ }
+
+ thisIfd = hit
+
+ // If we didn't find the sibling, add it.
+ for i = 0; i < itii.Index; i++ {
+ if thisIfd.NextIfd == nil {
+ log.Panicf("IFD [%s] does not have (%d) occurrences/siblings\n", thisIfd.IfdPath, itii.Index)
+ }
+
+ thisIfd = thisIfd.NextIfd
+ }
+ }
+
+ return thisIfd, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/ifd_tag_entry.go b/vendor/github.com/dsoprea/go-exif/ifd_tag_entry.go
new file mode 100644
index 000000000..59e79ccf7
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/ifd_tag_entry.go
@@ -0,0 +1,233 @@
+package exif
+
+import (
+ "fmt"
+ "reflect"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ iteLogger = log.NewLogger("exif.ifd_tag_entry")
+)
+
+type IfdTagEntry struct {
+ TagId uint16
+ TagIndex int
+ TagType TagTypePrimitive
+ UnitCount uint32
+ ValueOffset uint32
+ RawValueOffset []byte
+
+ // ChildIfdName is the right most atom in the IFD-path. We need this to
+ // construct the fully-qualified IFD-path.
+ ChildIfdName string
+
+ // ChildIfdPath is the IFD-path of the child if this tag represents a child
+ // IFD.
+ ChildIfdPath string
+
+ // ChildFqIfdPath is the IFD-path of the child if this tag represents a
+ // child IFD. Includes indices.
+ ChildFqIfdPath string
+
+ // TODO(dustin): !! IB's host the child-IBs directly in the tag, but that's not the case here. Refactor to accomodate it for a consistent experience.
+
+ // IfdPath is the IFD that this tag belongs to.
+ IfdPath string
+
+ // TODO(dustin): !! We now parse and read the value immediately. Update the rest of the logic to use this and get rid of all of the staggered and different resolution mechanisms.
+ value []byte
+ isUnhandledUnknown bool
+}
+
+func (ite *IfdTagEntry) String() string {
+ return fmt.Sprintf("IfdTagEntry", ite.IfdPath, ite.TagId, TypeNames[ite.TagType], ite.UnitCount)
+}
+
+// TODO(dustin): TODO(dustin): Stop exporting IfdPath and TagId.
+//
+// func (ite *IfdTagEntry) IfdPath() string {
+// return ite.IfdPath
+// }
+
+// TODO(dustin): TODO(dustin): Stop exporting IfdPath and TagId.
+//
+// func (ite *IfdTagEntry) TagId() uint16 {
+// return ite.TagId
+// }
+
+// ValueString renders a string from whatever the value in this tag is.
+func (ite *IfdTagEntry) ValueString(addressableData []byte, byteOrder binary.ByteOrder) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext :=
+ newValueContextFromTag(
+ ite,
+ addressableData,
+ byteOrder)
+
+ if ite.TagType == TypeUndefined {
+ valueRaw, err := valueContext.Undefined()
+ log.PanicIf(err)
+
+ value = fmt.Sprintf("%v", valueRaw)
+ } else {
+ value, err = valueContext.Format()
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// ValueBytes renders a specific list of bytes from the value in this tag.
+func (ite *IfdTagEntry) ValueBytes(addressableData []byte, byteOrder binary.ByteOrder) (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Return the exact bytes of the unknown-type value. Returning a string
+ // (`ValueString`) is easy because we can just pass everything to
+ // `Sprintf()`. Returning the raw, typed value (`Value`) is easy
+ // (obviously). However, here, in order to produce the list of bytes, we
+ // need to coerce whatever `Undefined()` returns.
+ if ite.TagType == TypeUndefined {
+ valueContext :=
+ newValueContextFromTag(
+ ite,
+ addressableData,
+ byteOrder)
+
+ value, err := valueContext.Undefined()
+ log.PanicIf(err)
+
+ switch value.(type) {
+ case []byte:
+ return value.([]byte), nil
+ case TagUnknownType_UnknownValue:
+ b := []byte(value.(TagUnknownType_UnknownValue))
+ return b, nil
+ case string:
+ return []byte(value.(string)), nil
+ case UnknownTagValue:
+ valueBytes, err := value.(UnknownTagValue).ValueBytes()
+ log.PanicIf(err)
+
+ return valueBytes, nil
+ default:
+ // TODO(dustin): !! Finish translating the rest of the types (make reusable and replace into other similar implementations?)
+ log.Panicf("can not produce bytes for unknown-type tag (0x%04x) (2): [%s]", ite.TagId, reflect.TypeOf(value))
+ }
+ }
+
+ originalType := NewTagType(ite.TagType, byteOrder)
+ byteCount := uint32(originalType.Type().Size()) * ite.UnitCount
+
+ tt := NewTagType(TypeByte, byteOrder)
+
+ if tt.valueIsEmbedded(byteCount) == true {
+ iteLogger.Debugf(nil, "Reading BYTE value (ITE; embedded).")
+
+ // In this case, the bytes normally used for the offset are actually
+ // data.
+ value, err = tt.ParseBytes(ite.RawValueOffset, byteCount)
+ log.PanicIf(err)
+ } else {
+ iteLogger.Debugf(nil, "Reading BYTE value (ITE; at offset).")
+
+ value, err = tt.ParseBytes(addressableData[ite.ValueOffset:], byteCount)
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// Value returns the specific, parsed, typed value from the tag.
+func (ite *IfdTagEntry) Value(addressableData []byte, byteOrder binary.ByteOrder) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext :=
+ newValueContextFromTag(
+ ite,
+ addressableData,
+ byteOrder)
+
+ if ite.TagType == TypeUndefined {
+ value, err = valueContext.Undefined()
+ log.PanicIf(err)
+ } else {
+ tt := NewTagType(ite.TagType, byteOrder)
+
+ value, err = tt.Resolve(valueContext)
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// IfdTagEntryValueResolver instances know how to resolve the values for any
+// tag for a particular EXIF block.
+type IfdTagEntryValueResolver struct {
+ addressableData []byte
+ byteOrder binary.ByteOrder
+}
+
+func NewIfdTagEntryValueResolver(exifData []byte, byteOrder binary.ByteOrder) (itevr *IfdTagEntryValueResolver) {
+ return &IfdTagEntryValueResolver{
+ addressableData: exifData[ExifAddressableAreaStart:],
+ byteOrder: byteOrder,
+ }
+}
+
+// ValueBytes will resolve embedded or allocated data from the tag and return the raw bytes.
+func (itevr *IfdTagEntryValueResolver) ValueBytes(ite *IfdTagEntry) (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // OBSOLETE(dustin): This is now redundant. Use `(*ValueContext).readRawEncoded()` instead of this method.
+
+ valueContext := newValueContextFromTag(
+ ite,
+ itevr.addressableData,
+ itevr.byteOrder)
+
+ rawBytes, err := valueContext.readRawEncoded()
+ log.PanicIf(err)
+
+ return rawBytes, nil
+}
+
+func (itevr *IfdTagEntryValueResolver) Value(ite *IfdTagEntry) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // OBSOLETE(dustin): This is now redundant. Use `(*ValueContext).Values()` instead of this method.
+
+ valueContext := newValueContextFromTag(
+ ite,
+ itevr.addressableData,
+ itevr.byteOrder)
+
+ values, err := valueContext.Values()
+ log.PanicIf(err)
+
+ return values, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/package.go b/vendor/github.com/dsoprea/go-exif/package.go
new file mode 100644
index 000000000..2eb6b3056
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/package.go
@@ -0,0 +1,4 @@
+// exif parses raw EXIF information given a block of raw EXIF data.
+//
+// v1 of go-exif is now deprecated. Please use v2.
+package exif
diff --git a/vendor/github.com/dsoprea/go-exif/parser.go b/vendor/github.com/dsoprea/go-exif/parser.go
new file mode 100644
index 000000000..4702db2f8
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/parser.go
@@ -0,0 +1,190 @@
+package exif
+
+import (
+ "bytes"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+type Parser struct {
+}
+
+func (p *Parser) ParseBytes(data []byte, unitCount uint32) (value []uint8, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeByte.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = []uint8(data[:count])
+
+ return value, nil
+}
+
+// ParseAscii returns a string and auto-strips the trailing NUL character.
+func (p *Parser) ParseAscii(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeAscii.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ if len(data) == 0 || data[count-1] != 0 {
+ s := string(data[:count])
+ typeLogger.Warningf(nil, "ascii not terminated with nul as expected: [%v]", s)
+
+ return s, nil
+ } else {
+ // Auto-strip the NUL from the end. It serves no purpose outside of
+ // encoding semantics.
+
+ return string(data[:count-1]), nil
+ }
+}
+
+// ParseAsciiNoNul returns a string without any consideration for a trailing NUL
+// character.
+func (p *Parser) ParseAsciiNoNul(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeAscii.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ return string(data[:count]), nil
+}
+
+func (p *Parser) ParseShorts(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeShort.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]uint16, count)
+ for i := 0; i < count; i++ {
+ value[i] = byteOrder.Uint16(data[i*2:])
+ }
+
+ return value, nil
+}
+
+func (p *Parser) ParseLongs(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeLong.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]uint32, count)
+ for i := 0; i < count; i++ {
+ value[i] = byteOrder.Uint32(data[i*4:])
+ }
+
+ return value, nil
+}
+
+func (p *Parser) ParseRationals(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeRational.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]Rational, count)
+ for i := 0; i < count; i++ {
+ value[i].Numerator = byteOrder.Uint32(data[i*8:])
+ value[i].Denominator = byteOrder.Uint32(data[i*8+4:])
+ }
+
+ return value, nil
+}
+
+func (p *Parser) ParseSignedLongs(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeSignedLong.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ b := bytes.NewBuffer(data)
+
+ value = make([]int32, count)
+ for i := 0; i < count; i++ {
+ err := binary.Read(b, byteOrder, &value[i])
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+func (p *Parser) ParseSignedRationals(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ count := int(unitCount)
+
+ if len(data) < (TypeSignedRational.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ b := bytes.NewBuffer(data)
+
+ value = make([]SignedRational, count)
+ for i := 0; i < count; i++ {
+ err = binary.Read(b, byteOrder, &value[i].Numerator)
+ log.PanicIf(err)
+
+ err = binary.Read(b, byteOrder, &value[i].Denominator)
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/tag_type.go b/vendor/github.com/dsoprea/go-exif/tag_type.go
new file mode 100644
index 000000000..e53b1c498
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/tag_type.go
@@ -0,0 +1,397 @@
+package exif
+
+// NOTE(dustin): Most of this file encapsulates deprecated functionality and awaits being dumped in a future release.
+
+import (
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+type TagType struct {
+ tagType TagTypePrimitive
+ name string
+ byteOrder binary.ByteOrder
+}
+
+func NewTagType(tagType TagTypePrimitive, byteOrder binary.ByteOrder) TagType {
+ name, found := TypeNames[tagType]
+ if found == false {
+ log.Panicf("tag-type not valid: 0x%04x", tagType)
+ }
+
+ return TagType{
+ tagType: tagType,
+ name: name,
+ byteOrder: byteOrder,
+ }
+}
+
+func (tt TagType) String() string {
+ return fmt.Sprintf("TagType", tt.name)
+}
+
+func (tt TagType) Name() string {
+ return tt.name
+}
+
+func (tt TagType) Type() TagTypePrimitive {
+ return tt.tagType
+}
+
+func (tt TagType) ByteOrder() binary.ByteOrder {
+ return tt.byteOrder
+}
+
+func (tt TagType) Size() int {
+
+ // DEPRECATED(dustin): `(TagTypePrimitive).Size()` should be used, directly.
+
+ return tt.Type().Size()
+}
+
+// valueIsEmbedded will return a boolean indicating whether the value should be
+// found directly within the IFD entry or an offset to somewhere else.
+func (tt TagType) valueIsEmbedded(unitCount uint32) bool {
+ return (tt.tagType.Size() * int(unitCount)) <= 4
+}
+
+func (tt TagType) readRawEncoded(valueContext ValueContext) (rawBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ unitSizeRaw := uint32(tt.tagType.Size())
+
+ if tt.valueIsEmbedded(valueContext.UnitCount()) == true {
+ byteLength := unitSizeRaw * valueContext.UnitCount()
+ return valueContext.RawValueOffset()[:byteLength], nil
+ } else {
+ return valueContext.AddressableData()[valueContext.ValueOffset() : valueContext.ValueOffset()+valueContext.UnitCount()*unitSizeRaw], nil
+ }
+}
+
+func (tt TagType) ParseBytes(data []byte, unitCount uint32) (value []uint8, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseBytes()` should be used.
+
+ value, err = parser.ParseBytes(data, unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ParseAscii returns a string and auto-strips the trailing NUL character.
+func (tt TagType) ParseAscii(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseAscii()` should be used.
+
+ value, err = parser.ParseAscii(data, unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ParseAsciiNoNul returns a string without any consideration for a trailing NUL
+// character.
+func (tt TagType) ParseAsciiNoNul(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseAsciiNoNul()` should be used.
+
+ value, err = parser.ParseAsciiNoNul(data, unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ParseShorts(data []byte, unitCount uint32) (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseShorts()` should be used.
+
+ value, err = parser.ParseShorts(data, unitCount, tt.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ParseLongs(data []byte, unitCount uint32) (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseLongs()` should be used.
+
+ value, err = parser.ParseLongs(data, unitCount, tt.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ParseRationals(data []byte, unitCount uint32) (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseRationals()` should be used.
+
+ value, err = parser.ParseRationals(data, unitCount, tt.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ParseSignedLongs(data []byte, unitCount uint32) (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseSignedLongs()` should be used.
+
+ value, err = parser.ParseSignedLongs(data, unitCount, tt.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ParseSignedRationals(data []byte, unitCount uint32) (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(*Parser).ParseSignedRationals()` should be used.
+
+ value, err = parser.ParseSignedRationals(data, unitCount, tt.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadByteValues(valueContext ValueContext) (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadBytes()` should be used.
+
+ value, err = valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadAsciiValue(valueContext ValueContext) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadAscii()` should be used.
+
+ value, err = valueContext.ReadAscii()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadAsciiNoNulValue(valueContext ValueContext) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadAsciiNoNul()` should be used.
+
+ value, err = valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadShortValues(valueContext ValueContext) (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadShorts()` should be used.
+
+ value, err = valueContext.ReadShorts()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadLongValues(valueContext ValueContext) (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadLongs()` should be used.
+
+ value, err = valueContext.ReadLongs()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadRationalValues(valueContext ValueContext) (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadRationals()` should be used.
+
+ value, err = valueContext.ReadRationals()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadSignedLongValues(valueContext ValueContext) (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadSignedLongs()` should be used.
+
+ value, err = valueContext.ReadSignedLongs()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (tt TagType) ReadSignedRationalValues(valueContext ValueContext) (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).ReadSignedRationals()` should be used.
+
+ value, err = valueContext.ReadSignedRationals()
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ResolveAsString resolves the given value and returns a flat string.
+//
+// Where the type is not ASCII, `justFirst` indicates whether to just stringify
+// the first item in the slice (or return an empty string if the slice is
+// empty).
+//
+// Since this method lacks the information to process unknown-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (tt TagType) ResolveAsString(valueContext ValueContext, justFirst bool) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if justFirst == true {
+ value, err = valueContext.FormatFirst()
+ log.PanicIf(err)
+ } else {
+ value, err = valueContext.Format()
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// Resolve knows how to resolve the given value.
+//
+// Since this method lacks the information to process unknown-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (tt TagType) Resolve(valueContext *ValueContext) (values interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `(ValueContext).Values()` should be used.
+
+ values, err = valueContext.Values()
+ log.PanicIf(err)
+
+ return values, nil
+}
+
+// Encode knows how to encode the given value to a byte slice.
+func (tt TagType) Encode(value interface{}) (encoded []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ve := NewValueEncoder(tt.byteOrder)
+
+ ed, err := ve.EncodeWithType(tt, value)
+ log.PanicIf(err)
+
+ return ed.Encoded, err
+}
+
+func (tt TagType) FromString(valueString string) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // DEPRECATED(dustin): `EncodeStringToBytes()` should be used.
+
+ value, err = EncodeStringToBytes(tt.tagType, valueString)
+ log.PanicIf(err)
+
+ return value, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/tags.go b/vendor/github.com/dsoprea/go-exif/tags.go
new file mode 100644
index 000000000..7f7e51555
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/tags.go
@@ -0,0 +1,229 @@
+package exif
+
+import (
+ "fmt"
+
+ "github.com/dsoprea/go-logging"
+ "gopkg.in/yaml.v2"
+)
+
+const (
+ // IFD1
+
+ ThumbnailOffsetTagId = 0x0201
+ ThumbnailSizeTagId = 0x0202
+
+ // Exif
+
+ TagVersionId = 0x0000
+
+ TagLatitudeId = 0x0002
+ TagLatitudeRefId = 0x0001
+ TagLongitudeId = 0x0004
+ TagLongitudeRefId = 0x0003
+
+ TagTimestampId = 0x0007
+ TagDatestampId = 0x001d
+
+ TagAltitudeId = 0x0006
+ TagAltitudeRefId = 0x0005
+)
+
+var (
+ // tagsWithoutAlignment is a tag-lookup for tags whose value size won't
+ // necessarily be a multiple of its tag-type.
+ tagsWithoutAlignment = map[uint16]struct{}{
+ // The thumbnail offset is stored as a long, but its data is a binary
+ // blob (not a slice of longs).
+ ThumbnailOffsetTagId: {},
+ }
+)
+
+var (
+ tagsLogger = log.NewLogger("exif.tags")
+)
+
+// File structures.
+
+type encodedTag struct {
+ // id is signed, here, because YAML doesn't have enough information to
+ // support unsigned.
+ Id int `yaml:"id"`
+ Name string `yaml:"name"`
+ TypeName string `yaml:"type_name"`
+}
+
+// Indexing structures.
+
+type IndexedTag struct {
+ Id uint16
+ Name string
+ IfdPath string
+ Type TagTypePrimitive
+}
+
+func (it *IndexedTag) String() string {
+ return fmt.Sprintf("TAG", it.Id, it.Name, it.IfdPath)
+}
+
+func (it *IndexedTag) IsName(ifdPath, name string) bool {
+ return it.Name == name && it.IfdPath == ifdPath
+}
+
+func (it *IndexedTag) Is(ifdPath string, id uint16) bool {
+ return it.Id == id && it.IfdPath == ifdPath
+}
+
+type TagIndex struct {
+ tagsByIfd map[string]map[uint16]*IndexedTag
+ tagsByIfdR map[string]map[string]*IndexedTag
+}
+
+func NewTagIndex() *TagIndex {
+ ti := new(TagIndex)
+
+ ti.tagsByIfd = make(map[string]map[uint16]*IndexedTag)
+ ti.tagsByIfdR = make(map[string]map[string]*IndexedTag)
+
+ return ti
+}
+
+func (ti *TagIndex) Add(it *IndexedTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Store by ID.
+
+ family, found := ti.tagsByIfd[it.IfdPath]
+ if found == false {
+ family = make(map[uint16]*IndexedTag)
+ ti.tagsByIfd[it.IfdPath] = family
+ }
+
+ if _, found := family[it.Id]; found == true {
+ log.Panicf("tag-ID defined more than once for IFD [%s]: (%02x)", it.IfdPath, it.Id)
+ }
+
+ family[it.Id] = it
+
+ // Store by name.
+
+ familyR, found := ti.tagsByIfdR[it.IfdPath]
+ if found == false {
+ familyR = make(map[string]*IndexedTag)
+ ti.tagsByIfdR[it.IfdPath] = familyR
+ }
+
+ if _, found := familyR[it.Name]; found == true {
+ log.Panicf("tag-name defined more than once for IFD [%s]: (%s)", it.IfdPath, it.Name)
+ }
+
+ familyR[it.Name] = it
+
+ return nil
+}
+
+// Get returns information about the non-IFD tag.
+func (ti *TagIndex) Get(ifdPath string, id uint16) (it *IndexedTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(ti.tagsByIfd) == 0 {
+ err := LoadStandardTags(ti)
+ log.PanicIf(err)
+ }
+
+ family, found := ti.tagsByIfd[ifdPath]
+ if found == false {
+ log.Panic(ErrTagNotFound)
+ }
+
+ it, found = family[id]
+ if found == false {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return it, nil
+}
+
+// Get returns information about the non-IFD tag.
+func (ti *TagIndex) GetWithName(ifdPath string, name string) (it *IndexedTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(ti.tagsByIfdR) == 0 {
+ err := LoadStandardTags(ti)
+ log.PanicIf(err)
+ }
+
+ it, found := ti.tagsByIfdR[ifdPath][name]
+ if found != true {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return it, nil
+}
+
+// LoadStandardTags registers the tags that all devices/applications should
+// support.
+func LoadStandardTags(ti *TagIndex) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Read static data.
+
+ encodedIfds := make(map[string][]encodedTag)
+
+ err = yaml.Unmarshal([]byte(tagsYaml), encodedIfds)
+ log.PanicIf(err)
+
+ // Load structure.
+
+ count := 0
+ for ifdPath, tags := range encodedIfds {
+ for _, tagInfo := range tags {
+ tagId := uint16(tagInfo.Id)
+ tagName := tagInfo.Name
+ tagTypeName := tagInfo.TypeName
+
+ // TODO(dustin): !! Non-standard types, but found in real data. Ignore for right now.
+ if tagTypeName == "SSHORT" || tagTypeName == "FLOAT" || tagTypeName == "DOUBLE" {
+ continue
+ }
+
+ tagTypeId, found := TypeNamesR[tagTypeName]
+ if found == false {
+ log.Panicf("type [%s] for [%s] not valid", tagTypeName, tagName)
+ continue
+ }
+
+ it := &IndexedTag{
+ IfdPath: ifdPath,
+ Id: tagId,
+ Name: tagName,
+ Type: tagTypeId,
+ }
+
+ err = ti.Add(it)
+ log.PanicIf(err)
+
+ count++
+ }
+ }
+
+ tagsLogger.Debugf(nil, "(%d) tags loaded.", count)
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/tags_data.go b/vendor/github.com/dsoprea/go-exif/tags_data.go
new file mode 100644
index 000000000..64ec458d3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/tags_data.go
@@ -0,0 +1,951 @@
+package exif
+
+var (
+ // From assets/tags.yaml . Needs to be here so it's embedded in the binary.
+ tagsYaml = `
+# Notes:
+#
+# This file was produced from http://www.exiv2.org/tags.html, using the included
+# tool, though that document appears to have some duplicates when all IDs are
+# supposed to be unique (EXIF information only has IDs, not IFDs; IFDs are
+# determined by our pre-existing knowledge of those tags).
+#
+# The webpage that we've produced this file from appears to indicate that
+# ImageWidth is represented by both 0x0100 and 0x0001 depending on whether the
+# encoding is RGB or YCbCr.
+IFD/Exif:
+- id: 0x829a
+ name: ExposureTime
+ type_name: RATIONAL
+- id: 0x829d
+ name: FNumber
+ type_name: RATIONAL
+- id: 0x8822
+ name: ExposureProgram
+ type_name: SHORT
+- id: 0x8824
+ name: SpectralSensitivity
+ type_name: ASCII
+- id: 0x8827
+ name: ISOSpeedRatings
+ type_name: SHORT
+- id: 0x8828
+ name: OECF
+ type_name: UNDEFINED
+- id: 0x8830
+ name: SensitivityType
+ type_name: SHORT
+- id: 0x8831
+ name: StandardOutputSensitivity
+ type_name: LONG
+- id: 0x8832
+ name: RecommendedExposureIndex
+ type_name: LONG
+- id: 0x8833
+ name: ISOSpeed
+ type_name: LONG
+- id: 0x8834
+ name: ISOSpeedLatitudeyyy
+ type_name: LONG
+- id: 0x8835
+ name: ISOSpeedLatitudezzz
+ type_name: LONG
+- id: 0x9000
+ name: ExifVersion
+ type_name: UNDEFINED
+- id: 0x9003
+ name: DateTimeOriginal
+ type_name: ASCII
+- id: 0x9004
+ name: DateTimeDigitized
+ type_name: ASCII
+- id: 0x9101
+ name: ComponentsConfiguration
+ type_name: UNDEFINED
+- id: 0x9102
+ name: CompressedBitsPerPixel
+ type_name: RATIONAL
+- id: 0x9201
+ name: ShutterSpeedValue
+ type_name: SRATIONAL
+- id: 0x9202
+ name: ApertureValue
+ type_name: RATIONAL
+- id: 0x9203
+ name: BrightnessValue
+ type_name: SRATIONAL
+- id: 0x9204
+ name: ExposureBiasValue
+ type_name: SRATIONAL
+- id: 0x9205
+ name: MaxApertureValue
+ type_name: RATIONAL
+- id: 0x9206
+ name: SubjectDistance
+ type_name: RATIONAL
+- id: 0x9207
+ name: MeteringMode
+ type_name: SHORT
+- id: 0x9208
+ name: LightSource
+ type_name: SHORT
+- id: 0x9209
+ name: Flash
+ type_name: SHORT
+- id: 0x920a
+ name: FocalLength
+ type_name: RATIONAL
+- id: 0x9214
+ name: SubjectArea
+ type_name: SHORT
+- id: 0x927c
+ name: MakerNote
+ type_name: UNDEFINED
+- id: 0x9286
+ name: UserComment
+ type_name: UNDEFINED
+- id: 0x9290
+ name: SubSecTime
+ type_name: ASCII
+- id: 0x9291
+ name: SubSecTimeOriginal
+ type_name: ASCII
+- id: 0x9292
+ name: SubSecTimeDigitized
+ type_name: ASCII
+- id: 0xa000
+ name: FlashpixVersion
+ type_name: UNDEFINED
+- id: 0xa001
+ name: ColorSpace
+ type_name: SHORT
+- id: 0xa002
+ name: PixelXDimension
+ type_name: LONG
+- id: 0xa003
+ name: PixelYDimension
+ type_name: LONG
+- id: 0xa004
+ name: RelatedSoundFile
+ type_name: ASCII
+- id: 0xa005
+ name: InteroperabilityTag
+ type_name: LONG
+- id: 0xa20b
+ name: FlashEnergy
+ type_name: RATIONAL
+- id: 0xa20c
+ name: SpatialFrequencyResponse
+ type_name: UNDEFINED
+- id: 0xa20e
+ name: FocalPlaneXResolution
+ type_name: RATIONAL
+- id: 0xa20f
+ name: FocalPlaneYResolution
+ type_name: RATIONAL
+- id: 0xa210
+ name: FocalPlaneResolutionUnit
+ type_name: SHORT
+- id: 0xa214
+ name: SubjectLocation
+ type_name: SHORT
+- id: 0xa215
+ name: ExposureIndex
+ type_name: RATIONAL
+- id: 0xa217
+ name: SensingMethod
+ type_name: SHORT
+- id: 0xa300
+ name: FileSource
+ type_name: UNDEFINED
+- id: 0xa301
+ name: SceneType
+ type_name: UNDEFINED
+- id: 0xa302
+ name: CFAPattern
+ type_name: UNDEFINED
+- id: 0xa401
+ name: CustomRendered
+ type_name: SHORT
+- id: 0xa402
+ name: ExposureMode
+ type_name: SHORT
+- id: 0xa403
+ name: WhiteBalance
+ type_name: SHORT
+- id: 0xa404
+ name: DigitalZoomRatio
+ type_name: RATIONAL
+- id: 0xa405
+ name: FocalLengthIn35mmFilm
+ type_name: SHORT
+- id: 0xa406
+ name: SceneCaptureType
+ type_name: SHORT
+- id: 0xa407
+ name: GainControl
+ type_name: SHORT
+- id: 0xa408
+ name: Contrast
+ type_name: SHORT
+- id: 0xa409
+ name: Saturation
+ type_name: SHORT
+- id: 0xa40a
+ name: Sharpness
+ type_name: SHORT
+- id: 0xa40b
+ name: DeviceSettingDescription
+ type_name: UNDEFINED
+- id: 0xa40c
+ name: SubjectDistanceRange
+ type_name: SHORT
+- id: 0xa420
+ name: ImageUniqueID
+ type_name: ASCII
+- id: 0xa430
+ name: CameraOwnerName
+ type_name: ASCII
+- id: 0xa431
+ name: BodySerialNumber
+ type_name: ASCII
+- id: 0xa432
+ name: LensSpecification
+ type_name: RATIONAL
+- id: 0xa433
+ name: LensMake
+ type_name: ASCII
+- id: 0xa434
+ name: LensModel
+ type_name: ASCII
+- id: 0xa435
+ name: LensSerialNumber
+ type_name: ASCII
+IFD/GPSInfo:
+- id: 0x0000
+ name: GPSVersionID
+ type_name: BYTE
+- id: 0x0001
+ name: GPSLatitudeRef
+ type_name: ASCII
+- id: 0x0002
+ name: GPSLatitude
+ type_name: RATIONAL
+- id: 0x0003
+ name: GPSLongitudeRef
+ type_name: ASCII
+- id: 0x0004
+ name: GPSLongitude
+ type_name: RATIONAL
+- id: 0x0005
+ name: GPSAltitudeRef
+ type_name: BYTE
+- id: 0x0006
+ name: GPSAltitude
+ type_name: RATIONAL
+- id: 0x0007
+ name: GPSTimeStamp
+ type_name: RATIONAL
+- id: 0x0008
+ name: GPSSatellites
+ type_name: ASCII
+- id: 0x0009
+ name: GPSStatus
+ type_name: ASCII
+- id: 0x000a
+ name: GPSMeasureMode
+ type_name: ASCII
+- id: 0x000b
+ name: GPSDOP
+ type_name: RATIONAL
+- id: 0x000c
+ name: GPSSpeedRef
+ type_name: ASCII
+- id: 0x000d
+ name: GPSSpeed
+ type_name: RATIONAL
+- id: 0x000e
+ name: GPSTrackRef
+ type_name: ASCII
+- id: 0x000f
+ name: GPSTrack
+ type_name: RATIONAL
+- id: 0x0010
+ name: GPSImgDirectionRef
+ type_name: ASCII
+- id: 0x0011
+ name: GPSImgDirection
+ type_name: RATIONAL
+- id: 0x0012
+ name: GPSMapDatum
+ type_name: ASCII
+- id: 0x0013
+ name: GPSDestLatitudeRef
+ type_name: ASCII
+- id: 0x0014
+ name: GPSDestLatitude
+ type_name: RATIONAL
+- id: 0x0015
+ name: GPSDestLongitudeRef
+ type_name: ASCII
+- id: 0x0016
+ name: GPSDestLongitude
+ type_name: RATIONAL
+- id: 0x0017
+ name: GPSDestBearingRef
+ type_name: ASCII
+- id: 0x0018
+ name: GPSDestBearing
+ type_name: RATIONAL
+- id: 0x0019
+ name: GPSDestDistanceRef
+ type_name: ASCII
+- id: 0x001a
+ name: GPSDestDistance
+ type_name: RATIONAL
+- id: 0x001b
+ name: GPSProcessingMethod
+ type_name: UNDEFINED
+- id: 0x001c
+ name: GPSAreaInformation
+ type_name: UNDEFINED
+- id: 0x001d
+ name: GPSDateStamp
+ type_name: ASCII
+- id: 0x001e
+ name: GPSDifferential
+ type_name: SHORT
+IFD:
+- id: 0x000b
+ name: ProcessingSoftware
+ type_name: ASCII
+- id: 0x00fe
+ name: NewSubfileType
+ type_name: LONG
+- id: 0x00ff
+ name: SubfileType
+ type_name: SHORT
+- id: 0x0100
+ name: ImageWidth
+ type_name: LONG
+- id: 0x0101
+ name: ImageLength
+ type_name: LONG
+- id: 0x0102
+ name: BitsPerSample
+ type_name: SHORT
+- id: 0x0103
+ name: Compression
+ type_name: SHORT
+- id: 0x0106
+ name: PhotometricInterpretation
+ type_name: SHORT
+- id: 0x0107
+ name: Thresholding
+ type_name: SHORT
+- id: 0x0108
+ name: CellWidth
+ type_name: SHORT
+- id: 0x0109
+ name: CellLength
+ type_name: SHORT
+- id: 0x010a
+ name: FillOrder
+ type_name: SHORT
+- id: 0x010d
+ name: DocumentName
+ type_name: ASCII
+- id: 0x010e
+ name: ImageDescription
+ type_name: ASCII
+- id: 0x010f
+ name: Make
+ type_name: ASCII
+- id: 0x0110
+ name: Model
+ type_name: ASCII
+- id: 0x0111
+ name: StripOffsets
+ type_name: LONG
+- id: 0x0112
+ name: Orientation
+ type_name: SHORT
+- id: 0x0115
+ name: SamplesPerPixel
+ type_name: SHORT
+- id: 0x0116
+ name: RowsPerStrip
+ type_name: LONG
+- id: 0x0117
+ name: StripByteCounts
+ type_name: LONG
+- id: 0x011a
+ name: XResolution
+ type_name: RATIONAL
+- id: 0x011b
+ name: YResolution
+ type_name: RATIONAL
+- id: 0x011c
+ name: PlanarConfiguration
+ type_name: SHORT
+- id: 0x0122
+ name: GrayResponseUnit
+ type_name: SHORT
+- id: 0x0123
+ name: GrayResponseCurve
+ type_name: SHORT
+- id: 0x0124
+ name: T4Options
+ type_name: LONG
+- id: 0x0125
+ name: T6Options
+ type_name: LONG
+- id: 0x0128
+ name: ResolutionUnit
+ type_name: SHORT
+- id: 0x0129
+ name: PageNumber
+ type_name: SHORT
+- id: 0x012d
+ name: TransferFunction
+ type_name: SHORT
+- id: 0x0131
+ name: Software
+ type_name: ASCII
+- id: 0x0132
+ name: DateTime
+ type_name: ASCII
+- id: 0x013b
+ name: Artist
+ type_name: ASCII
+- id: 0x013c
+ name: HostComputer
+ type_name: ASCII
+- id: 0x013d
+ name: Predictor
+ type_name: SHORT
+- id: 0x013e
+ name: WhitePoint
+ type_name: RATIONAL
+- id: 0x013f
+ name: PrimaryChromaticities
+ type_name: RATIONAL
+- id: 0x0140
+ name: ColorMap
+ type_name: SHORT
+- id: 0x0141
+ name: HalftoneHints
+ type_name: SHORT
+- id: 0x0142
+ name: TileWidth
+ type_name: SHORT
+- id: 0x0143
+ name: TileLength
+ type_name: SHORT
+- id: 0x0144
+ name: TileOffsets
+ type_name: SHORT
+- id: 0x0145
+ name: TileByteCounts
+ type_name: SHORT
+- id: 0x014a
+ name: SubIFDs
+ type_name: LONG
+- id: 0x014c
+ name: InkSet
+ type_name: SHORT
+- id: 0x014d
+ name: InkNames
+ type_name: ASCII
+- id: 0x014e
+ name: NumberOfInks
+ type_name: SHORT
+- id: 0x0150
+ name: DotRange
+ type_name: BYTE
+- id: 0x0151
+ name: TargetPrinter
+ type_name: ASCII
+- id: 0x0152
+ name: ExtraSamples
+ type_name: SHORT
+- id: 0x0153
+ name: SampleFormat
+ type_name: SHORT
+- id: 0x0154
+ name: SMinSampleValue
+ type_name: SHORT
+- id: 0x0155
+ name: SMaxSampleValue
+ type_name: SHORT
+- id: 0x0156
+ name: TransferRange
+ type_name: SHORT
+- id: 0x0157
+ name: ClipPath
+ type_name: BYTE
+- id: 0x0158
+ name: XClipPathUnits
+ type_name: SSHORT
+- id: 0x0159
+ name: YClipPathUnits
+ type_name: SSHORT
+- id: 0x015a
+ name: Indexed
+ type_name: SHORT
+- id: 0x015b
+ name: JPEGTables
+ type_name: UNDEFINED
+- id: 0x015f
+ name: OPIProxy
+ type_name: SHORT
+- id: 0x0200
+ name: JPEGProc
+ type_name: LONG
+- id: 0x0201
+ name: JPEGInterchangeFormat
+ type_name: LONG
+- id: 0x0202
+ name: JPEGInterchangeFormatLength
+ type_name: LONG
+- id: 0x0203
+ name: JPEGRestartInterval
+ type_name: SHORT
+- id: 0x0205
+ name: JPEGLosslessPredictors
+ type_name: SHORT
+- id: 0x0206
+ name: JPEGPointTransforms
+ type_name: SHORT
+- id: 0x0207
+ name: JPEGQTables
+ type_name: LONG
+- id: 0x0208
+ name: JPEGDCTables
+ type_name: LONG
+- id: 0x0209
+ name: JPEGACTables
+ type_name: LONG
+- id: 0x0211
+ name: YCbCrCoefficients
+ type_name: RATIONAL
+- id: 0x0212
+ name: YCbCrSubSampling
+ type_name: SHORT
+- id: 0x0213
+ name: YCbCrPositioning
+ type_name: SHORT
+- id: 0x0214
+ name: ReferenceBlackWhite
+ type_name: RATIONAL
+- id: 0x02bc
+ name: XMLPacket
+ type_name: BYTE
+- id: 0x4746
+ name: Rating
+ type_name: SHORT
+- id: 0x4749
+ name: RatingPercent
+ type_name: SHORT
+- id: 0x800d
+ name: ImageID
+ type_name: ASCII
+- id: 0x828d
+ name: CFARepeatPatternDim
+ type_name: SHORT
+- id: 0x828e
+ name: CFAPattern
+ type_name: BYTE
+- id: 0x828f
+ name: BatteryLevel
+ type_name: RATIONAL
+- id: 0x8298
+ name: Copyright
+ type_name: ASCII
+- id: 0x829a
+ name: ExposureTime
+ type_name: RATIONAL
+- id: 0x829d
+ name: FNumber
+ type_name: RATIONAL
+- id: 0x83bb
+ name: IPTCNAA
+ type_name: LONG
+- id: 0x8649
+ name: ImageResources
+ type_name: BYTE
+- id: 0x8769
+ name: ExifTag
+ type_name: LONG
+- id: 0x8773
+ name: InterColorProfile
+ type_name: UNDEFINED
+- id: 0x8822
+ name: ExposureProgram
+ type_name: SHORT
+- id: 0x8824
+ name: SpectralSensitivity
+ type_name: ASCII
+- id: 0x8825
+ name: GPSTag
+ type_name: LONG
+- id: 0x8827
+ name: ISOSpeedRatings
+ type_name: SHORT
+- id: 0x8828
+ name: OECF
+ type_name: UNDEFINED
+- id: 0x8829
+ name: Interlace
+ type_name: SHORT
+- id: 0x882a
+ name: TimeZoneOffset
+ type_name: SSHORT
+- id: 0x882b
+ name: SelfTimerMode
+ type_name: SHORT
+- id: 0x9003
+ name: DateTimeOriginal
+ type_name: ASCII
+- id: 0x9102
+ name: CompressedBitsPerPixel
+ type_name: RATIONAL
+- id: 0x9201
+ name: ShutterSpeedValue
+ type_name: SRATIONAL
+- id: 0x9202
+ name: ApertureValue
+ type_name: RATIONAL
+- id: 0x9203
+ name: BrightnessValue
+ type_name: SRATIONAL
+- id: 0x9204
+ name: ExposureBiasValue
+ type_name: SRATIONAL
+- id: 0x9205
+ name: MaxApertureValue
+ type_name: RATIONAL
+- id: 0x9206
+ name: SubjectDistance
+ type_name: SRATIONAL
+- id: 0x9207
+ name: MeteringMode
+ type_name: SHORT
+- id: 0x9208
+ name: LightSource
+ type_name: SHORT
+- id: 0x9209
+ name: Flash
+ type_name: SHORT
+- id: 0x920a
+ name: FocalLength
+ type_name: RATIONAL
+- id: 0x920b
+ name: FlashEnergy
+ type_name: RATIONAL
+- id: 0x920c
+ name: SpatialFrequencyResponse
+ type_name: UNDEFINED
+- id: 0x920d
+ name: Noise
+ type_name: UNDEFINED
+- id: 0x920e
+ name: FocalPlaneXResolution
+ type_name: RATIONAL
+- id: 0x920f
+ name: FocalPlaneYResolution
+ type_name: RATIONAL
+- id: 0x9210
+ name: FocalPlaneResolutionUnit
+ type_name: SHORT
+- id: 0x9211
+ name: ImageNumber
+ type_name: LONG
+- id: 0x9212
+ name: SecurityClassification
+ type_name: ASCII
+- id: 0x9213
+ name: ImageHistory
+ type_name: ASCII
+- id: 0x9214
+ name: SubjectLocation
+ type_name: SHORT
+- id: 0x9215
+ name: ExposureIndex
+ type_name: RATIONAL
+- id: 0x9216
+ name: TIFFEPStandardID
+ type_name: BYTE
+- id: 0x9217
+ name: SensingMethod
+ type_name: SHORT
+- id: 0x9c9b
+ name: XPTitle
+ type_name: BYTE
+- id: 0x9c9c
+ name: XPComment
+ type_name: BYTE
+- id: 0x9c9d
+ name: XPAuthor
+ type_name: BYTE
+- id: 0x9c9e
+ name: XPKeywords
+ type_name: BYTE
+- id: 0x9c9f
+ name: XPSubject
+ type_name: BYTE
+- id: 0xc4a5
+ name: PrintImageMatching
+ type_name: UNDEFINED
+- id: 0xc612
+ name: DNGVersion
+ type_name: BYTE
+- id: 0xc613
+ name: DNGBackwardVersion
+ type_name: BYTE
+- id: 0xc614
+ name: UniqueCameraModel
+ type_name: ASCII
+- id: 0xc615
+ name: LocalizedCameraModel
+ type_name: BYTE
+- id: 0xc616
+ name: CFAPlaneColor
+ type_name: BYTE
+- id: 0xc617
+ name: CFALayout
+ type_name: SHORT
+- id: 0xc618
+ name: LinearizationTable
+ type_name: SHORT
+- id: 0xc619
+ name: BlackLevelRepeatDim
+ type_name: SHORT
+- id: 0xc61a
+ name: BlackLevel
+ type_name: RATIONAL
+- id: 0xc61b
+ name: BlackLevelDeltaH
+ type_name: SRATIONAL
+- id: 0xc61c
+ name: BlackLevelDeltaV
+ type_name: SRATIONAL
+- id: 0xc61d
+ name: WhiteLevel
+ type_name: SHORT
+- id: 0xc61e
+ name: DefaultScale
+ type_name: RATIONAL
+- id: 0xc61f
+ name: DefaultCropOrigin
+ type_name: SHORT
+- id: 0xc620
+ name: DefaultCropSize
+ type_name: SHORT
+- id: 0xc621
+ name: ColorMatrix1
+ type_name: SRATIONAL
+- id: 0xc622
+ name: ColorMatrix2
+ type_name: SRATIONAL
+- id: 0xc623
+ name: CameraCalibration1
+ type_name: SRATIONAL
+- id: 0xc624
+ name: CameraCalibration2
+ type_name: SRATIONAL
+- id: 0xc625
+ name: ReductionMatrix1
+ type_name: SRATIONAL
+- id: 0xc626
+ name: ReductionMatrix2
+ type_name: SRATIONAL
+- id: 0xc627
+ name: AnalogBalance
+ type_name: RATIONAL
+- id: 0xc628
+ name: AsShotNeutral
+ type_name: SHORT
+- id: 0xc629
+ name: AsShotWhiteXY
+ type_name: RATIONAL
+- id: 0xc62a
+ name: BaselineExposure
+ type_name: SRATIONAL
+- id: 0xc62b
+ name: BaselineNoise
+ type_name: RATIONAL
+- id: 0xc62c
+ name: BaselineSharpness
+ type_name: RATIONAL
+- id: 0xc62d
+ name: BayerGreenSplit
+ type_name: LONG
+- id: 0xc62e
+ name: LinearResponseLimit
+ type_name: RATIONAL
+- id: 0xc62f
+ name: CameraSerialNumber
+ type_name: ASCII
+- id: 0xc630
+ name: LensInfo
+ type_name: RATIONAL
+- id: 0xc631
+ name: ChromaBlurRadius
+ type_name: RATIONAL
+- id: 0xc632
+ name: AntiAliasStrength
+ type_name: RATIONAL
+- id: 0xc633
+ name: ShadowScale
+ type_name: SRATIONAL
+- id: 0xc634
+ name: DNGPrivateData
+ type_name: BYTE
+- id: 0xc635
+ name: MakerNoteSafety
+ type_name: SHORT
+- id: 0xc65a
+ name: CalibrationIlluminant1
+ type_name: SHORT
+- id: 0xc65b
+ name: CalibrationIlluminant2
+ type_name: SHORT
+- id: 0xc65c
+ name: BestQualityScale
+ type_name: RATIONAL
+- id: 0xc65d
+ name: RawDataUniqueID
+ type_name: BYTE
+- id: 0xc68b
+ name: OriginalRawFileName
+ type_name: BYTE
+- id: 0xc68c
+ name: OriginalRawFileData
+ type_name: UNDEFINED
+- id: 0xc68d
+ name: ActiveArea
+ type_name: SHORT
+- id: 0xc68e
+ name: MaskedAreas
+ type_name: SHORT
+- id: 0xc68f
+ name: AsShotICCProfile
+ type_name: UNDEFINED
+- id: 0xc690
+ name: AsShotPreProfileMatrix
+ type_name: SRATIONAL
+- id: 0xc691
+ name: CurrentICCProfile
+ type_name: UNDEFINED
+- id: 0xc692
+ name: CurrentPreProfileMatrix
+ type_name: SRATIONAL
+- id: 0xc6bf
+ name: ColorimetricReference
+ type_name: SHORT
+- id: 0xc6f3
+ name: CameraCalibrationSignature
+ type_name: BYTE
+- id: 0xc6f4
+ name: ProfileCalibrationSignature
+ type_name: BYTE
+- id: 0xc6f6
+ name: AsShotProfileName
+ type_name: BYTE
+- id: 0xc6f7
+ name: NoiseReductionApplied
+ type_name: RATIONAL
+- id: 0xc6f8
+ name: ProfileName
+ type_name: BYTE
+- id: 0xc6f9
+ name: ProfileHueSatMapDims
+ type_name: LONG
+- id: 0xc6fa
+ name: ProfileHueSatMapData1
+ type_name: FLOAT
+- id: 0xc6fb
+ name: ProfileHueSatMapData2
+ type_name: FLOAT
+- id: 0xc6fc
+ name: ProfileToneCurve
+ type_name: FLOAT
+- id: 0xc6fd
+ name: ProfileEmbedPolicy
+ type_name: LONG
+- id: 0xc6fe
+ name: ProfileCopyright
+ type_name: BYTE
+- id: 0xc714
+ name: ForwardMatrix1
+ type_name: SRATIONAL
+- id: 0xc715
+ name: ForwardMatrix2
+ type_name: SRATIONAL
+- id: 0xc716
+ name: PreviewApplicationName
+ type_name: BYTE
+- id: 0xc717
+ name: PreviewApplicationVersion
+ type_name: BYTE
+- id: 0xc718
+ name: PreviewSettingsName
+ type_name: BYTE
+- id: 0xc719
+ name: PreviewSettingsDigest
+ type_name: BYTE
+- id: 0xc71a
+ name: PreviewColorSpace
+ type_name: LONG
+- id: 0xc71b
+ name: PreviewDateTime
+ type_name: ASCII
+- id: 0xc71c
+ name: RawImageDigest
+ type_name: UNDEFINED
+- id: 0xc71d
+ name: OriginalRawFileDigest
+ type_name: UNDEFINED
+- id: 0xc71e
+ name: SubTileBlockSize
+ type_name: LONG
+- id: 0xc71f
+ name: RowInterleaveFactor
+ type_name: LONG
+- id: 0xc725
+ name: ProfileLookTableDims
+ type_name: LONG
+- id: 0xc726
+ name: ProfileLookTableData
+ type_name: FLOAT
+- id: 0xc740
+ name: OpcodeList1
+ type_name: UNDEFINED
+- id: 0xc741
+ name: OpcodeList2
+ type_name: UNDEFINED
+- id: 0xc74e
+ name: OpcodeList3
+ type_name: UNDEFINED
+- id: 0xc761
+ name: NoiseProfile
+ type_name: DOUBLE
+IFD/Exif/Iop:
+- id: 0x0001
+ name: InteroperabilityIndex
+ type_name: ASCII
+- id: 0x0002
+ name: InteroperabilityVersion
+ type_name: UNDEFINED
+- id: 0x1000
+ name: RelatedImageFileFormat
+ type_name: ASCII
+- id: 0x1001
+ name: RelatedImageWidth
+ type_name: LONG
+- id: 0x1002
+ name: RelatedImageLength
+ type_name: LONG
+`
+)
diff --git a/vendor/github.com/dsoprea/go-exif/tags_undefined.go b/vendor/github.com/dsoprea/go-exif/tags_undefined.go
new file mode 100644
index 000000000..63ba59323
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/tags_undefined.go
@@ -0,0 +1,417 @@
+package exif
+
+import (
+ "bytes"
+ "fmt"
+ "strings"
+
+ "crypto/sha1"
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+const (
+ UnparseableUnknownTagValuePlaceholder = "!UNKNOWN"
+)
+
+// TODO(dustin): Rename "unknown" in symbol names to "undefined" in the next release.
+//
+// See https://github.com/dsoprea/go-exif/issues/27 .
+
+const (
+ TagUnknownType_9298_UserComment_Encoding_ASCII = iota
+ TagUnknownType_9298_UserComment_Encoding_JIS = iota
+ TagUnknownType_9298_UserComment_Encoding_UNICODE = iota
+ TagUnknownType_9298_UserComment_Encoding_UNDEFINED = iota
+)
+
+const (
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Y = 0x1
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Cb = 0x2
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Cr = 0x3
+ TagUnknownType_9101_ComponentsConfiguration_Channel_R = 0x4
+ TagUnknownType_9101_ComponentsConfiguration_Channel_G = 0x5
+ TagUnknownType_9101_ComponentsConfiguration_Channel_B = 0x6
+)
+
+const (
+ TagUnknownType_9101_ComponentsConfiguration_OTHER = iota
+ TagUnknownType_9101_ComponentsConfiguration_RGB = iota
+ TagUnknownType_9101_ComponentsConfiguration_YCBCR = iota
+)
+
+var (
+ TagUnknownType_9298_UserComment_Encoding_Names = map[int]string{
+ TagUnknownType_9298_UserComment_Encoding_ASCII: "ASCII",
+ TagUnknownType_9298_UserComment_Encoding_JIS: "JIS",
+ TagUnknownType_9298_UserComment_Encoding_UNICODE: "UNICODE",
+ TagUnknownType_9298_UserComment_Encoding_UNDEFINED: "UNDEFINED",
+ }
+
+ TagUnknownType_9298_UserComment_Encodings = map[int][]byte{
+ TagUnknownType_9298_UserComment_Encoding_ASCII: {'A', 'S', 'C', 'I', 'I', 0, 0, 0},
+ TagUnknownType_9298_UserComment_Encoding_JIS: {'J', 'I', 'S', 0, 0, 0, 0, 0},
+ TagUnknownType_9298_UserComment_Encoding_UNICODE: {'U', 'n', 'i', 'c', 'o', 'd', 'e', 0},
+ TagUnknownType_9298_UserComment_Encoding_UNDEFINED: {0, 0, 0, 0, 0, 0, 0, 0},
+ }
+
+ TagUnknownType_9101_ComponentsConfiguration_Names = map[int]string{
+ TagUnknownType_9101_ComponentsConfiguration_OTHER: "OTHER",
+ TagUnknownType_9101_ComponentsConfiguration_RGB: "RGB",
+ TagUnknownType_9101_ComponentsConfiguration_YCBCR: "YCBCR",
+ }
+
+ TagUnknownType_9101_ComponentsConfiguration_Configurations = map[int][]byte{
+ TagUnknownType_9101_ComponentsConfiguration_RGB: {
+ TagUnknownType_9101_ComponentsConfiguration_Channel_R,
+ TagUnknownType_9101_ComponentsConfiguration_Channel_G,
+ TagUnknownType_9101_ComponentsConfiguration_Channel_B,
+ 0,
+ },
+
+ TagUnknownType_9101_ComponentsConfiguration_YCBCR: {
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Y,
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Cb,
+ TagUnknownType_9101_ComponentsConfiguration_Channel_Cr,
+ 0,
+ },
+ }
+)
+
+// TODO(dustin): Rename `UnknownTagValue` to `UndefinedTagValue`.
+
+type UnknownTagValue interface {
+ ValueBytes() ([]byte, error)
+}
+
+// TODO(dustin): Rename `TagUnknownType_GeneralString` to `TagUnknownType_GeneralString`.
+
+type TagUnknownType_GeneralString string
+
+func (gs TagUnknownType_GeneralString) ValueBytes() (value []byte, err error) {
+ return []byte(gs), nil
+}
+
+// TODO(dustin): Rename `TagUnknownType_9298_UserComment` to `TagUndefinedType_9298_UserComment`.
+
+type TagUnknownType_9298_UserComment struct {
+ EncodingType int
+ EncodingBytes []byte
+}
+
+func (uc TagUnknownType_9298_UserComment) String() string {
+ var valuePhrase string
+
+ if len(uc.EncodingBytes) <= 8 {
+ valuePhrase = fmt.Sprintf("%v", uc.EncodingBytes)
+ } else {
+ valuePhrase = fmt.Sprintf("%v...", uc.EncodingBytes[:8])
+ }
+
+ return fmt.Sprintf("UserComment", len(uc.EncodingBytes), TagUnknownType_9298_UserComment_Encoding_Names[uc.EncodingType], valuePhrase, len(uc.EncodingBytes))
+}
+
+func (uc TagUnknownType_9298_UserComment) ValueBytes() (value []byte, err error) {
+ encodingTypeBytes, found := TagUnknownType_9298_UserComment_Encodings[uc.EncodingType]
+ if found == false {
+ log.Panicf("encoding-type not valid for unknown-type tag 9298 (UserComment): (%d)", uc.EncodingType)
+ }
+
+ value = make([]byte, len(uc.EncodingBytes)+8)
+
+ copy(value[:8], encodingTypeBytes)
+ copy(value[8:], uc.EncodingBytes)
+
+ return value, nil
+}
+
+// TODO(dustin): Rename `TagUnknownType_927C_MakerNote` to `TagUndefinedType_927C_MakerNote`.
+
+type TagUnknownType_927C_MakerNote struct {
+ MakerNoteType []byte
+ MakerNoteBytes []byte
+}
+
+func (mn TagUnknownType_927C_MakerNote) String() string {
+ parts := make([]string, 20)
+ for i, c := range mn.MakerNoteType {
+ parts[i] = fmt.Sprintf("%02x", c)
+ }
+
+ h := sha1.New()
+
+ _, err := h.Write(mn.MakerNoteBytes)
+ log.PanicIf(err)
+
+ digest := h.Sum(nil)
+
+ return fmt.Sprintf("MakerNote", strings.Join(parts, " "), len(mn.MakerNoteBytes), digest)
+}
+
+func (uc TagUnknownType_927C_MakerNote) ValueBytes() (value []byte, err error) {
+ return uc.MakerNoteBytes, nil
+}
+
+// TODO(dustin): Rename `TagUnknownType_9101_ComponentsConfiguration` to `TagUndefinedType_9101_ComponentsConfiguration`.
+
+type TagUnknownType_9101_ComponentsConfiguration struct {
+ ConfigurationId int
+ ConfigurationBytes []byte
+}
+
+func (cc TagUnknownType_9101_ComponentsConfiguration) String() string {
+ return fmt.Sprintf("ComponentsConfiguration", TagUnknownType_9101_ComponentsConfiguration_Names[cc.ConfigurationId], cc.ConfigurationBytes)
+}
+
+func (uc TagUnknownType_9101_ComponentsConfiguration) ValueBytes() (value []byte, err error) {
+ return uc.ConfigurationBytes, nil
+}
+
+// TODO(dustin): Rename `EncodeUnknown_9286` to `EncodeUndefined_9286`.
+
+func EncodeUnknown_9286(uc TagUnknownType_9298_UserComment) (encoded []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ b := new(bytes.Buffer)
+
+ encodingTypeBytes := TagUnknownType_9298_UserComment_Encodings[uc.EncodingType]
+
+ _, err = b.Write(encodingTypeBytes)
+ log.PanicIf(err)
+
+ _, err = b.Write(uc.EncodingBytes)
+ log.PanicIf(err)
+
+ return b.Bytes(), nil
+}
+
+type EncodeableUndefinedValue struct {
+ IfdPath string
+ TagId uint16
+ Parameters interface{}
+}
+
+func EncodeUndefined(ifdPath string, tagId uint16, value interface{}) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Finish implementing these.
+ if ifdPath == IfdPathStandardExif {
+ if tagId == 0x9286 {
+ encoded, err := EncodeUnknown_9286(value.(TagUnknownType_9298_UserComment))
+ log.PanicIf(err)
+
+ ed.Type = TypeUndefined
+ ed.Encoded = encoded
+ ed.UnitCount = uint32(len(encoded))
+
+ return ed, nil
+ }
+ }
+
+ log.Panicf("undefined value not encodable: %s (0x%02x)", ifdPath, tagId)
+
+ // Never called.
+ return EncodedData{}, nil
+}
+
+// TODO(dustin): Rename `TagUnknownType_UnknownValue` to `TagUndefinedType_UnknownValue`.
+
+type TagUnknownType_UnknownValue []byte
+
+func (tutuv TagUnknownType_UnknownValue) String() string {
+ parts := make([]string, len(tutuv))
+ for i, c := range tutuv {
+ parts[i] = fmt.Sprintf("%02x", c)
+ }
+
+ h := sha1.New()
+
+ _, err := h.Write(tutuv)
+ log.PanicIf(err)
+
+ digest := h.Sum(nil)
+
+ return fmt.Sprintf("Unknown", strings.Join(parts, " "), len(tutuv), digest)
+}
+
+// UndefinedValue knows how to resolve the value for most unknown-type tags.
+func UndefinedValue(ifdPath string, tagId uint16, valueContext interface{}, byteOrder binary.ByteOrder) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Stop exporting this. Use `(*ValueContext).Undefined()`.
+
+ var valueContextPtr *ValueContext
+
+ if vc, ok := valueContext.(*ValueContext); ok == true {
+ // Legacy usage.
+
+ valueContextPtr = vc
+ } else {
+ // Standard usage.
+
+ valueContextValue := valueContext.(ValueContext)
+ valueContextPtr = &valueContextValue
+ }
+
+ typeLogger.Debugf(nil, "UndefinedValue: IFD-PATH=[%s] TAG-ID=(0x%02x)", ifdPath, tagId)
+
+ if ifdPath == IfdPathStandardExif {
+ if tagId == 0x9000 {
+ // ExifVersion
+
+ valueContextPtr.SetUnknownValueType(TypeAsciiNoNul)
+
+ valueString, err := valueContextPtr.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return TagUnknownType_GeneralString(valueString), nil
+ } else if tagId == 0xa000 {
+ // FlashpixVersion
+
+ valueContextPtr.SetUnknownValueType(TypeAsciiNoNul)
+
+ valueString, err := valueContextPtr.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return TagUnknownType_GeneralString(valueString), nil
+ } else if tagId == 0x9286 {
+ // UserComment
+
+ valueContextPtr.SetUnknownValueType(TypeByte)
+
+ valueBytes, err := valueContextPtr.ReadBytes()
+ log.PanicIf(err)
+
+ unknownUc := TagUnknownType_9298_UserComment{
+ EncodingType: TagUnknownType_9298_UserComment_Encoding_UNDEFINED,
+ EncodingBytes: []byte{},
+ }
+
+ encoding := valueBytes[:8]
+ for encodingIndex, encodingBytes := range TagUnknownType_9298_UserComment_Encodings {
+ if bytes.Compare(encoding, encodingBytes) == 0 {
+ uc := TagUnknownType_9298_UserComment{
+ EncodingType: encodingIndex,
+ EncodingBytes: valueBytes[8:],
+ }
+
+ return uc, nil
+ }
+ }
+
+ typeLogger.Warningf(nil, "User-comment encoding not valid. Returning 'unknown' type (the default).")
+ return unknownUc, nil
+ } else if tagId == 0x927c {
+ // MakerNote
+ // TODO(dustin): !! This is the Wild Wild West. This very well might be a child IFD, but any and all OEM's define their own formats. If we're going to be writing changes and this is complete EXIF (which may not have the first eight bytes), it might be fine. However, if these are just IFDs they'll be relative to the main EXIF, this will invalidate the MakerNote data for IFDs and any other implementations that use offsets unless we can interpret them all. It be best to return to this later and just exclude this from being written for now, though means a loss of a wealth of image metadata.
+ // -> We can also just blindly try to interpret as an IFD and just validate that it's looks good (maybe it will even have a 'next ifd' pointer that we can validate is 0x0).
+
+ valueContextPtr.SetUnknownValueType(TypeByte)
+
+ valueBytes, err := valueContextPtr.ReadBytes()
+ log.PanicIf(err)
+
+ // TODO(dustin): Doesn't work, but here as an example.
+ // ie := NewIfdEnumerate(valueBytes, byteOrder)
+
+ // // TODO(dustin): !! Validate types (might have proprietary types, but it might be worth splitting the list between valid and not valid; maybe fail if a certain proportion are invalid, or maybe aren't less then a certain small integer)?
+ // ii, err := ie.Collect(0x0)
+
+ // for _, entry := range ii.RootIfd.Entries {
+ // fmt.Printf("ENTRY: 0x%02x %d\n", entry.TagId, entry.TagType)
+ // }
+
+ mn := TagUnknownType_927C_MakerNote{
+ MakerNoteType: valueBytes[:20],
+
+ // MakerNoteBytes has the whole length of bytes. There's always
+ // the chance that the first 20 bytes includes actual data.
+ MakerNoteBytes: valueBytes,
+ }
+
+ return mn, nil
+ } else if tagId == 0x9101 {
+ // ComponentsConfiguration
+
+ valueContextPtr.SetUnknownValueType(TypeByte)
+
+ valueBytes, err := valueContextPtr.ReadBytes()
+ log.PanicIf(err)
+
+ for configurationId, configurationBytes := range TagUnknownType_9101_ComponentsConfiguration_Configurations {
+ if bytes.Compare(valueBytes, configurationBytes) == 0 {
+ cc := TagUnknownType_9101_ComponentsConfiguration{
+ ConfigurationId: configurationId,
+ ConfigurationBytes: valueBytes,
+ }
+
+ return cc, nil
+ }
+ }
+
+ cc := TagUnknownType_9101_ComponentsConfiguration{
+ ConfigurationId: TagUnknownType_9101_ComponentsConfiguration_OTHER,
+ ConfigurationBytes: valueBytes,
+ }
+
+ return cc, nil
+ }
+ } else if ifdPath == IfdPathStandardGps {
+ if tagId == 0x001c {
+ // GPSAreaInformation
+
+ valueContextPtr.SetUnknownValueType(TypeAsciiNoNul)
+
+ valueString, err := valueContextPtr.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return TagUnknownType_GeneralString(valueString), nil
+ } else if tagId == 0x001b {
+ // GPSProcessingMethod
+
+ valueContextPtr.SetUnknownValueType(TypeAsciiNoNul)
+
+ valueString, err := valueContextPtr.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return TagUnknownType_GeneralString(valueString), nil
+ }
+ } else if ifdPath == IfdPathStandardExifIop {
+ if tagId == 0x0002 {
+ // InteropVersion
+
+ valueContextPtr.SetUnknownValueType(TypeAsciiNoNul)
+
+ valueString, err := valueContextPtr.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return TagUnknownType_GeneralString(valueString), nil
+ }
+ }
+
+ // TODO(dustin): !! Still need to do:
+ //
+ // complex: 0xa302, 0xa20c, 0x8828
+ // long: 0xa301, 0xa300
+ //
+ // 0xa40b is device-specific and unhandled.
+ //
+ // See https://github.com/dsoprea/go-exif/issues/26.
+
+ // We have no choice but to return the error. We have no way of knowing how
+ // much data there is without already knowing what data-type this tag is.
+ return nil, ErrUnhandledUnknownTypedTag
+}
diff --git a/vendor/github.com/dsoprea/go-exif/type.go b/vendor/github.com/dsoprea/go-exif/type.go
new file mode 100644
index 000000000..2012b6067
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/type.go
@@ -0,0 +1,310 @@
+package exif
+
+import (
+ "errors"
+ "fmt"
+ "strconv"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+type TagTypePrimitive uint16
+
+func (typeType TagTypePrimitive) String() string {
+ return TypeNames[typeType]
+}
+
+func (tagType TagTypePrimitive) Size() int {
+ if tagType == TypeByte {
+ return 1
+ } else if tagType == TypeAscii || tagType == TypeAsciiNoNul {
+ return 1
+ } else if tagType == TypeShort {
+ return 2
+ } else if tagType == TypeLong {
+ return 4
+ } else if tagType == TypeRational {
+ return 8
+ } else if tagType == TypeSignedLong {
+ return 4
+ } else if tagType == TypeSignedRational {
+ return 8
+ } else {
+ log.Panicf("can not determine tag-value size for type (%d): [%s]", tagType, TypeNames[tagType])
+
+ // Never called.
+ return 0
+ }
+}
+
+const (
+ TypeByte TagTypePrimitive = 1
+ TypeAscii TagTypePrimitive = 2
+ TypeShort TagTypePrimitive = 3
+ TypeLong TagTypePrimitive = 4
+ TypeRational TagTypePrimitive = 5
+ TypeUndefined TagTypePrimitive = 7
+ TypeSignedLong TagTypePrimitive = 9
+ TypeSignedRational TagTypePrimitive = 10
+
+ // TypeAsciiNoNul is just a pseudo-type, for our own purposes.
+ TypeAsciiNoNul TagTypePrimitive = 0xf0
+)
+
+var (
+ typeLogger = log.NewLogger("exif.type")
+)
+
+var (
+ // TODO(dustin): Rename TypeNames() to typeNames() and add getter.
+ TypeNames = map[TagTypePrimitive]string{
+ TypeByte: "BYTE",
+ TypeAscii: "ASCII",
+ TypeShort: "SHORT",
+ TypeLong: "LONG",
+ TypeRational: "RATIONAL",
+ TypeUndefined: "UNDEFINED",
+ TypeSignedLong: "SLONG",
+ TypeSignedRational: "SRATIONAL",
+
+ TypeAsciiNoNul: "_ASCII_NO_NUL",
+ }
+
+ TypeNamesR = map[string]TagTypePrimitive{}
+)
+
+var (
+ // ErrNotEnoughData is used when there isn't enough data to accomodate what
+ // we're trying to parse (sizeof(type) * unit_count).
+ ErrNotEnoughData = errors.New("not enough data for type")
+
+ // ErrWrongType is used when we try to parse anything other than the
+ // current type.
+ ErrWrongType = errors.New("wrong type, can not parse")
+
+ // ErrUnhandledUnknownTag is used when we try to parse a tag that's
+ // recorded as an "unknown" type but not a documented tag (therefore
+ // leaving us not knowning how to read it).
+ ErrUnhandledUnknownTypedTag = errors.New("not a standard unknown-typed tag")
+)
+
+type Rational struct {
+ Numerator uint32
+ Denominator uint32
+}
+
+type SignedRational struct {
+ Numerator int32
+ Denominator int32
+}
+
+func TagTypeSize(tagType TagTypePrimitive) int {
+
+ // DEPRECATED(dustin): `(TagTypePrimitive).Size()` should be used, directly.
+
+ return tagType.Size()
+}
+
+// Format returns a stringified value for the given bytes. Automatically
+// calculates count based on type size.
+func Format(rawBytes []byte, tagType TagTypePrimitive, justFirst bool, byteOrder binary.ByteOrder) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add tests
+
+ typeSize := tagType.Size()
+
+ if len(rawBytes)%typeSize != 0 {
+ log.Panicf("byte-count (%d) does not align for [%s] type with a size of (%d) bytes", len(rawBytes), TypeNames[tagType], typeSize)
+ }
+
+ // unitCount is the calculated unit-count. This should equal the original
+ // value from the tag (pre-resolution).
+ unitCount := uint32(len(rawBytes) / typeSize)
+
+ // Truncate the items if it's not bytes or a string and we just want the first.
+
+ valueSuffix := ""
+ if justFirst == true && unitCount > 1 && tagType != TypeByte && tagType != TypeAscii && tagType != TypeAsciiNoNul {
+ unitCount = 1
+ valueSuffix = "..."
+ }
+
+ if tagType == TypeByte {
+ items, err := parser.ParseBytes(rawBytes, unitCount)
+ log.PanicIf(err)
+
+ return DumpBytesToString(items), nil
+ } else if tagType == TypeAscii {
+ phrase, err := parser.ParseAscii(rawBytes, unitCount)
+ log.PanicIf(err)
+
+ return phrase, nil
+ } else if tagType == TypeAsciiNoNul {
+ phrase, err := parser.ParseAsciiNoNul(rawBytes, unitCount)
+ log.PanicIf(err)
+
+ return phrase, nil
+ } else if tagType == TypeShort {
+ items, err := parser.ParseShorts(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+
+ if len(items) > 0 {
+ if justFirst == true {
+ return fmt.Sprintf("%v%s", items[0], valueSuffix), nil
+ } else {
+ return fmt.Sprintf("%v", items), nil
+ }
+ } else {
+ return "", nil
+ }
+ } else if tagType == TypeLong {
+ items, err := parser.ParseLongs(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+
+ if len(items) > 0 {
+ if justFirst == true {
+ return fmt.Sprintf("%v%s", items[0], valueSuffix), nil
+ } else {
+ return fmt.Sprintf("%v", items), nil
+ }
+ } else {
+ return "", nil
+ }
+ } else if tagType == TypeRational {
+ items, err := parser.ParseRationals(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+
+ if len(items) > 0 {
+ parts := make([]string, len(items))
+ for i, r := range items {
+ parts[i] = fmt.Sprintf("%d/%d", r.Numerator, r.Denominator)
+ }
+
+ if justFirst == true {
+ return fmt.Sprintf("%v%s", parts[0], valueSuffix), nil
+ } else {
+ return fmt.Sprintf("%v", parts), nil
+ }
+ } else {
+ return "", nil
+ }
+ } else if tagType == TypeSignedLong {
+ items, err := parser.ParseSignedLongs(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+
+ if len(items) > 0 {
+ if justFirst == true {
+ return fmt.Sprintf("%v%s", items[0], valueSuffix), nil
+ } else {
+ return fmt.Sprintf("%v", items), nil
+ }
+ } else {
+ return "", nil
+ }
+ } else if tagType == TypeSignedRational {
+ items, err := parser.ParseSignedRationals(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+
+ parts := make([]string, len(items))
+ for i, r := range items {
+ parts[i] = fmt.Sprintf("%d/%d", r.Numerator, r.Denominator)
+ }
+
+ if len(items) > 0 {
+ if justFirst == true {
+ return fmt.Sprintf("%v%s", parts[0], valueSuffix), nil
+ } else {
+ return fmt.Sprintf("%v", parts), nil
+ }
+ } else {
+ return "", nil
+ }
+ } else {
+ // Affects only "unknown" values, in general.
+ log.Panicf("value of type [%s] can not be formatted into string", tagType.String())
+
+ // Never called.
+ return "", nil
+ }
+}
+
+func EncodeStringToBytes(tagType TagTypePrimitive, valueString string) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if tagType == TypeUndefined {
+ // TODO(dustin): Circle back to this.
+ log.Panicf("undefined-type values are not supported")
+ }
+
+ if tagType == TypeByte {
+ return []byte(valueString), nil
+ } else if tagType == TypeAscii || tagType == TypeAsciiNoNul {
+ // Whether or not we're putting an NUL on the end is only relevant for
+ // byte-level encoding. This function really just supports a user
+ // interface.
+
+ return valueString, nil
+ } else if tagType == TypeShort {
+ n, err := strconv.ParseUint(valueString, 10, 16)
+ log.PanicIf(err)
+
+ return uint16(n), nil
+ } else if tagType == TypeLong {
+ n, err := strconv.ParseUint(valueString, 10, 32)
+ log.PanicIf(err)
+
+ return uint32(n), nil
+ } else if tagType == TypeRational {
+ parts := strings.SplitN(valueString, "/", 2)
+
+ numerator, err := strconv.ParseUint(parts[0], 10, 32)
+ log.PanicIf(err)
+
+ denominator, err := strconv.ParseUint(parts[1], 10, 32)
+ log.PanicIf(err)
+
+ return Rational{
+ Numerator: uint32(numerator),
+ Denominator: uint32(denominator),
+ }, nil
+ } else if tagType == TypeSignedLong {
+ n, err := strconv.ParseInt(valueString, 10, 32)
+ log.PanicIf(err)
+
+ return int32(n), nil
+ } else if tagType == TypeSignedRational {
+ parts := strings.SplitN(valueString, "/", 2)
+
+ numerator, err := strconv.ParseInt(parts[0], 10, 32)
+ log.PanicIf(err)
+
+ denominator, err := strconv.ParseInt(parts[1], 10, 32)
+ log.PanicIf(err)
+
+ return SignedRational{
+ Numerator: int32(numerator),
+ Denominator: int32(denominator),
+ }, nil
+ }
+
+ log.Panicf("from-string encoding for type not supported; this shouldn't happen: [%s]", tagType.String())
+ return nil, nil
+}
+
+func init() {
+ for typeId, typeName := range TypeNames {
+ TypeNamesR[typeName] = typeId
+ }
+}
diff --git a/vendor/github.com/dsoprea/go-exif/type_encode.go b/vendor/github.com/dsoprea/go-exif/type_encode.go
new file mode 100644
index 000000000..9ff754916
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/type_encode.go
@@ -0,0 +1,262 @@
+package exif
+
+import (
+ "bytes"
+ "reflect"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ typeEncodeLogger = log.NewLogger("exif.type_encode")
+)
+
+// EncodedData encapsulates the compound output of an encoding operation.
+type EncodedData struct {
+ Type TagTypePrimitive
+ Encoded []byte
+
+ // TODO(dustin): Is this really necessary? We might have this just to correlate to the incoming stream format (raw bytes and a unit-count both for incoming and outgoing).
+ UnitCount uint32
+}
+
+type ValueEncoder struct {
+ byteOrder binary.ByteOrder
+}
+
+func NewValueEncoder(byteOrder binary.ByteOrder) *ValueEncoder {
+ return &ValueEncoder{
+ byteOrder: byteOrder,
+ }
+}
+
+func (ve *ValueEncoder) encodeBytes(value []uint8) (ed EncodedData, err error) {
+ ed.Type = TypeByte
+ ed.Encoded = []byte(value)
+ ed.UnitCount = uint32(len(value))
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeAscii(value string) (ed EncodedData, err error) {
+ ed.Type = TypeAscii
+
+ ed.Encoded = []byte(value)
+ ed.Encoded = append(ed.Encoded, 0)
+
+ ed.UnitCount = uint32(len(ed.Encoded))
+
+ return ed, nil
+}
+
+// encodeAsciiNoNul returns a string encoded as a byte-string without a trailing
+// NUL byte.
+//
+// Note that:
+//
+// 1. This type can not be automatically encoded using `Encode()`. The default
+// mode is to encode *with* a trailing NUL byte using `encodeAscii`. Only
+// certain undefined-type tags using an unterminated ASCII string and these
+// are exceptional in nature.
+//
+// 2. The presence of this method allows us to completely test the complimentary
+// no-nul parser.
+//
+func (ve *ValueEncoder) encodeAsciiNoNul(value string) (ed EncodedData, err error) {
+ ed.Type = TypeAsciiNoNul
+ ed.Encoded = []byte(value)
+ ed.UnitCount = uint32(len(ed.Encoded))
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeShorts(value []uint16) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*2)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint16(ed.Encoded[i*2:(i+1)*2], value[i])
+ }
+
+ ed.Type = TypeShort
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeLongs(value []uint32) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*4)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint32(ed.Encoded[i*4:(i+1)*4], value[i])
+ }
+
+ ed.Type = TypeLong
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeRationals(value []Rational) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*8)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint32(ed.Encoded[i*8+0:i*8+4], value[i].Numerator)
+ ve.byteOrder.PutUint32(ed.Encoded[i*8+4:i*8+8], value[i].Denominator)
+ }
+
+ ed.Type = TypeRational
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeSignedLongs(value []int32) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+
+ b := bytes.NewBuffer(make([]byte, 0, 8*ed.UnitCount))
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ err := binary.Write(b, ve.byteOrder, value[i])
+ log.PanicIf(err)
+ }
+
+ ed.Type = TypeSignedLong
+ ed.Encoded = b.Bytes()
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeSignedRationals(value []SignedRational) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+
+ b := bytes.NewBuffer(make([]byte, 0, 8*ed.UnitCount))
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ err := binary.Write(b, ve.byteOrder, value[i].Numerator)
+ log.PanicIf(err)
+
+ err = binary.Write(b, ve.byteOrder, value[i].Denominator)
+ log.PanicIf(err)
+ }
+
+ ed.Type = TypeSignedRational
+ ed.Encoded = b.Bytes()
+
+ return ed, nil
+}
+
+// Encode returns bytes for the given value, infering type from the actual
+// value. This does not support `TypeAsciiNoNull` (all strings are encoded as
+// `TypeAscii`).
+func (ve *ValueEncoder) Encode(value interface{}) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): This is redundant with EncodeWithType. Refactor one to use the other.
+
+ switch value.(type) {
+ case []byte:
+ ed, err = ve.encodeBytes(value.([]byte))
+ log.PanicIf(err)
+ case string:
+ ed, err = ve.encodeAscii(value.(string))
+ log.PanicIf(err)
+ case []uint16:
+ ed, err = ve.encodeShorts(value.([]uint16))
+ log.PanicIf(err)
+ case []uint32:
+ ed, err = ve.encodeLongs(value.([]uint32))
+ log.PanicIf(err)
+ case []Rational:
+ ed, err = ve.encodeRationals(value.([]Rational))
+ log.PanicIf(err)
+ case []int32:
+ ed, err = ve.encodeSignedLongs(value.([]int32))
+ log.PanicIf(err)
+ case []SignedRational:
+ ed, err = ve.encodeSignedRationals(value.([]SignedRational))
+ log.PanicIf(err)
+ default:
+ log.Panicf("value not encodable: [%s] [%v]", reflect.TypeOf(value), value)
+ }
+
+ return ed, nil
+}
+
+// EncodeWithType returns bytes for the given value, using the given `TagType`
+// value to determine how to encode. This supports `TypeAsciiNoNul`.
+func (ve *ValueEncoder) EncodeWithType(tt TagType, value interface{}) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): This is redundant with Encode. Refactor one to use the other.
+
+ switch tt.Type() {
+ case TypeByte:
+ ed, err = ve.encodeBytes(value.([]byte))
+ log.PanicIf(err)
+ case TypeAscii:
+ ed, err = ve.encodeAscii(value.(string))
+ log.PanicIf(err)
+ case TypeAsciiNoNul:
+ ed, err = ve.encodeAsciiNoNul(value.(string))
+ log.PanicIf(err)
+ case TypeShort:
+ ed, err = ve.encodeShorts(value.([]uint16))
+ log.PanicIf(err)
+ case TypeLong:
+ ed, err = ve.encodeLongs(value.([]uint32))
+ log.PanicIf(err)
+ case TypeRational:
+ ed, err = ve.encodeRationals(value.([]Rational))
+ log.PanicIf(err)
+ case TypeSignedLong:
+ ed, err = ve.encodeSignedLongs(value.([]int32))
+ log.PanicIf(err)
+ case TypeSignedRational:
+ ed, err = ve.encodeSignedRationals(value.([]SignedRational))
+ log.PanicIf(err)
+ default:
+ log.Panicf("value not encodable (with type): %v [%v]", tt, value)
+ }
+
+ return ed, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/utility.go b/vendor/github.com/dsoprea/go-exif/utility.go
new file mode 100644
index 000000000..3d1ea2489
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/utility.go
@@ -0,0 +1,222 @@
+package exif
+
+import (
+ "bytes"
+ "fmt"
+ "strconv"
+ "strings"
+ "time"
+
+ "github.com/dsoprea/go-logging"
+)
+
+func DumpBytes(data []byte) {
+ fmt.Printf("DUMP: ")
+ for _, x := range data {
+ fmt.Printf("%02x ", x)
+ }
+
+ fmt.Printf("\n")
+}
+
+func DumpBytesClause(data []byte) {
+ fmt.Printf("DUMP: ")
+
+ fmt.Printf("[]byte { ")
+
+ for i, x := range data {
+ fmt.Printf("0x%02x", x)
+
+ if i < len(data)-1 {
+ fmt.Printf(", ")
+ }
+ }
+
+ fmt.Printf(" }\n")
+}
+
+func DumpBytesToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteRune(' ')
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+func DumpBytesClauseToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("0x%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteString(", ")
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+// ParseExifFullTimestamp parses dates like "2018:11:30 13:01:49" into a UTC
+// `time.Time` struct.
+func ParseExifFullTimestamp(fullTimestampPhrase string) (timestamp time.Time, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ parts := strings.Split(fullTimestampPhrase, " ")
+ datestampValue, timestampValue := parts[0], parts[1]
+
+ dateParts := strings.Split(datestampValue, ":")
+
+ year, err := strconv.ParseUint(dateParts[0], 10, 16)
+ if err != nil {
+ log.Panicf("could not parse year")
+ }
+
+ month, err := strconv.ParseUint(dateParts[1], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse month")
+ }
+
+ day, err := strconv.ParseUint(dateParts[2], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse day")
+ }
+
+ timeParts := strings.Split(timestampValue, ":")
+
+ hour, err := strconv.ParseUint(timeParts[0], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse hour")
+ }
+
+ minute, err := strconv.ParseUint(timeParts[1], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse minute")
+ }
+
+ second, err := strconv.ParseUint(timeParts[2], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse second")
+ }
+
+ timestamp = time.Date(int(year), time.Month(month), int(day), int(hour), int(minute), int(second), 0, time.UTC)
+ return timestamp, nil
+}
+
+// ExifFullTimestampString produces a string like "2018:11:30 13:01:49" from a
+// `time.Time` struct. It will attempt to convert to UTC first.
+func ExifFullTimestampString(t time.Time) (fullTimestampPhrase string) {
+ t = t.UTC()
+
+ return fmt.Sprintf("%04d:%02d:%02d %02d:%02d:%02d", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second())
+}
+
+// ExifTag is one simple representation of a tag in a flat list of all of them.
+type ExifTag struct {
+ IfdPath string `json:"ifd_path"`
+
+ TagId uint16 `json:"id"`
+ TagName string `json:"name"`
+
+ TagTypeId TagTypePrimitive `json:"type_id"`
+ TagTypeName string `json:"type_name"`
+ Value interface{} `json:"value"`
+ ValueBytes []byte `json:"value_bytes"`
+
+ ChildIfdPath string `json:"child_ifd_path"`
+}
+
+// String returns a string representation.
+func (et ExifTag) String() string {
+ return fmt.Sprintf("ExifTag 0 {
+ var ifd *Ifd
+ ifd, q = q[0], q[1:]
+
+ ti := NewTagIndex()
+ for _, ite := range ifd.Entries {
+ tagName := ""
+
+ it, err := ti.Get(ifd.IfdPath, ite.TagId)
+ if err != nil {
+ // If it's a non-standard tag, just leave the name blank.
+ if log.Is(err, ErrTagNotFound) != true {
+ log.PanicIf(err)
+ }
+ } else {
+ tagName = it.Name
+ }
+
+ value, err := ifd.TagValue(ite)
+ if err != nil {
+ if err == ErrUnhandledUnknownTypedTag {
+ value = UnparseableUnknownTagValuePlaceholder
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ valueBytes, err := ifd.TagValueBytes(ite)
+ if err != nil && err != ErrUnhandledUnknownTypedTag {
+ log.Panic(err)
+ }
+
+ et := ExifTag{
+ IfdPath: ifd.IfdPath,
+ TagId: ite.TagId,
+ TagName: tagName,
+ TagTypeId: ite.TagType,
+ TagTypeName: TypeNames[ite.TagType],
+ Value: value,
+ ValueBytes: valueBytes,
+ ChildIfdPath: ite.ChildIfdPath,
+ }
+
+ exifTags = append(exifTags, et)
+ }
+
+ for _, childIfd := range ifd.Children {
+ q = append(q, childIfd)
+ }
+
+ if ifd.NextIfd != nil {
+ q = append(q, ifd.NextIfd)
+ }
+ }
+
+ return exifTags, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/.MODULE_ROOT b/vendor/github.com/dsoprea/go-exif/v2/.MODULE_ROOT
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/github.com/dsoprea/go-exif/v2/LICENSE b/vendor/github.com/dsoprea/go-exif/v2/LICENSE
new file mode 100644
index 000000000..0b9358a3a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/LICENSE
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright 2019 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/ifd.go b/vendor/github.com/dsoprea/go-exif/v2/common/ifd.go
new file mode 100644
index 000000000..9b93f04d9
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/ifd.go
@@ -0,0 +1,659 @@
+package exifcommon
+
+import (
+ "errors"
+ "fmt"
+ "strings"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ ifdLogger = log.NewLogger("exifcommon.ifd")
+)
+
+var (
+ ErrChildIfdNotMapped = errors.New("no child-IFD for that tag-ID under parent")
+)
+
+// MappedIfd is one node in the IFD-mapping.
+type MappedIfd struct {
+ ParentTagId uint16
+ Placement []uint16
+ Path []string
+
+ Name string
+ TagId uint16
+ Children map[uint16]*MappedIfd
+}
+
+// String returns a descriptive string.
+func (mi *MappedIfd) String() string {
+ pathPhrase := mi.PathPhrase()
+ return fmt.Sprintf("MappedIfd<(0x%04X) [%s] PATH=[%s]>", mi.TagId, mi.Name, pathPhrase)
+}
+
+// PathPhrase returns a non-fully-qualified IFD path.
+func (mi *MappedIfd) PathPhrase() string {
+ return strings.Join(mi.Path, "/")
+}
+
+// TODO(dustin): Refactor this to use IfdIdentity structs.
+
+// IfdMapping describes all of the IFDs that we currently recognize.
+type IfdMapping struct {
+ rootNode *MappedIfd
+}
+
+// NewIfdMapping returns a new IfdMapping struct.
+func NewIfdMapping() (ifdMapping *IfdMapping) {
+ rootNode := &MappedIfd{
+ Path: make([]string, 0),
+ Children: make(map[uint16]*MappedIfd),
+ }
+
+ return &IfdMapping{
+ rootNode: rootNode,
+ }
+}
+
+// NewIfdMappingWithStandard retruns a new IfdMapping struct preloaded with the
+// standard IFDs.
+func NewIfdMappingWithStandard() (ifdMapping *IfdMapping) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ im := NewIfdMapping()
+
+ err := LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ return im
+}
+
+// Get returns the node given the path slice.
+func (im *IfdMapping) Get(parentPlacement []uint16) (childIfd *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ptr := im.rootNode
+ for _, tagId := range parentPlacement {
+ if descendantPtr, found := ptr.Children[tagId]; found == false {
+ log.Panicf("ifd child with tag-ID (%04x) not registered: [%s]", tagId, ptr.PathPhrase())
+ } else {
+ ptr = descendantPtr
+ }
+ }
+
+ return ptr, nil
+}
+
+// GetWithPath returns the node given the path string.
+func (im *IfdMapping) GetWithPath(pathPhrase string) (mi *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if pathPhrase == "" {
+ log.Panicf("path-phrase is empty")
+ }
+
+ path := strings.Split(pathPhrase, "/")
+ ptr := im.rootNode
+
+ for _, name := range path {
+ var hit *MappedIfd
+ for _, mi := range ptr.Children {
+ if mi.Name == name {
+ hit = mi
+ break
+ }
+ }
+
+ if hit == nil {
+ log.Panicf("ifd child with name [%s] not registered: [%s]", name, ptr.PathPhrase())
+ }
+
+ ptr = hit
+ }
+
+ return ptr, nil
+}
+
+// GetChild is a convenience function to get the child path for a given parent
+// placement and child tag-ID.
+func (im *IfdMapping) GetChild(parentPathPhrase string, tagId uint16) (mi *MappedIfd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ mi, err = im.GetWithPath(parentPathPhrase)
+ log.PanicIf(err)
+
+ for _, childMi := range mi.Children {
+ if childMi.TagId == tagId {
+ return childMi, nil
+ }
+ }
+
+ // Whether or not an IFD is defined in data, such an IFD is not registered
+ // and would be unknown.
+ log.Panic(ErrChildIfdNotMapped)
+ return nil, nil
+}
+
+// IfdTagIdAndIndex represents a specific part of the IFD path.
+//
+// This is a legacy type.
+type IfdTagIdAndIndex struct {
+ Name string
+ TagId uint16
+ Index int
+}
+
+// String returns a descriptive string.
+func (itii IfdTagIdAndIndex) String() string {
+ return fmt.Sprintf("IfdTagIdAndIndex", itii.Name, itii.TagId, itii.Index)
+}
+
+// ResolvePath takes a list of names, which can also be suffixed with indices
+// (to identify the second, third, etc.. sibling IFD) and returns a list of
+// tag-IDs and those indices.
+//
+// Example:
+//
+// - IFD/Exif/Iop
+// - IFD0/Exif/Iop
+//
+// This is the only call that supports adding the numeric indices.
+func (im *IfdMapping) ResolvePath(pathPhrase string) (lineage []IfdTagIdAndIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ pathPhrase = strings.TrimSpace(pathPhrase)
+
+ if pathPhrase == "" {
+ log.Panicf("can not resolve empty path-phrase")
+ }
+
+ path := strings.Split(pathPhrase, "/")
+ lineage = make([]IfdTagIdAndIndex, len(path))
+
+ ptr := im.rootNode
+ empty := IfdTagIdAndIndex{}
+ for i, name := range path {
+ indexByte := name[len(name)-1]
+ index := 0
+ if indexByte >= '0' && indexByte <= '9' {
+ index = int(indexByte - '0')
+ name = name[:len(name)-1]
+ }
+
+ itii := IfdTagIdAndIndex{}
+ for _, mi := range ptr.Children {
+ if mi.Name != name {
+ continue
+ }
+
+ itii.Name = name
+ itii.TagId = mi.TagId
+ itii.Index = index
+
+ ptr = mi
+
+ break
+ }
+
+ if itii == empty {
+ log.Panicf("ifd child with name [%s] not registered: [%s]", name, pathPhrase)
+ }
+
+ lineage[i] = itii
+ }
+
+ return lineage, nil
+}
+
+// FqPathPhraseFromLineage returns the fully-qualified IFD path from the slice.
+func (im *IfdMapping) FqPathPhraseFromLineage(lineage []IfdTagIdAndIndex) (fqPathPhrase string) {
+ fqPathParts := make([]string, len(lineage))
+ for i, itii := range lineage {
+ if itii.Index > 0 {
+ fqPathParts[i] = fmt.Sprintf("%s%d", itii.Name, itii.Index)
+ } else {
+ fqPathParts[i] = itii.Name
+ }
+ }
+
+ return strings.Join(fqPathParts, "/")
+}
+
+// PathPhraseFromLineage returns the non-fully-qualified IFD path from the
+// slice.
+func (im *IfdMapping) PathPhraseFromLineage(lineage []IfdTagIdAndIndex) (pathPhrase string) {
+ pathParts := make([]string, len(lineage))
+ for i, itii := range lineage {
+ pathParts[i] = itii.Name
+ }
+
+ return strings.Join(pathParts, "/")
+}
+
+// StripPathPhraseIndices returns a non-fully-qualified path-phrase (no
+// indices).
+func (im *IfdMapping) StripPathPhraseIndices(pathPhrase string) (strippedPathPhrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ lineage, err := im.ResolvePath(pathPhrase)
+ log.PanicIf(err)
+
+ strippedPathPhrase = im.PathPhraseFromLineage(lineage)
+ return strippedPathPhrase, nil
+}
+
+// Add puts the given IFD at the given position of the tree. The position of the
+// tree is referred to as the placement and is represented by a set of tag-IDs,
+// where the leftmost is the root tag and the tags going to the right are
+// progressive descendants.
+func (im *IfdMapping) Add(parentPlacement []uint16, tagId uint16, name string) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! It would be nicer to provide a list of names in the placement rather than tag-IDs.
+
+ ptr, err := im.Get(parentPlacement)
+ log.PanicIf(err)
+
+ path := make([]string, len(parentPlacement)+1)
+ if len(parentPlacement) > 0 {
+ copy(path, ptr.Path)
+ }
+
+ path[len(path)-1] = name
+
+ placement := make([]uint16, len(parentPlacement)+1)
+ if len(placement) > 0 {
+ copy(placement, ptr.Placement)
+ }
+
+ placement[len(placement)-1] = tagId
+
+ childIfd := &MappedIfd{
+ ParentTagId: ptr.TagId,
+ Path: path,
+ Placement: placement,
+ Name: name,
+ TagId: tagId,
+ Children: make(map[uint16]*MappedIfd),
+ }
+
+ if _, found := ptr.Children[tagId]; found == true {
+ log.Panicf("child IFD with tag-ID (%04x) already registered under IFD [%s] with tag-ID (%04x)", tagId, ptr.Name, ptr.TagId)
+ }
+
+ ptr.Children[tagId] = childIfd
+
+ return nil
+}
+
+func (im *IfdMapping) dumpLineages(stack []*MappedIfd, input []string) (output []string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ currentIfd := stack[len(stack)-1]
+
+ output = input
+ for _, childIfd := range currentIfd.Children {
+ stackCopy := make([]*MappedIfd, len(stack)+1)
+
+ copy(stackCopy, stack)
+ stackCopy[len(stack)] = childIfd
+
+ // Add to output, but don't include the obligatory root node.
+ parts := make([]string, len(stackCopy)-1)
+ for i, mi := range stackCopy[1:] {
+ parts[i] = mi.Name
+ }
+
+ output = append(output, strings.Join(parts, "/"))
+
+ output, err = im.dumpLineages(stackCopy, output)
+ log.PanicIf(err)
+ }
+
+ return output, nil
+}
+
+// DumpLineages returns a slice of strings representing all mappings.
+func (im *IfdMapping) DumpLineages() (output []string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ stack := []*MappedIfd{im.rootNode}
+ output = make([]string, 0)
+
+ output, err = im.dumpLineages(stack, output)
+ log.PanicIf(err)
+
+ return output, nil
+}
+
+// LoadStandardIfds loads the standard IFDs into the mapping.
+func LoadStandardIfds(im *IfdMapping) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = im.Add(
+ []uint16{},
+ IfdStandardIfdIdentity.TagId(), IfdStandardIfdIdentity.Name())
+
+ log.PanicIf(err)
+
+ err = im.Add(
+ []uint16{IfdStandardIfdIdentity.TagId()},
+ IfdExifStandardIfdIdentity.TagId(), IfdExifStandardIfdIdentity.Name())
+
+ log.PanicIf(err)
+
+ err = im.Add(
+ []uint16{IfdStandardIfdIdentity.TagId(), IfdExifStandardIfdIdentity.TagId()},
+ IfdExifIopStandardIfdIdentity.TagId(), IfdExifIopStandardIfdIdentity.Name())
+
+ log.PanicIf(err)
+
+ err = im.Add(
+ []uint16{IfdStandardIfdIdentity.TagId()},
+ IfdGpsInfoStandardIfdIdentity.TagId(), IfdGpsInfoStandardIfdIdentity.Name())
+
+ log.PanicIf(err)
+
+ return nil
+}
+
+// IfdTag describes a single IFD tag and its parent (if any).
+type IfdTag struct {
+ parentIfdTag *IfdTag
+ tagId uint16
+ name string
+}
+
+func NewIfdTag(parentIfdTag *IfdTag, tagId uint16, name string) IfdTag {
+ return IfdTag{
+ parentIfdTag: parentIfdTag,
+ tagId: tagId,
+ name: name,
+ }
+}
+
+// ParentIfd returns the IfdTag of this IFD's parent.
+func (it IfdTag) ParentIfd() *IfdTag {
+ return it.parentIfdTag
+}
+
+// TagId returns the tag-ID of this IFD.
+func (it IfdTag) TagId() uint16 {
+ return it.tagId
+}
+
+// Name returns the simple name of this IFD.
+func (it IfdTag) Name() string {
+ return it.name
+}
+
+// String returns a descriptive string.
+func (it IfdTag) String() string {
+ parentIfdPhrase := ""
+ if it.parentIfdTag != nil {
+ parentIfdPhrase = fmt.Sprintf(" PARENT=(0x%04x)[%s]", it.parentIfdTag.tagId, it.parentIfdTag.name)
+ }
+
+ return fmt.Sprintf("IfdTag", it.tagId, it.name, parentIfdPhrase)
+}
+
+var (
+ // rootStandardIfd is the standard root IFD.
+ rootStandardIfd = NewIfdTag(nil, 0x0000, "IFD") // IFD
+
+ // exifStandardIfd is the standard "Exif" IFD.
+ exifStandardIfd = NewIfdTag(&rootStandardIfd, 0x8769, "Exif") // IFD/Exif
+
+ // iopStandardIfd is the standard "Iop" IFD.
+ iopStandardIfd = NewIfdTag(&exifStandardIfd, 0xA005, "Iop") // IFD/Exif/Iop
+
+ // gpsInfoStandardIfd is the standard "GPS" IFD.
+ gpsInfoStandardIfd = NewIfdTag(&rootStandardIfd, 0x8825, "GPSInfo") // IFD/GPSInfo
+)
+
+// IfdIdentityPart represents one component in an IFD path.
+type IfdIdentityPart struct {
+ Name string
+ Index int
+}
+
+// String returns a fully-qualified IFD path.
+func (iip IfdIdentityPart) String() string {
+ if iip.Index > 0 {
+ return fmt.Sprintf("%s%d", iip.Name, iip.Index)
+ } else {
+ return iip.Name
+ }
+}
+
+// UnindexedString returned a non-fully-qualified IFD path.
+func (iip IfdIdentityPart) UnindexedString() string {
+ return iip.Name
+}
+
+// IfdIdentity represents a single IFD path and provides access to various
+// information and representations.
+//
+// Only global instances can be used for equality checks.
+type IfdIdentity struct {
+ ifdTag IfdTag
+ parts []IfdIdentityPart
+ ifdPath string
+ fqIfdPath string
+}
+
+// NewIfdIdentity returns a new IfdIdentity struct.
+func NewIfdIdentity(ifdTag IfdTag, parts ...IfdIdentityPart) (ii *IfdIdentity) {
+ ii = &IfdIdentity{
+ ifdTag: ifdTag,
+ parts: parts,
+ }
+
+ ii.ifdPath = ii.getIfdPath()
+ ii.fqIfdPath = ii.getFqIfdPath()
+
+ return ii
+}
+
+// NewIfdIdentityFromString parses a string like "IFD/Exif" or "IFD1" or
+// something more exotic with custom IFDs ("SomeIFD4/SomeChildIFD6"). Note that
+// this will valid the unindexed IFD structure (because the standard tags from
+// the specification are unindexed), but not, obviously, any indices (e.g.
+// the numbers in "IFD0", "IFD1", "SomeIFD4/SomeChildIFD6"). It is
+// required for the caller to check whether these specific instances
+// were actually parsed out of the stream.
+func NewIfdIdentityFromString(im *IfdMapping, fqIfdPath string) (ii *IfdIdentity, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ lineage, err := im.ResolvePath(fqIfdPath)
+ log.PanicIf(err)
+
+ var lastIt *IfdTag
+ identityParts := make([]IfdIdentityPart, len(lineage))
+ for i, itii := range lineage {
+ // Build out the tag that will eventually point to the IFD represented
+ // by the right-most part in the IFD path.
+
+ it := &IfdTag{
+ parentIfdTag: lastIt,
+ tagId: itii.TagId,
+ name: itii.Name,
+ }
+
+ lastIt = it
+
+ // Create the next IfdIdentity part.
+
+ iip := IfdIdentityPart{
+ Name: itii.Name,
+ Index: itii.Index,
+ }
+
+ identityParts[i] = iip
+ }
+
+ ii = NewIfdIdentity(*lastIt, identityParts...)
+ return ii, nil
+}
+
+func (ii *IfdIdentity) getFqIfdPath() string {
+ partPhrases := make([]string, len(ii.parts))
+ for i, iip := range ii.parts {
+ partPhrases[i] = iip.String()
+ }
+
+ return strings.Join(partPhrases, "/")
+}
+
+func (ii *IfdIdentity) getIfdPath() string {
+ partPhrases := make([]string, len(ii.parts))
+ for i, iip := range ii.parts {
+ partPhrases[i] = iip.UnindexedString()
+ }
+
+ return strings.Join(partPhrases, "/")
+}
+
+// String returns a fully-qualified IFD path.
+func (ii *IfdIdentity) String() string {
+ return ii.fqIfdPath
+}
+
+// UnindexedString returns a non-fully-qualified IFD path.
+func (ii *IfdIdentity) UnindexedString() string {
+ return ii.ifdPath
+}
+
+// IfdTag returns the tag struct behind this IFD.
+func (ii *IfdIdentity) IfdTag() IfdTag {
+ return ii.ifdTag
+}
+
+// TagId returns the tag-ID of the IFD.
+func (ii *IfdIdentity) TagId() uint16 {
+ return ii.ifdTag.TagId()
+}
+
+// LeafPathPart returns the last right-most path-part, which represents the
+// current IFD.
+func (ii *IfdIdentity) LeafPathPart() IfdIdentityPart {
+ return ii.parts[len(ii.parts)-1]
+}
+
+// Name returns the simple name of this IFD.
+func (ii *IfdIdentity) Name() string {
+ return ii.LeafPathPart().Name
+}
+
+// Index returns the index of this IFD (more then one IFD under a parent IFD
+// will be numbered [0..n]).
+func (ii *IfdIdentity) Index() int {
+ return ii.LeafPathPart().Index
+}
+
+// Equals returns true if the two IfdIdentity instances are effectively
+// identical.
+//
+// Since there's no way to get a specific fully-qualified IFD path without a
+// certain slice of parts and all other fields are also derived from this,
+// checking that the fully-qualified IFD path is equals is sufficient.
+func (ii *IfdIdentity) Equals(ii2 *IfdIdentity) bool {
+ return ii.String() == ii2.String()
+}
+
+// NewChild creates an IfdIdentity for an IFD that is a child of the current
+// IFD.
+func (ii *IfdIdentity) NewChild(childIfdTag IfdTag, index int) (iiChild *IfdIdentity) {
+ if *childIfdTag.parentIfdTag != ii.ifdTag {
+ log.Panicf("can not add child; we are not the parent:\nUS=%v\nCHILD=%v", ii.ifdTag, childIfdTag)
+ }
+
+ childPart := IfdIdentityPart{childIfdTag.name, index}
+ childParts := append(ii.parts, childPart)
+
+ iiChild = NewIfdIdentity(childIfdTag, childParts...)
+ return iiChild
+}
+
+// NewSibling creates an IfdIdentity for an IFD that is a sibling to the current
+// one.
+func (ii *IfdIdentity) NewSibling(index int) (iiSibling *IfdIdentity) {
+ parts := make([]IfdIdentityPart, len(ii.parts))
+
+ copy(parts, ii.parts)
+ parts[len(parts)-1].Index = index
+
+ iiSibling = NewIfdIdentity(ii.ifdTag, parts...)
+ return iiSibling
+}
+
+var (
+ // IfdStandardIfdIdentity represents the IFD path for IFD0.
+ IfdStandardIfdIdentity = NewIfdIdentity(rootStandardIfd, IfdIdentityPart{"IFD", 0})
+
+ // IfdExifStandardIfdIdentity represents the IFD path for IFD0/Exif0.
+ IfdExifStandardIfdIdentity = IfdStandardIfdIdentity.NewChild(exifStandardIfd, 0)
+
+ // IfdExifIopStandardIfdIdentity represents the IFD path for IFD0/Exif0/Iop0.
+ IfdExifIopStandardIfdIdentity = IfdExifStandardIfdIdentity.NewChild(iopStandardIfd, 0)
+
+ // IfdGPSInfoStandardIfdIdentity represents the IFD path for IFD0/GPSInfo0.
+ IfdGpsInfoStandardIfdIdentity = IfdStandardIfdIdentity.NewChild(gpsInfoStandardIfd, 0)
+
+ // Ifd1StandardIfdIdentity represents the IFD path for IFD1.
+ Ifd1StandardIfdIdentity = NewIfdIdentity(rootStandardIfd, IfdIdentityPart{"IFD", 1})
+)
+
+var (
+ IfdPathStandard = IfdStandardIfdIdentity
+ IfdPathStandardExif = IfdExifStandardIfdIdentity
+ IfdPathStandardExifIop = IfdExifIopStandardIfdIdentity
+ IfdPathStandardGps = IfdGpsInfoStandardIfdIdentity
+)
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/parser.go b/vendor/github.com/dsoprea/go-exif/v2/common/parser.go
new file mode 100644
index 000000000..bbdd8f53a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/parser.go
@@ -0,0 +1,219 @@
+package exifcommon
+
+import (
+ "bytes"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ parserLogger = log.NewLogger("exifcommon.parser")
+)
+
+// Parser knows how to parse all well-defined, encoded EXIF types.
+type Parser struct {
+}
+
+// ParseBytesknows how to parse a byte-type value.
+func (p *Parser) ParseBytes(data []byte, unitCount uint32) (value []uint8, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeByte.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = []uint8(data[:count])
+
+ return value, nil
+}
+
+// ParseAscii returns a string and auto-strips the trailing NUL character that
+// should be at the end of the encoding.
+func (p *Parser) ParseAscii(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeAscii.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ if len(data) == 0 || data[count-1] != 0 {
+ s := string(data[:count])
+ parserLogger.Warningf(nil, "ascii not terminated with nul as expected: [%v]", s)
+
+ return s, nil
+ }
+
+ // Auto-strip the NUL from the end. It serves no purpose outside of
+ // encoding semantics.
+
+ return string(data[:count-1]), nil
+}
+
+// ParseAsciiNoNul returns a string without any consideration for a trailing NUL
+// character.
+func (p *Parser) ParseAsciiNoNul(data []byte, unitCount uint32) (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeAscii.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ return string(data[:count]), nil
+}
+
+// ParseShorts knows how to parse an encoded list of shorts.
+func (p *Parser) ParseShorts(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeShort.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]uint16, count)
+ for i := 0; i < count; i++ {
+ value[i] = byteOrder.Uint16(data[i*2:])
+ }
+
+ return value, nil
+}
+
+// ParseLongs knows how to encode an encoded list of unsigned longs.
+func (p *Parser) ParseLongs(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeLong.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]uint32, count)
+ for i := 0; i < count; i++ {
+ value[i] = byteOrder.Uint32(data[i*4:])
+ }
+
+ return value, nil
+}
+
+// ParseRationals knows how to parse an encoded list of unsigned rationals.
+func (p *Parser) ParseRationals(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeRational.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ value = make([]Rational, count)
+ for i := 0; i < count; i++ {
+ value[i].Numerator = byteOrder.Uint32(data[i*8:])
+ value[i].Denominator = byteOrder.Uint32(data[i*8+4:])
+ }
+
+ return value, nil
+}
+
+// ParseSignedLongs knows how to parse an encoded list of signed longs.
+func (p *Parser) ParseSignedLongs(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeSignedLong.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ b := bytes.NewBuffer(data)
+
+ value = make([]int32, count)
+ for i := 0; i < count; i++ {
+ err := binary.Read(b, byteOrder, &value[i])
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// ParseSignedRationals knows how to parse an encoded list of signed
+// rationals.
+func (p *Parser) ParseSignedRationals(data []byte, unitCount uint32, byteOrder binary.ByteOrder) (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ count := int(unitCount)
+
+ if len(data) < (TypeSignedRational.Size() * count) {
+ log.Panic(ErrNotEnoughData)
+ }
+
+ b := bytes.NewBuffer(data)
+
+ value = make([]SignedRational, count)
+ for i := 0; i < count; i++ {
+ err = binary.Read(b, byteOrder, &value[i].Numerator)
+ log.PanicIf(err)
+
+ err = binary.Read(b, byteOrder, &value[i].Denominator)
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/testing_common.go b/vendor/github.com/dsoprea/go-exif/v2/common/testing_common.go
new file mode 100644
index 000000000..f04fa22b6
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/testing_common.go
@@ -0,0 +1,88 @@
+package exifcommon
+
+import (
+ "os"
+ "path"
+
+ "encoding/binary"
+ "io/ioutil"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ moduleRootPath = ""
+
+ testExifData []byte = nil
+
+ // EncodeDefaultByteOrder is the default byte-order for encoding operations.
+ EncodeDefaultByteOrder = binary.BigEndian
+
+ // Default byte order for tests.
+ TestDefaultByteOrder = binary.BigEndian
+)
+
+func GetModuleRootPath() string {
+ if moduleRootPath == "" {
+ moduleRootPath = os.Getenv("EXIF_MODULE_ROOT_PATH")
+ if moduleRootPath != "" {
+ return moduleRootPath
+ }
+
+ currentWd, err := os.Getwd()
+ log.PanicIf(err)
+
+ currentPath := currentWd
+
+ visited := make([]string, 0)
+
+ for {
+ tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT")
+
+ _, err := os.Stat(tryStampFilepath)
+ if err != nil && os.IsNotExist(err) != true {
+ log.Panic(err)
+ } else if err == nil {
+ break
+ }
+
+ visited = append(visited, tryStampFilepath)
+
+ currentPath = path.Dir(currentPath)
+ if currentPath == "/" {
+ log.Panicf("could not find module-root: %v", visited)
+ }
+ }
+
+ moduleRootPath = currentPath
+ }
+
+ return moduleRootPath
+}
+
+func GetTestAssetsPath() string {
+ moduleRootPath := GetModuleRootPath()
+ assetsPath := path.Join(moduleRootPath, "assets")
+
+ return assetsPath
+}
+
+func getTestImageFilepath() string {
+ assetsPath := GetTestAssetsPath()
+ testImageFilepath := path.Join(assetsPath, "NDM_8901.jpg")
+ return testImageFilepath
+}
+
+func getTestExifData() []byte {
+ if testExifData == nil {
+ assetsPath := GetTestAssetsPath()
+ filepath := path.Join(assetsPath, "NDM_8901.jpg.exif")
+
+ var err error
+
+ testExifData, err = ioutil.ReadFile(filepath)
+ log.PanicIf(err)
+ }
+
+ return testExifData
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/type.go b/vendor/github.com/dsoprea/go-exif/v2/common/type.go
new file mode 100644
index 000000000..86b38d044
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/type.go
@@ -0,0 +1,452 @@
+package exifcommon
+
+import (
+ "errors"
+ "fmt"
+ "reflect"
+ "strconv"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ typeLogger = log.NewLogger("exif.type")
+)
+
+var (
+ // ErrNotEnoughData is used when there isn't enough data to accommodate what
+ // we're trying to parse (sizeof(type) * unit_count).
+ ErrNotEnoughData = errors.New("not enough data for type")
+
+ // ErrWrongType is used when we try to parse anything other than the
+ // current type.
+ ErrWrongType = errors.New("wrong type, can not parse")
+
+ // ErrUnhandledUndefinedTypedTag is used when we try to parse a tag that's
+ // recorded as an "unknown" type but not a documented tag (therefore
+ // leaving us not knowning how to read it).
+ ErrUnhandledUndefinedTypedTag = errors.New("not a standard unknown-typed tag")
+)
+
+// TagTypePrimitive is a type-alias that let's us easily lookup type properties.
+type TagTypePrimitive uint16
+
+const (
+ // TypeByte describes an encoded list of bytes.
+ TypeByte TagTypePrimitive = 1
+
+ // TypeAscii describes an encoded list of characters that is terminated
+ // with a NUL in its encoded form.
+ TypeAscii TagTypePrimitive = 2
+
+ // TypeShort describes an encoded list of shorts.
+ TypeShort TagTypePrimitive = 3
+
+ // TypeLong describes an encoded list of longs.
+ TypeLong TagTypePrimitive = 4
+
+ // TypeRational describes an encoded list of rationals.
+ TypeRational TagTypePrimitive = 5
+
+ // TypeUndefined describes an encoded value that has a complex/non-clearcut
+ // interpretation.
+ TypeUndefined TagTypePrimitive = 7
+
+ // We've seen type-8, but have no documentation on it.
+
+ // TypeSignedLong describes an encoded list of signed longs.
+ TypeSignedLong TagTypePrimitive = 9
+
+ // TypeSignedRational describes an encoded list of signed rationals.
+ TypeSignedRational TagTypePrimitive = 10
+
+ // TypeAsciiNoNul is just a pseudo-type, for our own purposes.
+ TypeAsciiNoNul TagTypePrimitive = 0xf0
+)
+
+// String returns the name of the type
+func (typeType TagTypePrimitive) String() string {
+ return TypeNames[typeType]
+}
+
+// Size returns the size of one atomic unit of the type.
+func (tagType TagTypePrimitive) Size() int {
+ if tagType == TypeByte {
+ return 1
+ } else if tagType == TypeAscii || tagType == TypeAsciiNoNul {
+ return 1
+ } else if tagType == TypeShort {
+ return 2
+ } else if tagType == TypeLong {
+ return 4
+ } else if tagType == TypeRational {
+ return 8
+ } else if tagType == TypeSignedLong {
+ return 4
+ } else if tagType == TypeSignedRational {
+ return 8
+ } else {
+ log.Panicf("can not determine tag-value size for type (%d): [%s]", tagType, TypeNames[tagType])
+
+ // Never called.
+ return 0
+ }
+}
+
+// IsValid returns true if tagType is a valid type.
+func (tagType TagTypePrimitive) IsValid() bool {
+
+ // TODO(dustin): Add test
+
+ return tagType == TypeByte ||
+ tagType == TypeAscii ||
+ tagType == TypeAsciiNoNul ||
+ tagType == TypeShort ||
+ tagType == TypeLong ||
+ tagType == TypeRational ||
+ tagType == TypeSignedLong ||
+ tagType == TypeSignedRational ||
+ tagType == TypeUndefined
+}
+
+var (
+ // TODO(dustin): Rename TypeNames() to typeNames() and add getter.
+ TypeNames = map[TagTypePrimitive]string{
+ TypeByte: "BYTE",
+ TypeAscii: "ASCII",
+ TypeShort: "SHORT",
+ TypeLong: "LONG",
+ TypeRational: "RATIONAL",
+ TypeUndefined: "UNDEFINED",
+ TypeSignedLong: "SLONG",
+ TypeSignedRational: "SRATIONAL",
+
+ TypeAsciiNoNul: "_ASCII_NO_NUL",
+ }
+
+ typeNamesR = map[string]TagTypePrimitive{}
+)
+
+// Rational describes an unsigned rational value.
+type Rational struct {
+ // Numerator is the numerator of the rational value.
+ Numerator uint32
+
+ // Denominator is the numerator of the rational value.
+ Denominator uint32
+}
+
+// SignedRational describes a signed rational value.
+type SignedRational struct {
+ // Numerator is the numerator of the rational value.
+ Numerator int32
+
+ // Denominator is the numerator of the rational value.
+ Denominator int32
+}
+
+// Format returns a stringified value for the given encoding. Automatically
+// parses. Automatically calculates count based on type size. This function
+// also supports undefined-type values (the ones that we support, anyway) by
+// way of the String() method that they all require. We can't be more specific
+// because we're a base package and we can't refer to it.
+func FormatFromType(value interface{}, justFirst bool) (phrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test
+
+ switch t := value.(type) {
+ case []byte:
+ return DumpBytesToString(t), nil
+ case string:
+ return t, nil
+ case []uint16:
+ if len(t) == 0 {
+ return "", nil
+ }
+
+ if justFirst == true {
+ var valueSuffix string
+ if len(t) > 1 {
+ valueSuffix = "..."
+ }
+
+ return fmt.Sprintf("%v%s", t[0], valueSuffix), nil
+ }
+
+ return fmt.Sprintf("%v", t), nil
+ case []uint32:
+ if len(t) == 0 {
+ return "", nil
+ }
+
+ if justFirst == true {
+ var valueSuffix string
+ if len(t) > 1 {
+ valueSuffix = "..."
+ }
+
+ return fmt.Sprintf("%v%s", t[0], valueSuffix), nil
+ }
+
+ return fmt.Sprintf("%v", t), nil
+ case []Rational:
+ if len(t) == 0 {
+ return "", nil
+ }
+
+ parts := make([]string, len(t))
+ for i, r := range t {
+ parts[i] = fmt.Sprintf("%d/%d", r.Numerator, r.Denominator)
+
+ if justFirst == true {
+ break
+ }
+ }
+
+ if justFirst == true {
+ var valueSuffix string
+ if len(t) > 1 {
+ valueSuffix = "..."
+ }
+
+ return fmt.Sprintf("%v%s", parts[0], valueSuffix), nil
+ }
+
+ return fmt.Sprintf("%v", parts), nil
+ case []int32:
+ if len(t) == 0 {
+ return "", nil
+ }
+
+ if justFirst == true {
+ var valueSuffix string
+ if len(t) > 1 {
+ valueSuffix = "..."
+ }
+
+ return fmt.Sprintf("%v%s", t[0], valueSuffix), nil
+ }
+
+ return fmt.Sprintf("%v", t), nil
+ case []SignedRational:
+ if len(t) == 0 {
+ return "", nil
+ }
+
+ parts := make([]string, len(t))
+ for i, r := range t {
+ parts[i] = fmt.Sprintf("%d/%d", r.Numerator, r.Denominator)
+
+ if justFirst == true {
+ break
+ }
+ }
+
+ if justFirst == true {
+ var valueSuffix string
+ if len(t) > 1 {
+ valueSuffix = "..."
+ }
+
+ return fmt.Sprintf("%v%s", parts[0], valueSuffix), nil
+ }
+
+ return fmt.Sprintf("%v", parts), nil
+ case fmt.Stringer:
+ // An undefined value that is documented (or that we otherwise support).
+ return t.String(), nil
+ default:
+ // Affects only "unknown" values, in general.
+ log.Panicf("type can not be formatted into string: %v", reflect.TypeOf(value).Name())
+
+ // Never called.
+ return "", nil
+ }
+}
+
+// Format returns a stringified value for the given encoding. Automatically
+// parses. Automatically calculates count based on type size.
+func FormatFromBytes(rawBytes []byte, tagType TagTypePrimitive, justFirst bool, byteOrder binary.ByteOrder) (phrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test
+
+ typeSize := tagType.Size()
+
+ if len(rawBytes)%typeSize != 0 {
+ log.Panicf("byte-count (%d) does not align for [%s] type with a size of (%d) bytes", len(rawBytes), TypeNames[tagType], typeSize)
+ }
+
+ // unitCount is the calculated unit-count. This should equal the original
+ // value from the tag (pre-resolution).
+ unitCount := uint32(len(rawBytes) / typeSize)
+
+ // Truncate the items if it's not bytes or a string and we just want the first.
+
+ var value interface{}
+
+ switch tagType {
+ case TypeByte:
+ var err error
+
+ value, err = parser.ParseBytes(rawBytes, unitCount)
+ log.PanicIf(err)
+ case TypeAscii:
+ var err error
+
+ value, err = parser.ParseAscii(rawBytes, unitCount)
+ log.PanicIf(err)
+ case TypeAsciiNoNul:
+ var err error
+
+ value, err = parser.ParseAsciiNoNul(rawBytes, unitCount)
+ log.PanicIf(err)
+ case TypeShort:
+ var err error
+
+ value, err = parser.ParseShorts(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+ case TypeLong:
+ var err error
+
+ value, err = parser.ParseLongs(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+ case TypeRational:
+ var err error
+
+ value, err = parser.ParseRationals(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+ case TypeSignedLong:
+ var err error
+
+ value, err = parser.ParseSignedLongs(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+ case TypeSignedRational:
+ var err error
+
+ value, err = parser.ParseSignedRationals(rawBytes, unitCount, byteOrder)
+ log.PanicIf(err)
+ default:
+ // Affects only "unknown" values, in general.
+ log.Panicf("value of type [%s] can not be formatted into string", tagType.String())
+
+ // Never called.
+ return "", nil
+ }
+
+ phrase, err = FormatFromType(value, justFirst)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+// TranslateStringToType converts user-provided strings to properly-typed
+// values. If a string, returns a string. Else, assumes that it's a single
+// number. If a list needs to be processed, it is the caller's responsibility to
+// split it (according to whichever convention has been established).
+func TranslateStringToType(tagType TagTypePrimitive, valueString string) (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if tagType == TypeUndefined {
+ // The caller should just call String() on the decoded type.
+ log.Panicf("undefined-type values are not supported")
+ }
+
+ if tagType == TypeByte {
+ wide, err := strconv.ParseInt(valueString, 16, 8)
+ log.PanicIf(err)
+
+ return byte(wide), nil
+ } else if tagType == TypeAscii || tagType == TypeAsciiNoNul {
+ // Whether or not we're putting an NUL on the end is only relevant for
+ // byte-level encoding. This function really just supports a user
+ // interface.
+
+ return valueString, nil
+ } else if tagType == TypeShort {
+ n, err := strconv.ParseUint(valueString, 10, 16)
+ log.PanicIf(err)
+
+ return uint16(n), nil
+ } else if tagType == TypeLong {
+ n, err := strconv.ParseUint(valueString, 10, 32)
+ log.PanicIf(err)
+
+ return uint32(n), nil
+ } else if tagType == TypeRational {
+ parts := strings.SplitN(valueString, "/", 2)
+
+ numerator, err := strconv.ParseUint(parts[0], 10, 32)
+ log.PanicIf(err)
+
+ denominator, err := strconv.ParseUint(parts[1], 10, 32)
+ log.PanicIf(err)
+
+ return Rational{
+ Numerator: uint32(numerator),
+ Denominator: uint32(denominator),
+ }, nil
+ } else if tagType == TypeSignedLong {
+ n, err := strconv.ParseInt(valueString, 10, 32)
+ log.PanicIf(err)
+
+ return int32(n), nil
+ } else if tagType == TypeSignedRational {
+ parts := strings.SplitN(valueString, "/", 2)
+
+ numerator, err := strconv.ParseInt(parts[0], 10, 32)
+ log.PanicIf(err)
+
+ denominator, err := strconv.ParseInt(parts[1], 10, 32)
+ log.PanicIf(err)
+
+ return SignedRational{
+ Numerator: int32(numerator),
+ Denominator: int32(denominator),
+ }, nil
+ }
+
+ log.Panicf("from-string encoding for type not supported; this shouldn't happen: [%s]", tagType.String())
+ return nil, nil
+}
+
+// GetTypeByName returns the `TagTypePrimitive` for the given type name.
+// Returns (0) if not valid.
+func GetTypeByName(typeName string) (tagType TagTypePrimitive, found bool) {
+ tagType, found = typeNamesR[typeName]
+ return tagType, found
+}
+
+// BasicTag describes a single tag for any purpose.
+type BasicTag struct {
+ // FqIfdPath is the fully-qualified IFD-path.
+ FqIfdPath string
+
+ // IfdPath is the unindexed IFD-path.
+ IfdPath string
+
+ // TagId is the tag-ID.
+ TagId uint16
+}
+
+func init() {
+ for typeId, typeName := range TypeNames {
+ typeNamesR[typeName] = typeId
+ }
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/utility.go b/vendor/github.com/dsoprea/go-exif/v2/common/utility.go
new file mode 100644
index 000000000..65165bf02
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/utility.go
@@ -0,0 +1,79 @@
+package exifcommon
+
+import (
+ "bytes"
+ "fmt"
+ "time"
+
+ "github.com/dsoprea/go-logging"
+)
+
+// DumpBytes prints a list of hex-encoded bytes.
+func DumpBytes(data []byte) {
+ fmt.Printf("DUMP: ")
+ for _, x := range data {
+ fmt.Printf("%02x ", x)
+ }
+
+ fmt.Printf("\n")
+}
+
+// DumpBytesClause prints a list like DumpBytes(), but encapsulated in
+// "[]byte { ... }".
+func DumpBytesClause(data []byte) {
+ fmt.Printf("DUMP: ")
+
+ fmt.Printf("[]byte { ")
+
+ for i, x := range data {
+ fmt.Printf("0x%02x", x)
+
+ if i < len(data)-1 {
+ fmt.Printf(", ")
+ }
+ }
+
+ fmt.Printf(" }\n")
+}
+
+// DumpBytesToString returns a stringified list of hex-encoded bytes.
+func DumpBytesToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteRune(' ')
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+// DumpBytesClauseToString returns a comma-separated list of hex-encoded bytes.
+func DumpBytesClauseToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("0x%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteString(", ")
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+// ExifFullTimestampString produces a string like "2018:11:30 13:01:49" from a
+// `time.Time` struct. It will attempt to convert to UTC first.
+func ExifFullTimestampString(t time.Time) (fullTimestampPhrase string) {
+ t = t.UTC()
+
+ return fmt.Sprintf("%04d:%02d:%02d %02d:%02d:%02d", t.Year(), t.Month(), t.Day(), t.Hour(), t.Minute(), t.Second())
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/value_context.go b/vendor/github.com/dsoprea/go-exif/v2/common/value_context.go
new file mode 100644
index 000000000..feb078ccf
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/value_context.go
@@ -0,0 +1,412 @@
+package exifcommon
+
+import (
+ "errors"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ parser *Parser
+)
+
+var (
+ // ErrNotFarValue indicates that an offset-based lookup was attempted for a
+ // non-offset-based (embedded) value.
+ ErrNotFarValue = errors.New("not a far value")
+)
+
+// ValueContext embeds all of the parameters required to find and extract the
+// actual tag value.
+type ValueContext struct {
+ unitCount uint32
+ valueOffset uint32
+ rawValueOffset []byte
+ addressableData []byte
+
+ tagType TagTypePrimitive
+ byteOrder binary.ByteOrder
+
+ // undefinedValueTagType is the effective type to use if this is an
+ // "undefined" value.
+ undefinedValueTagType TagTypePrimitive
+
+ ifdPath string
+ tagId uint16
+}
+
+// TODO(dustin): We can update newValueContext() to derive `valueOffset` itself (from `rawValueOffset`).
+
+// NewValueContext returns a new ValueContext struct.
+func NewValueContext(ifdPath string, tagId uint16, unitCount, valueOffset uint32, rawValueOffset, addressableData []byte, tagType TagTypePrimitive, byteOrder binary.ByteOrder) *ValueContext {
+ return &ValueContext{
+ unitCount: unitCount,
+ valueOffset: valueOffset,
+ rawValueOffset: rawValueOffset,
+ addressableData: addressableData,
+
+ tagType: tagType,
+ byteOrder: byteOrder,
+
+ ifdPath: ifdPath,
+ tagId: tagId,
+ }
+}
+
+// SetUndefinedValueType sets the effective type if this is an unknown-type tag.
+func (vc *ValueContext) SetUndefinedValueType(tagType TagTypePrimitive) {
+ if vc.tagType != TypeUndefined {
+ log.Panicf("can not set effective type for unknown-type tag because this is *not* an unknown-type tag")
+ }
+
+ vc.undefinedValueTagType = tagType
+}
+
+// UnitCount returns the embedded unit-count.
+func (vc *ValueContext) UnitCount() uint32 {
+ return vc.unitCount
+}
+
+// ValueOffset returns the value-offset decoded as a `uint32`.
+func (vc *ValueContext) ValueOffset() uint32 {
+ return vc.valueOffset
+}
+
+// RawValueOffset returns the uninterpreted value-offset. This is used for
+// embedded values (values small enough to fit within the offset bytes rather
+// than needing to be stored elsewhere and referred to by an actual offset).
+func (vc *ValueContext) RawValueOffset() []byte {
+ return vc.rawValueOffset
+}
+
+// AddressableData returns the block of data that we can dereference into.
+func (vc *ValueContext) AddressableData() []byte {
+ return vc.addressableData
+}
+
+// ByteOrder returns the byte-order of numbers.
+func (vc *ValueContext) ByteOrder() binary.ByteOrder {
+ return vc.byteOrder
+}
+
+// IfdPath returns the path of the IFD containing this tag.
+func (vc *ValueContext) IfdPath() string {
+ return vc.ifdPath
+}
+
+// TagId returns the ID of the tag that we represent.
+func (vc *ValueContext) TagId() uint16 {
+ return vc.tagId
+}
+
+// isEmbedded returns whether the value is embedded or a reference. This can't
+// be precalculated since the size is not defined for all types (namely the
+// "undefined" types).
+func (vc *ValueContext) isEmbedded() bool {
+ tagType := vc.effectiveValueType()
+
+ return (tagType.Size() * int(vc.unitCount)) <= 4
+}
+
+// SizeInBytes returns the number of bytes that this value requires. The
+// underlying call will panic if the type is UNDEFINED. It is the
+// responsibility of the caller to preemptively check that.
+func (vc *ValueContext) SizeInBytes() int {
+ tagType := vc.effectiveValueType()
+
+ return tagType.Size() * int(vc.unitCount)
+}
+
+// effectiveValueType returns the effective type of the unknown-type tag or, if
+// not unknown, the actual type.
+func (vc *ValueContext) effectiveValueType() (tagType TagTypePrimitive) {
+ if vc.tagType == TypeUndefined {
+ tagType = vc.undefinedValueTagType
+
+ if tagType == 0 {
+ log.Panicf("undefined-value type not set")
+ }
+ } else {
+ tagType = vc.tagType
+ }
+
+ return tagType
+}
+
+// readRawEncoded returns the encoded bytes for the value that we represent.
+func (vc *ValueContext) readRawEncoded() (rawBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagType := vc.effectiveValueType()
+
+ unitSizeRaw := uint32(tagType.Size())
+
+ if vc.isEmbedded() == true {
+ byteLength := unitSizeRaw * vc.unitCount
+ return vc.rawValueOffset[:byteLength], nil
+ }
+
+ return vc.addressableData[vc.valueOffset : vc.valueOffset+vc.unitCount*unitSizeRaw], nil
+}
+
+// GetFarOffset returns the offset if the value is not embedded [within the
+// pointer itself] or an error if an embedded value.
+func (vc *ValueContext) GetFarOffset() (offset uint32, err error) {
+ if vc.isEmbedded() == true {
+ return 0, ErrNotFarValue
+ }
+
+ return vc.valueOffset, nil
+}
+
+// ReadRawEncoded returns the encoded bytes for the value that we represent.
+func (vc *ValueContext) ReadRawEncoded() (rawBytes []byte, err error) {
+
+ // TODO(dustin): Remove this method and rename readRawEncoded in its place.
+
+ return vc.readRawEncoded()
+}
+
+// Format returns a string representation for the value.
+//
+// Where the type is not ASCII, `justFirst` indicates whether to just stringify
+// the first item in the slice (or return an empty string if the slice is
+// empty).
+//
+// Since this method lacks the information to process undefined-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (vc *ValueContext) Format() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawBytes, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ phrase, err := FormatFromBytes(rawBytes, vc.effectiveValueType(), false, vc.byteOrder)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+// FormatFirst is similar to `Format` but only gets and stringifies the first
+// item.
+func (vc *ValueContext) FormatFirst() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawBytes, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ phrase, err := FormatFromBytes(rawBytes, vc.tagType, true, vc.byteOrder)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+// ReadBytes parses the encoded byte-array from the value-context.
+func (vc *ValueContext) ReadBytes() (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseBytes(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadAscii parses the encoded NUL-terminated ASCII string from the value-
+// context.
+func (vc *ValueContext) ReadAscii() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseAscii(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadAsciiNoNul parses the non-NUL-terminated encoded ASCII string from the
+// value-context.
+func (vc *ValueContext) ReadAsciiNoNul() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseAsciiNoNul(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadShorts parses the list of encoded shorts from the value-context.
+func (vc *ValueContext) ReadShorts() (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseShorts(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadLongs parses the list of encoded, unsigned longs from the value-context.
+func (vc *ValueContext) ReadLongs() (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseLongs(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadRationals parses the list of encoded, unsigned rationals from the value-
+// context.
+func (vc *ValueContext) ReadRationals() (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseRationals(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadSignedLongs parses the list of encoded, signed longs from the value-context.
+func (vc *ValueContext) ReadSignedLongs() (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseSignedLongs(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// ReadSignedRationals parses the list of encoded, signed rationals from the
+// value-context.
+func (vc *ValueContext) ReadSignedRationals() (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseSignedRationals(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// Values knows how to resolve the given value. This value is always a list
+// (undefined-values aside), so we're named accordingly.
+//
+// Since this method lacks the information to process unknown-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (vc *ValueContext) Values() (values interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if vc.tagType == TypeByte {
+ values, err = vc.ReadBytes()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeAscii {
+ values, err = vc.ReadAscii()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeAsciiNoNul {
+ values, err = vc.ReadAsciiNoNul()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeShort {
+ values, err = vc.ReadShorts()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeLong {
+ values, err = vc.ReadLongs()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeRational {
+ values, err = vc.ReadRationals()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeSignedLong {
+ values, err = vc.ReadSignedLongs()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeSignedRational {
+ values, err = vc.ReadSignedRationals()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeUndefined {
+ log.Panicf("will not parse undefined-type value")
+
+ // Never called.
+ return nil, nil
+ } else {
+ log.Panicf("value of type [%s] is unparseable", vc.tagType)
+ // Never called.
+ return nil, nil
+ }
+
+ return values, nil
+}
+
+func init() {
+ parser = new(Parser)
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/common/value_encoder.go b/vendor/github.com/dsoprea/go-exif/v2/common/value_encoder.go
new file mode 100644
index 000000000..52e0eacfd
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/common/value_encoder.go
@@ -0,0 +1,229 @@
+package exifcommon
+
+import (
+ "bytes"
+ "reflect"
+ "time"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ typeEncodeLogger = log.NewLogger("exif.type_encode")
+)
+
+// EncodedData encapsulates the compound output of an encoding operation.
+type EncodedData struct {
+ Type TagTypePrimitive
+ Encoded []byte
+
+ // TODO(dustin): Is this really necessary? We might have this just to correlate to the incoming stream format (raw bytes and a unit-count both for incoming and outgoing).
+ UnitCount uint32
+}
+
+// ValueEncoder knows how to encode values of every type to bytes.
+type ValueEncoder struct {
+ byteOrder binary.ByteOrder
+}
+
+// NewValueEncoder returns a new ValueEncoder.
+func NewValueEncoder(byteOrder binary.ByteOrder) *ValueEncoder {
+ return &ValueEncoder{
+ byteOrder: byteOrder,
+ }
+}
+
+func (ve *ValueEncoder) encodeBytes(value []uint8) (ed EncodedData, err error) {
+ ed.Type = TypeByte
+ ed.Encoded = []byte(value)
+ ed.UnitCount = uint32(len(value))
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeAscii(value string) (ed EncodedData, err error) {
+ ed.Type = TypeAscii
+
+ ed.Encoded = []byte(value)
+ ed.Encoded = append(ed.Encoded, 0)
+
+ ed.UnitCount = uint32(len(ed.Encoded))
+
+ return ed, nil
+}
+
+// encodeAsciiNoNul returns a string encoded as a byte-string without a trailing
+// NUL byte.
+//
+// Note that:
+//
+// 1. This type can not be automatically encoded using `Encode()`. The default
+// mode is to encode *with* a trailing NUL byte using `encodeAscii`. Only
+// certain undefined-type tags using an unterminated ASCII string and these
+// are exceptional in nature.
+//
+// 2. The presence of this method allows us to completely test the complimentary
+// no-nul parser.
+//
+func (ve *ValueEncoder) encodeAsciiNoNul(value string) (ed EncodedData, err error) {
+ ed.Type = TypeAsciiNoNul
+ ed.Encoded = []byte(value)
+ ed.UnitCount = uint32(len(ed.Encoded))
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeShorts(value []uint16) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*2)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint16(ed.Encoded[i*2:(i+1)*2], value[i])
+ }
+
+ ed.Type = TypeShort
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeLongs(value []uint32) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*4)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint32(ed.Encoded[i*4:(i+1)*4], value[i])
+ }
+
+ ed.Type = TypeLong
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeRationals(value []Rational) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+ ed.Encoded = make([]byte, ed.UnitCount*8)
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ ve.byteOrder.PutUint32(ed.Encoded[i*8+0:i*8+4], value[i].Numerator)
+ ve.byteOrder.PutUint32(ed.Encoded[i*8+4:i*8+8], value[i].Denominator)
+ }
+
+ ed.Type = TypeRational
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeSignedLongs(value []int32) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+
+ b := bytes.NewBuffer(make([]byte, 0, 8*ed.UnitCount))
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ err := binary.Write(b, ve.byteOrder, value[i])
+ log.PanicIf(err)
+ }
+
+ ed.Type = TypeSignedLong
+ ed.Encoded = b.Bytes()
+
+ return ed, nil
+}
+
+func (ve *ValueEncoder) encodeSignedRationals(value []SignedRational) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ed.UnitCount = uint32(len(value))
+
+ b := bytes.NewBuffer(make([]byte, 0, 8*ed.UnitCount))
+
+ for i := uint32(0); i < ed.UnitCount; i++ {
+ err := binary.Write(b, ve.byteOrder, value[i].Numerator)
+ log.PanicIf(err)
+
+ err = binary.Write(b, ve.byteOrder, value[i].Denominator)
+ log.PanicIf(err)
+ }
+
+ ed.Type = TypeSignedRational
+ ed.Encoded = b.Bytes()
+
+ return ed, nil
+}
+
+// Encode returns bytes for the given value, infering type from the actual
+// value. This does not support `TypeAsciiNoNull` (all strings are encoded as
+// `TypeAscii`).
+func (ve *ValueEncoder) Encode(value interface{}) (ed EncodedData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ switch value.(type) {
+ case []byte:
+ ed, err = ve.encodeBytes(value.([]byte))
+ log.PanicIf(err)
+ case string:
+ ed, err = ve.encodeAscii(value.(string))
+ log.PanicIf(err)
+ case []uint16:
+ ed, err = ve.encodeShorts(value.([]uint16))
+ log.PanicIf(err)
+ case []uint32:
+ ed, err = ve.encodeLongs(value.([]uint32))
+ log.PanicIf(err)
+ case []Rational:
+ ed, err = ve.encodeRationals(value.([]Rational))
+ log.PanicIf(err)
+ case []int32:
+ ed, err = ve.encodeSignedLongs(value.([]int32))
+ log.PanicIf(err)
+ case []SignedRational:
+ ed, err = ve.encodeSignedRationals(value.([]SignedRational))
+ log.PanicIf(err)
+ case time.Time:
+ // For convenience, if the user doesn't want to deal with translation
+ // semantics with timestamps.
+
+ t := value.(time.Time)
+ s := ExifFullTimestampString(t)
+
+ ed, err = ve.encodeAscii(s)
+ log.PanicIf(err)
+ default:
+ log.Panicf("value not encodable: [%s] [%v]", reflect.TypeOf(value), value)
+ }
+
+ return ed, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/error.go b/vendor/github.com/dsoprea/go-exif/v2/error.go
new file mode 100644
index 000000000..2f00b08a4
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/error.go
@@ -0,0 +1,14 @@
+package exif
+
+import (
+ "errors"
+)
+
+var (
+ // ErrTagNotFound indicates that the tag was not found.
+ ErrTagNotFound = errors.New("tag not found")
+
+ // ErrTagNotKnown indicates that the tag is not registered with us as a
+ // known tag.
+ ErrTagNotKnown = errors.New("tag is not known")
+)
diff --git a/vendor/github.com/dsoprea/go-exif/v2/exif.go b/vendor/github.com/dsoprea/go-exif/v2/exif.go
new file mode 100644
index 000000000..20b723769
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/exif.go
@@ -0,0 +1,258 @@
+package exif
+
+import (
+ "bufio"
+ "bytes"
+ "errors"
+ "fmt"
+ "io"
+ "os"
+
+ "encoding/binary"
+ "io/ioutil"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+const (
+ // ExifAddressableAreaStart is the absolute offset in the file that all
+ // offsets are relative to.
+ ExifAddressableAreaStart = uint32(0x0)
+
+ // ExifDefaultFirstIfdOffset is essentially the number of bytes in addition
+ // to `ExifAddressableAreaStart` that you have to move in order to escape
+ // the rest of the header and get to the earliest point where we can put
+ // stuff (which has to be the first IFD). This is the size of the header
+ // sequence containing the two-character byte-order, two-character fixed-
+ // bytes, and the four bytes describing the first-IFD offset.
+ ExifDefaultFirstIfdOffset = uint32(2 + 2 + 4)
+)
+
+const (
+ // ExifSignatureLength is the number of bytes in the EXIF signature (which
+ // customarily includes the first IFD offset).
+ ExifSignatureLength = 8
+)
+
+var (
+ exifLogger = log.NewLogger("exif.exif")
+
+ ExifBigEndianSignature = [4]byte{'M', 'M', 0x00, 0x2a}
+ ExifLittleEndianSignature = [4]byte{'I', 'I', 0x2a, 0x00}
+)
+
+var (
+ ErrNoExif = errors.New("no exif data")
+ ErrExifHeaderError = errors.New("exif header error")
+)
+
+// SearchAndExtractExif searches for an EXIF blob in the byte-slice.
+func SearchAndExtractExif(data []byte) (rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ b := bytes.NewBuffer(data)
+
+ rawExif, err = SearchAndExtractExifWithReader(b)
+ if err != nil {
+ if err == ErrNoExif {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ return rawExif, nil
+}
+
+// SearchAndExtractExifWithReader searches for an EXIF blob using an
+// `io.Reader`. We can't know how much long the EXIF data is without parsing it,
+// so this will likely grab up a lot of the image-data, too.
+func SearchAndExtractExifWithReader(r io.Reader) (rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Search for the beginning of the EXIF information. The EXIF is near the
+ // beginning of most JPEGs, so this likely doesn't have a high cost (at
+ // least, again, with JPEGs).
+
+ br := bufio.NewReader(r)
+ discarded := 0
+
+ for {
+ window, err := br.Peek(ExifSignatureLength)
+ if err != nil {
+ if err == io.EOF {
+ return nil, ErrNoExif
+ }
+
+ log.Panic(err)
+ }
+
+ _, err = ParseExifHeader(window)
+ if err != nil {
+ if log.Is(err, ErrNoExif) == true {
+ // No EXIF. Move forward by one byte.
+
+ _, err := br.Discard(1)
+ log.PanicIf(err)
+
+ discarded++
+
+ continue
+ }
+
+ // Some other error.
+ log.Panic(err)
+ }
+
+ break
+ }
+
+ exifLogger.Debugf(nil, "Found EXIF blob (%d) bytes from initial position.", discarded)
+
+ rawExif, err = ioutil.ReadAll(br)
+ log.PanicIf(err)
+
+ return rawExif, nil
+}
+
+// SearchFileAndExtractExif returns a slice from the beginning of the EXIF data
+// to the end of the file (it's not practical to try and calculate where the
+// data actually ends).
+func SearchFileAndExtractExif(filepath string) (rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Open the file.
+
+ f, err := os.Open(filepath)
+ log.PanicIf(err)
+
+ defer f.Close()
+
+ rawExif, err = SearchAndExtractExifWithReader(f)
+ log.PanicIf(err)
+
+ return rawExif, nil
+}
+
+type ExifHeader struct {
+ ByteOrder binary.ByteOrder
+ FirstIfdOffset uint32
+}
+
+func (eh ExifHeader) String() string {
+ return fmt.Sprintf("ExifHeader", eh.ByteOrder, eh.FirstIfdOffset)
+}
+
+// ParseExifHeader parses the bytes at the very top of the header.
+//
+// This will panic with ErrNoExif on any data errors so that we can double as
+// an EXIF-detection routine.
+func ParseExifHeader(data []byte) (eh ExifHeader, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Good reference:
+ //
+ // CIPA DC-008-2016; JEITA CP-3451D
+ // -> http://www.cipa.jp/std/documents/e/DC-008-Translation-2016-E.pdf
+
+ if len(data) < ExifSignatureLength {
+ exifLogger.Warningf(nil, "Not enough data for EXIF header: (%d)", len(data))
+ return eh, ErrNoExif
+ }
+
+ if bytes.Equal(data[:4], ExifBigEndianSignature[:]) == true {
+ eh.ByteOrder = binary.BigEndian
+ } else if bytes.Equal(data[:4], ExifLittleEndianSignature[:]) == true {
+ eh.ByteOrder = binary.LittleEndian
+ } else {
+ return eh, ErrNoExif
+ }
+
+ eh.FirstIfdOffset = eh.ByteOrder.Uint32(data[4:8])
+
+ return eh, nil
+}
+
+// Visit recursively invokes a callback for every tag.
+func Visit(rootIfdIdentity *exifcommon.IfdIdentity, ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, exifData []byte, visitor TagVisitorFn) (eh ExifHeader, furthestOffset uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ eh, err = ParseExifHeader(exifData)
+ log.PanicIf(err)
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, exifData, eh.ByteOrder)
+
+ _, err = ie.Scan(rootIfdIdentity, eh.FirstIfdOffset, visitor)
+ log.PanicIf(err)
+
+ furthestOffset = ie.FurthestOffset()
+
+ return eh, furthestOffset, nil
+}
+
+// Collect recursively builds a static structure of all IFDs and tags.
+func Collect(ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, exifData []byte) (eh ExifHeader, index IfdIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ eh, err = ParseExifHeader(exifData)
+ log.PanicIf(err)
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, exifData, eh.ByteOrder)
+
+ index, err = ie.Collect(eh.FirstIfdOffset)
+ log.PanicIf(err)
+
+ return eh, index, nil
+}
+
+// BuildExifHeader constructs the bytes that go at the front of the stream.
+func BuildExifHeader(byteOrder binary.ByteOrder, firstIfdOffset uint32) (headerBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ b := new(bytes.Buffer)
+
+ var signatureBytes []byte
+ if byteOrder == binary.BigEndian {
+ signatureBytes = ExifBigEndianSignature[:]
+ } else {
+ signatureBytes = ExifLittleEndianSignature[:]
+ }
+
+ _, err = b.Write(signatureBytes)
+ log.PanicIf(err)
+
+ err = binary.Write(b, byteOrder, firstIfdOffset)
+ log.PanicIf(err)
+
+ return b.Bytes(), nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/go.mod b/vendor/github.com/dsoprea/go-exif/v2/go.mod
new file mode 100644
index 000000000..38b40fde8
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/go.mod
@@ -0,0 +1,15 @@
+module github.com/dsoprea/go-exif/v2
+
+go 1.13
+
+// Development only
+// replace github.com/dsoprea/go-logging => ../../go-logging
+
+require (
+ github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d
+ github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf // indirect
+ github.com/golang/geo v0.0.0-20200319012246-673a6f80352d
+ github.com/jessevdk/go-flags v1.4.0
+ golang.org/x/net v0.0.0-20200513185701-a91f0712d120 // indirect
+ gopkg.in/yaml.v2 v2.3.0
+)
diff --git a/vendor/github.com/dsoprea/go-exif/v2/go.sum b/vendor/github.com/dsoprea/go-exif/v2/go.sum
new file mode 100644
index 000000000..6fd800fd6
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/go.sum
@@ -0,0 +1,37 @@
+github.com/dsoprea/go-exif/v2 v2.0.0-20200321225314-640175a69fe4/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696 h1:VGFnZAcLwPpt1sHlAxml+pGLZz9A2s+K/s1YNhPC91Y=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696/go.mod h1:Nm/x2ZUNRW6Fe5C3LxdY1PyZY5wmDv/s5dkPJ/VB3iA=
+github.com/dsoprea/go-logging v0.0.0-20200502191043-ec333ec7635f h1:XM9MVftaUNA4CcjV97+4bSy7u9Ns04DEYbZkswUrRtc=
+github.com/dsoprea/go-logging v0.0.0-20200502191043-ec333ec7635f/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f h1:FonKAuW3PmNtqk9tOR+Z7bnyQHytmnZBCmm5z1PQMss=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d h1:F/7L5wr/fP/SKeO5HuMlNEX9Ipyx2MbH2rV9G4zJRpk=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf h1:/w4QxepU4AHh3AuO6/g8y/YIIHH5+aKP3Bj8sg5cqhU=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
+github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
+github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d h1:C/hKUcHT483btRbeGkrRjJz+Zbcj8audldIi9tRJDCc=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=
+github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120 h1:EZ3cVSzKOlJxAd8e8YAJ7no8nNypTxexh/YE/xW3ZEY=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
+gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/dsoprea/go-exif/v2/gps.go b/vendor/github.com/dsoprea/go-exif/v2/gps.go
new file mode 100644
index 000000000..d44ede1ad
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/gps.go
@@ -0,0 +1,117 @@
+package exif
+
+import (
+ "errors"
+ "fmt"
+ "time"
+
+ "github.com/dsoprea/go-logging"
+ "github.com/golang/geo/s2"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+var (
+ // ErrGpsCoordinatesNotValid means that some part of the geographic data was
+ // unparseable.
+ ErrGpsCoordinatesNotValid = errors.New("GPS coordinates not valid")
+)
+
+// GpsDegrees is a high-level struct representing geographic data.
+type GpsDegrees struct {
+ // Orientation describes the N/E/S/W direction that this position is
+ // relative to.
+ Orientation byte
+
+ // Degrees is a simple float representing the underlying rational degrees
+ // amount.
+ Degrees float64
+
+ // Minutes is a simple float representing the underlying rational minutes
+ // amount.
+ Minutes float64
+
+ // Seconds is a simple float representing the underlying ration seconds
+ // amount.
+ Seconds float64
+}
+
+// NewGpsDegreesFromRationals returns a GpsDegrees struct given the EXIF-encoded
+// information. The refValue is the N/E/S/W direction that this position is
+// relative to.
+func NewGpsDegreesFromRationals(refValue string, rawCoordinate []exifcommon.Rational) (gd GpsDegrees, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(rawCoordinate) != 3 {
+ log.Panicf("new GpsDegrees struct requires a raw-coordinate with exactly three rationals")
+ }
+
+ gd = GpsDegrees{
+ Orientation: refValue[0],
+ Degrees: float64(rawCoordinate[0].Numerator) / float64(rawCoordinate[0].Denominator),
+ Minutes: float64(rawCoordinate[1].Numerator) / float64(rawCoordinate[1].Denominator),
+ Seconds: float64(rawCoordinate[2].Numerator) / float64(rawCoordinate[2].Denominator),
+ }
+
+ return gd, nil
+}
+
+// String provides returns a descriptive string.
+func (d GpsDegrees) String() string {
+ return fmt.Sprintf("Degrees", string([]byte{d.Orientation}), d.Degrees, d.Minutes, d.Seconds)
+}
+
+// Decimal calculates and returns the simplified float representation of the
+// component degrees.
+func (d GpsDegrees) Decimal() float64 {
+ decimal := float64(d.Degrees) + float64(d.Minutes)/60.0 + float64(d.Seconds)/3600.0
+
+ if d.Orientation == 'S' || d.Orientation == 'W' {
+ return -decimal
+ }
+
+ return decimal
+}
+
+// Raw returns a Rational struct that can be used to *write* coordinates. In
+// practice, the denominator are typically (1) in the original EXIF data, and,
+// that being the case, this will best preserve precision.
+func (d GpsDegrees) Raw() []exifcommon.Rational {
+ return []exifcommon.Rational{
+ {Numerator: uint32(d.Degrees), Denominator: 1},
+ {Numerator: uint32(d.Minutes), Denominator: 1},
+ {Numerator: uint32(d.Seconds), Denominator: 1},
+ }
+}
+
+// GpsInfo encapsulates all of the geographic information in one place.
+type GpsInfo struct {
+ Latitude, Longitude GpsDegrees
+ Altitude int
+ Timestamp time.Time
+}
+
+// String returns a descriptive string.
+func (gi *GpsInfo) String() string {
+ return fmt.Sprintf("GpsInfo",
+ gi.Latitude.Decimal(), gi.Longitude.Decimal(), gi.Altitude, gi.Timestamp)
+}
+
+// S2CellId returns the cell-ID of the geographic location on the earth.
+func (gi *GpsInfo) S2CellId() s2.CellID {
+ latitude := gi.Latitude.Decimal()
+ longitude := gi.Longitude.Decimal()
+
+ ll := s2.LatLngFromDegrees(latitude, longitude)
+ cellId := s2.CellIDFromLatLng(ll)
+
+ if cellId.IsValid() == false {
+ panic(ErrGpsCoordinatesNotValid)
+ }
+
+ return cellId
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/ifd.go b/vendor/github.com/dsoprea/go-exif/v2/ifd.go
new file mode 100644
index 000000000..80872e624
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/ifd.go
@@ -0,0 +1,34 @@
+package exif
+
+import (
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+// TODO(dustin): This file now exists for backwards-compatibility only.
+
+// NewIfdMapping returns a new IfdMapping struct.
+func NewIfdMapping() (ifdMapping *exifcommon.IfdMapping) {
+ return exifcommon.NewIfdMapping()
+}
+
+// NewIfdMappingWithStandard retruns a new IfdMapping struct preloaded with the
+// standard IFDs.
+func NewIfdMappingWithStandard() (ifdMapping *exifcommon.IfdMapping) {
+ return exifcommon.NewIfdMappingWithStandard()
+}
+
+// LoadStandardIfds loads the standard IFDs into the mapping.
+func LoadStandardIfds(im *exifcommon.IfdMapping) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = exifcommon.LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/ifd_builder.go b/vendor/github.com/dsoprea/go-exif/v2/ifd_builder.go
new file mode 100644
index 000000000..64a09299c
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/ifd_builder.go
@@ -0,0 +1,1199 @@
+package exif
+
+// NOTES:
+//
+// The thumbnail offset and length tags shouldn't be set directly. Use the
+// (*IfdBuilder).SetThumbnail() method instead.
+
+import (
+ "errors"
+ "fmt"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+ "github.com/dsoprea/go-exif/v2/undefined"
+)
+
+var (
+ ifdBuilderLogger = log.NewLogger("exif.ifd_builder")
+)
+
+var (
+ ErrTagEntryNotFound = errors.New("tag entry not found")
+ ErrChildIbNotFound = errors.New("child IB not found")
+)
+
+type IfdBuilderTagValue struct {
+ valueBytes []byte
+ ib *IfdBuilder
+}
+
+func (ibtv IfdBuilderTagValue) String() string {
+ if ibtv.IsBytes() == true {
+ var valuePhrase string
+ if len(ibtv.valueBytes) <= 8 {
+ valuePhrase = fmt.Sprintf("%v", ibtv.valueBytes)
+ } else {
+ valuePhrase = fmt.Sprintf("%v...", ibtv.valueBytes[:8])
+ }
+
+ return fmt.Sprintf("IfdBuilderTagValue", valuePhrase, len(ibtv.valueBytes))
+ } else if ibtv.IsIb() == true {
+ return fmt.Sprintf("IfdBuilderTagValue", ibtv.ib)
+ } else {
+ log.Panicf("IBTV state undefined")
+ return ""
+ }
+}
+
+func NewIfdBuilderTagValueFromBytes(valueBytes []byte) *IfdBuilderTagValue {
+ return &IfdBuilderTagValue{
+ valueBytes: valueBytes,
+ }
+}
+
+func NewIfdBuilderTagValueFromIfdBuilder(ib *IfdBuilder) *IfdBuilderTagValue {
+ return &IfdBuilderTagValue{
+ ib: ib,
+ }
+}
+
+// IsBytes returns true if the bytes are populated. This is always the case
+// when we're loaded from a tag in an existing IFD.
+func (ibtv IfdBuilderTagValue) IsBytes() bool {
+ return ibtv.valueBytes != nil
+}
+
+func (ibtv IfdBuilderTagValue) Bytes() []byte {
+ if ibtv.IsBytes() == false {
+ log.Panicf("this tag is not a byte-slice value")
+ } else if ibtv.IsIb() == true {
+ log.Panicf("this tag is an IFD-builder value not a byte-slice")
+ }
+
+ return ibtv.valueBytes
+}
+
+func (ibtv IfdBuilderTagValue) IsIb() bool {
+ return ibtv.ib != nil
+}
+
+func (ibtv IfdBuilderTagValue) Ib() *IfdBuilder {
+ if ibtv.IsIb() == false {
+ log.Panicf("this tag is not an IFD-builder value")
+ } else if ibtv.IsBytes() == true {
+ log.Panicf("this tag is a byte-slice, not a IFD-builder")
+ }
+
+ return ibtv.ib
+}
+
+type BuilderTag struct {
+ // ifdPath is the path of the IFD that hosts this tag.
+ ifdPath string
+
+ tagId uint16
+ typeId exifcommon.TagTypePrimitive
+
+ // value is either a value that can be encoded, an IfdBuilder instance (for
+ // child IFDs), or an IfdTagEntry instance representing an existing,
+ // previously-stored tag.
+ value *IfdBuilderTagValue
+
+ // byteOrder is the byte order. It's chiefly/originally here to support
+ // printing the value.
+ byteOrder binary.ByteOrder
+}
+
+func NewBuilderTag(ifdPath string, tagId uint16, typeId exifcommon.TagTypePrimitive, value *IfdBuilderTagValue, byteOrder binary.ByteOrder) *BuilderTag {
+ return &BuilderTag{
+ ifdPath: ifdPath,
+ tagId: tagId,
+ typeId: typeId,
+ value: value,
+ byteOrder: byteOrder,
+ }
+}
+
+func NewChildIfdBuilderTag(ifdPath string, tagId uint16, value *IfdBuilderTagValue) *BuilderTag {
+ return &BuilderTag{
+ ifdPath: ifdPath,
+ tagId: tagId,
+ typeId: exifcommon.TypeLong,
+ value: value,
+ }
+}
+
+func (bt *BuilderTag) Value() (value *IfdBuilderTagValue) {
+ return bt.value
+}
+
+func (bt *BuilderTag) String() string {
+ var valueString string
+
+ if bt.value.IsBytes() == true {
+ var err error
+
+ valueString, err = exifcommon.FormatFromBytes(bt.value.Bytes(), bt.typeId, false, bt.byteOrder)
+ log.PanicIf(err)
+ } else {
+ valueString = fmt.Sprintf("%v", bt.value)
+ }
+
+ return fmt.Sprintf("BuilderTag", bt.ifdPath, bt.tagId, bt.typeId.String(), valueString)
+}
+
+func (bt *BuilderTag) SetValue(byteOrder binary.ByteOrder, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ var ed exifcommon.EncodedData
+ if bt.typeId == exifcommon.TypeUndefined {
+ encodeable := value.(exifundefined.EncodeableValue)
+
+ encoded, unitCount, err := exifundefined.Encode(encodeable, byteOrder)
+ log.PanicIf(err)
+
+ ed = exifcommon.EncodedData{
+ Type: exifcommon.TypeUndefined,
+ Encoded: encoded,
+ UnitCount: unitCount,
+ }
+ } else {
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ var err error
+
+ ed, err = ve.Encode(value)
+ log.PanicIf(err)
+ }
+
+ bt.value = NewIfdBuilderTagValueFromBytes(ed.Encoded)
+
+ return nil
+}
+
+// NewStandardBuilderTag constructs a `BuilderTag` instance. The type is looked
+// up. `ii` is the type of IFD that owns this tag.
+func NewStandardBuilderTag(ifdPath string, it *IndexedTag, byteOrder binary.ByteOrder, value interface{}) *BuilderTag {
+ // If there is more than one supported type, we'll go with the larger to
+ // encode with. It'll use the same amount of fixed-space, and we'll
+ // eliminate unnecessary overflows/issues.
+ tagType := it.GetEncodingType(value)
+
+ var rawBytes []byte
+ if it.DoesSupportType(exifcommon.TypeUndefined) == true {
+ encodeable := value.(exifundefined.EncodeableValue)
+
+ var err error
+
+ rawBytes, _, err = exifundefined.Encode(encodeable, byteOrder)
+ log.PanicIf(err)
+ } else {
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ ed, err := ve.Encode(value)
+ log.PanicIf(err)
+
+ rawBytes = ed.Encoded
+ }
+
+ tagValue := NewIfdBuilderTagValueFromBytes(rawBytes)
+
+ return NewBuilderTag(
+ ifdPath,
+ it.Id,
+ tagType,
+ tagValue,
+ byteOrder)
+}
+
+type IfdBuilder struct {
+ ifdIdentity *exifcommon.IfdIdentity
+
+ byteOrder binary.ByteOrder
+
+ // Includes both normal tags and IFD tags (which point to child IFDs).
+ // TODO(dustin): Keep a separate list of children like with `Ifd`.
+ // TODO(dustin): Either rename this or `Entries` in `Ifd` to be the same thing.
+ tags []*BuilderTag
+
+ // existingOffset will be the offset that this IFD is currently found at if
+ // it represents an IFD that has previously been stored (or 0 if not).
+ existingOffset uint32
+
+ // nextIb represents the next link if we're chaining to another.
+ nextIb *IfdBuilder
+
+ // thumbnailData is populated with thumbnail data if there was thumbnail
+ // data. Otherwise, it's nil.
+ thumbnailData []byte
+
+ ifdMapping *exifcommon.IfdMapping
+ tagIndex *TagIndex
+}
+
+func NewIfdBuilder(ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, ii *exifcommon.IfdIdentity, byteOrder binary.ByteOrder) (ib *IfdBuilder) {
+ ib = &IfdBuilder{
+ ifdIdentity: ii,
+
+ byteOrder: byteOrder,
+ tags: make([]*BuilderTag, 0),
+
+ ifdMapping: ifdMapping,
+ tagIndex: tagIndex,
+ }
+
+ return ib
+}
+
+// NewIfdBuilderWithExistingIfd creates a new IB using the same header type
+// information as the given IFD.
+func NewIfdBuilderWithExistingIfd(ifd *Ifd) (ib *IfdBuilder) {
+ ib = &IfdBuilder{
+ ifdIdentity: ifd.IfdIdentity(),
+
+ byteOrder: ifd.ByteOrder,
+ existingOffset: ifd.Offset,
+ ifdMapping: ifd.ifdMapping,
+ tagIndex: ifd.tagIndex,
+ }
+
+ return ib
+}
+
+// NewIfdBuilderFromExistingChain creates a chain of IB instances from an
+// IFD chain generated from real data.
+func NewIfdBuilderFromExistingChain(rootIfd *Ifd) (firstIb *IfdBuilder) {
+ var lastIb *IfdBuilder
+ i := 0
+ for thisExistingIfd := rootIfd; thisExistingIfd != nil; thisExistingIfd = thisExistingIfd.NextIfd {
+ newIb := NewIfdBuilder(
+ rootIfd.ifdMapping,
+ rootIfd.tagIndex,
+ rootIfd.ifdIdentity,
+ thisExistingIfd.ByteOrder)
+
+ if firstIb == nil {
+ firstIb = newIb
+ } else {
+ lastIb.SetNextIb(newIb)
+ }
+
+ err := newIb.AddTagsFromExisting(thisExistingIfd, nil, nil)
+ log.PanicIf(err)
+
+ lastIb = newIb
+ i++
+ }
+
+ return firstIb
+}
+
+func (ib *IfdBuilder) IfdIdentity() *exifcommon.IfdIdentity {
+ return ib.ifdIdentity
+}
+
+func (ib *IfdBuilder) NextIb() (nextIb *IfdBuilder, err error) {
+ return ib.nextIb, nil
+}
+
+func (ib *IfdBuilder) ChildWithTagId(childIfdTagId uint16) (childIb *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for _, bt := range ib.tags {
+ if bt.value.IsIb() == false {
+ continue
+ }
+
+ childIbThis := bt.value.Ib()
+
+ if childIbThis.IfdIdentity().TagId() == childIfdTagId {
+ return childIbThis, nil
+ }
+ }
+
+ log.Panic(ErrChildIbNotFound)
+
+ // Never reached.
+ return nil, nil
+}
+
+func getOrCreateIbFromRootIbInner(rootIb *IfdBuilder, parentIb *IfdBuilder, currentLineage []exifcommon.IfdTagIdAndIndex) (ib *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ thisIb := rootIb
+
+ // Since we're calling ourselves recursively with incrementally different
+ // paths, the FQ IFD-path of the parent that called us needs to be passed
+ // in, in order for us to know it.
+ var parentLineage []exifcommon.IfdTagIdAndIndex
+ if parentIb != nil {
+ var err error
+
+ parentLineage, err = thisIb.ifdMapping.ResolvePath(parentIb.IfdIdentity().String())
+ log.PanicIf(err)
+ }
+
+ // Process the current path part.
+ currentItIi := currentLineage[0]
+
+ // Make sure the leftmost part of the FQ IFD-path agrees with the IB we
+ // were given.
+
+ expectedFqRootIfdPath := ""
+ if parentLineage != nil {
+ expectedLineage := append(parentLineage, currentItIi)
+ expectedFqRootIfdPath = thisIb.ifdMapping.PathPhraseFromLineage(expectedLineage)
+ } else {
+ expectedFqRootIfdPath = thisIb.ifdMapping.PathPhraseFromLineage(currentLineage[:1])
+ }
+
+ if expectedFqRootIfdPath != thisIb.IfdIdentity().String() {
+ log.Panicf("the FQ IFD-path [%s] we were given does not match the builder's FQ IFD-path [%s]", expectedFqRootIfdPath, thisIb.IfdIdentity().String())
+ }
+
+ // If we actually wanted a sibling (currentItIi.Index > 0) then seek to it,
+ // appending new siblings, as required, until we get there.
+ for i := 0; i < currentItIi.Index; i++ {
+ if thisIb.nextIb == nil {
+ // Generate an FQ IFD-path for the sibling. It'll use the same
+ // non-FQ IFD-path as the current IB.
+
+ iiSibling := thisIb.IfdIdentity().NewSibling(i + 1)
+ thisIb.nextIb = NewIfdBuilder(thisIb.ifdMapping, thisIb.tagIndex, iiSibling, thisIb.byteOrder)
+ }
+
+ thisIb = thisIb.nextIb
+ }
+
+ // There is no child IFD to process. We're done.
+ if len(currentLineage) == 1 {
+ return thisIb, nil
+ }
+
+ // Establish the next child to be processed.
+
+ childItii := currentLineage[1]
+
+ var foundChild *IfdBuilder
+ for _, bt := range thisIb.tags {
+ if bt.value.IsIb() == false {
+ continue
+ }
+
+ childIb := bt.value.Ib()
+
+ if childIb.IfdIdentity().TagId() == childItii.TagId {
+ foundChild = childIb
+ break
+ }
+ }
+
+ // If we didn't find the child, add it.
+
+ if foundChild == nil {
+ currentIfdTag := thisIb.IfdIdentity().IfdTag()
+
+ childIfdTag :=
+ exifcommon.NewIfdTag(
+ ¤tIfdTag,
+ childItii.TagId,
+ childItii.Name)
+
+ iiChild := thisIb.IfdIdentity().NewChild(childIfdTag, 0)
+
+ foundChild =
+ NewIfdBuilder(
+ thisIb.ifdMapping,
+ thisIb.tagIndex,
+ iiChild,
+ thisIb.byteOrder)
+
+ err = thisIb.AddChildIb(foundChild)
+ log.PanicIf(err)
+ }
+
+ finalIb, err := getOrCreateIbFromRootIbInner(foundChild, thisIb, currentLineage[1:])
+ log.PanicIf(err)
+
+ return finalIb, nil
+}
+
+// GetOrCreateIbFromRootIb returns an IB representing the requested IFD, even if
+// an IB doesn't already exist for it. This function may call itself
+// recursively.
+func GetOrCreateIbFromRootIb(rootIb *IfdBuilder, fqIfdPath string) (ib *IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // lineage is a necessity of our recursion process. It doesn't include any
+ // parent IFDs on its left-side; it starts with the current IB only.
+ lineage, err := rootIb.ifdMapping.ResolvePath(fqIfdPath)
+ log.PanicIf(err)
+
+ ib, err = getOrCreateIbFromRootIbInner(rootIb, nil, lineage)
+ log.PanicIf(err)
+
+ return ib, nil
+}
+
+func (ib *IfdBuilder) String() string {
+ nextIfdPhrase := ""
+ if ib.nextIb != nil {
+ // TODO(dustin): We were setting this to ii.String(), but we were getting hex-data when printing this after building from an existing chain.
+ nextIfdPhrase = ib.nextIb.IfdIdentity().UnindexedString()
+ }
+
+ return fmt.Sprintf("IfdBuilder", ib.IfdIdentity().UnindexedString(), ib.IfdIdentity().TagId(), len(ib.tags), ib.existingOffset, nextIfdPhrase)
+}
+
+func (ib *IfdBuilder) Tags() (tags []*BuilderTag) {
+ return ib.tags
+}
+
+// SetThumbnail sets thumbnail data.
+//
+// NOTES:
+//
+// - We don't manage any facet of the thumbnail data. This is the
+// responsibility of the user/developer.
+// - This method will fail unless the thumbnail is set on a the root IFD.
+// However, in order to be valid, it must be set on the second one, linked to
+// by the first, as per the EXIF/TIFF specification.
+// - We set the offset to (0) now but will allocate the data and properly assign
+// the offset when the IB is encoded (later).
+func (ib *IfdBuilder) SetThumbnail(data []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if ib.IfdIdentity().UnindexedString() != exifcommon.IfdStandardIfdIdentity.UnindexedString() {
+ log.Panicf("thumbnails can only go into a root Ifd (and only the second one)")
+ }
+
+ // TODO(dustin): !! Add a test for this function.
+
+ if data == nil || len(data) == 0 {
+ log.Panic("thumbnail is empty")
+ }
+
+ ib.thumbnailData = data
+
+ ibtvfb := NewIfdBuilderTagValueFromBytes(ib.thumbnailData)
+ offsetBt :=
+ NewBuilderTag(
+ ib.IfdIdentity().UnindexedString(),
+ ThumbnailOffsetTagId,
+ exifcommon.TypeLong,
+ ibtvfb,
+ ib.byteOrder)
+
+ err = ib.Set(offsetBt)
+ log.PanicIf(err)
+
+ thumbnailSizeIt, err := ib.tagIndex.Get(ib.IfdIdentity(), ThumbnailSizeTagId)
+ log.PanicIf(err)
+
+ sizeBt := NewStandardBuilderTag(ib.IfdIdentity().UnindexedString(), thumbnailSizeIt, ib.byteOrder, []uint32{uint32(len(ib.thumbnailData))})
+
+ err = ib.Set(sizeBt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (ib *IfdBuilder) Thumbnail() []byte {
+ return ib.thumbnailData
+}
+
+func (ib *IfdBuilder) printTagTree(levels int) {
+ indent := strings.Repeat(" ", levels*2)
+
+ i := 0
+ for currentIb := ib; currentIb != nil; currentIb = currentIb.nextIb {
+ prefix := " "
+ if i > 0 {
+ prefix = ">"
+ }
+
+ if levels == 0 {
+ fmt.Printf("%s%sIFD: %s INDEX=(%d)\n", indent, prefix, currentIb, i)
+ } else {
+ fmt.Printf("%s%sChild IFD: %s\n", indent, prefix, currentIb)
+ }
+
+ if len(currentIb.tags) > 0 {
+ fmt.Printf("\n")
+
+ for i, tag := range currentIb.tags {
+ isChildIb := false
+ _, err := ib.ifdMapping.GetChild(currentIb.IfdIdentity().UnindexedString(), tag.tagId)
+ if err == nil {
+ isChildIb = true
+ } else if log.Is(err, exifcommon.ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ tagName := ""
+
+ // If a normal tag (not a child IFD) get the name.
+ if isChildIb == true {
+ tagName = ""
+ } else {
+ it, err := ib.tagIndex.Get(ib.ifdIdentity, tag.tagId)
+ if log.Is(err, ErrTagNotFound) == true {
+ tagName = ""
+ } else if err != nil {
+ log.Panic(err)
+ } else {
+ tagName = it.Name
+ }
+ }
+
+ value := tag.Value()
+
+ if value.IsIb() == true {
+ fmt.Printf("%s (%d): [%s] %s\n", indent, i, tagName, value.Ib())
+ } else {
+ fmt.Printf("%s (%d): [%s] %s\n", indent, i, tagName, tag)
+ }
+
+ if isChildIb == true {
+ if tag.value.IsIb() == false {
+ log.Panicf("tag-ID (0x%04x) is an IFD but the tag value is not an IB instance: %v", tag.tagId, tag)
+ }
+
+ fmt.Printf("\n")
+
+ childIb := tag.value.Ib()
+ childIb.printTagTree(levels + 1)
+ }
+ }
+
+ fmt.Printf("\n")
+ }
+
+ i++
+ }
+}
+
+func (ib *IfdBuilder) PrintTagTree() {
+ ib.printTagTree(0)
+}
+
+func (ib *IfdBuilder) printIfdTree(levels int) {
+ indent := strings.Repeat(" ", levels*2)
+
+ i := 0
+ for currentIb := ib; currentIb != nil; currentIb = currentIb.nextIb {
+ prefix := " "
+ if i > 0 {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%s%s\n", indent, prefix, currentIb)
+
+ if len(currentIb.tags) > 0 {
+ for _, tag := range currentIb.tags {
+ isChildIb := false
+ _, err := ib.ifdMapping.GetChild(currentIb.IfdIdentity().UnindexedString(), tag.tagId)
+ if err == nil {
+ isChildIb = true
+ } else if log.Is(err, exifcommon.ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ if isChildIb == true {
+ if tag.value.IsIb() == false {
+ log.Panicf("tag-ID (0x%04x) is an IFD but the tag value is not an IB instance: %v", tag.tagId, tag)
+ }
+
+ childIb := tag.value.Ib()
+ childIb.printIfdTree(levels + 1)
+ }
+ }
+ }
+
+ i++
+ }
+}
+
+func (ib *IfdBuilder) PrintIfdTree() {
+ ib.printIfdTree(0)
+}
+
+func (ib *IfdBuilder) dumpToStrings(thisIb *IfdBuilder, prefix string, tagId uint16, lines []string) (linesOutput []string) {
+ if lines == nil {
+ linesOutput = make([]string, 0)
+ } else {
+ linesOutput = lines
+ }
+
+ siblingIfdIndex := 0
+ for ; thisIb != nil; thisIb = thisIb.nextIb {
+ line := fmt.Sprintf("IFD", prefix, thisIb.IfdIdentity().String(), siblingIfdIndex, thisIb.IfdIdentity().TagId(), tagId)
+ linesOutput = append(linesOutput, line)
+
+ for i, tag := range thisIb.tags {
+ var childIb *IfdBuilder
+ childIfdName := ""
+ if tag.value.IsIb() == true {
+ childIb = tag.value.Ib()
+ childIfdName = childIb.IfdIdentity().UnindexedString()
+ }
+
+ line := fmt.Sprintf("TAG", prefix, thisIb.IfdIdentity().String(), thisIb.IfdIdentity().TagId(), childIfdName, i, tag.tagId)
+ linesOutput = append(linesOutput, line)
+
+ if childIb == nil {
+ continue
+ }
+
+ childPrefix := ""
+ if prefix == "" {
+ childPrefix = fmt.Sprintf("%s", thisIb.IfdIdentity().UnindexedString())
+ } else {
+ childPrefix = fmt.Sprintf("%s->%s", prefix, thisIb.IfdIdentity().UnindexedString())
+ }
+
+ linesOutput = thisIb.dumpToStrings(childIb, childPrefix, tag.tagId, linesOutput)
+ }
+
+ siblingIfdIndex++
+ }
+
+ return linesOutput
+}
+
+func (ib *IfdBuilder) DumpToStrings() (lines []string) {
+ return ib.dumpToStrings(ib, "", 0, lines)
+}
+
+func (ib *IfdBuilder) SetNextIb(nextIb *IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ib.nextIb = nextIb
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteN(tagId uint16, n int) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if n < 1 {
+ log.Panicf("N must be at least 1: (%d)", n)
+ }
+
+ for n > 0 {
+ j := -1
+ for i, bt := range ib.tags {
+ if bt.tagId == tagId {
+ j = i
+ break
+ }
+ }
+
+ if j == -1 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ ib.tags = append(ib.tags[:j], ib.tags[j+1:]...)
+ n--
+ }
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteFirst(tagId uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = ib.DeleteN(tagId, 1)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (ib *IfdBuilder) DeleteAll(tagId uint16) (n int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for {
+ err = ib.DeleteN(tagId, 1)
+ if log.Is(err, ErrTagEntryNotFound) == true {
+ break
+ } else if err != nil {
+ log.Panic(err)
+ }
+
+ n++
+ }
+
+ return n, nil
+}
+
+func (ib *IfdBuilder) ReplaceAt(position int, bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if position < 0 {
+ log.Panicf("replacement position must be 0 or greater")
+ } else if position >= len(ib.tags) {
+ log.Panicf("replacement position does not exist")
+ }
+
+ ib.tags[position] = bt
+
+ return nil
+}
+
+func (ib *IfdBuilder) Replace(tagId uint16, bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ position, err := ib.Find(tagId)
+ log.PanicIf(err)
+
+ ib.tags[position] = bt
+
+ return nil
+}
+
+// Set will add a new entry or update an existing entry.
+func (ib *IfdBuilder) Set(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ position, err := ib.Find(bt.tagId)
+ if err == nil {
+ ib.tags[position] = bt
+ } else if log.Is(err, ErrTagEntryNotFound) == true {
+ err = ib.add(bt)
+ log.PanicIf(err)
+ } else {
+ log.Panic(err)
+ }
+
+ return nil
+}
+
+func (ib *IfdBuilder) FindN(tagId uint16, maxFound int) (found []int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found = make([]int, 0)
+
+ for i, bt := range ib.tags {
+ if bt.tagId == tagId {
+ found = append(found, i)
+ if maxFound == 0 || len(found) >= maxFound {
+ break
+ }
+ }
+ }
+
+ return found, nil
+}
+
+func (ib *IfdBuilder) Find(tagId uint16) (position int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found, err := ib.FindN(tagId, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ return found[0], nil
+}
+
+func (ib *IfdBuilder) FindTag(tagId uint16) (bt *BuilderTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ found, err := ib.FindN(tagId, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ position := found[0]
+
+ return ib.tags[position], nil
+}
+
+func (ib *IfdBuilder) FindTagWithName(tagName string) (bt *BuilderTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.GetWithName(ib.IfdIdentity(), tagName)
+ log.PanicIf(err)
+
+ found, err := ib.FindN(it.Id, 1)
+ log.PanicIf(err)
+
+ if len(found) == 0 {
+ log.Panic(ErrTagEntryNotFound)
+ }
+
+ position := found[0]
+
+ return ib.tags[position], nil
+}
+
+func (ib *IfdBuilder) add(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if bt.ifdPath == "" {
+ log.Panicf("BuilderTag ifdPath is not set: %s", bt)
+ } else if bt.typeId == 0x0 {
+ log.Panicf("BuilderTag type-ID is not set: %s", bt)
+ } else if bt.value == nil {
+ log.Panicf("BuilderTag value is not set: %s", bt)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ return nil
+}
+
+func (ib *IfdBuilder) Add(bt *BuilderTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if bt.value.IsIb() == true {
+ log.Panicf("child IfdBuilders must be added via AddChildIb() or AddTagsFromExisting(), not Add()")
+ }
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// AddChildIb adds a tag that branches to a new IFD.
+func (ib *IfdBuilder) AddChildIb(childIb *IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if childIb.IfdIdentity().TagId() == 0 {
+ log.Panicf("IFD can not be used as a child IFD (not associated with a tag-ID): %v", childIb)
+ } else if childIb.byteOrder != ib.byteOrder {
+ log.Panicf("Child IFD does not have the same byte-order: [%s] != [%s]", childIb.byteOrder, ib.byteOrder)
+ }
+
+ // Since no standard IFDs supports occur`ring more than once, check that a
+ // tag of this type has not been previously added. Note that we just search
+ // the current IFD and *not every* IFD.
+ for _, bt := range childIb.tags {
+ if bt.tagId == childIb.IfdIdentity().TagId() {
+ log.Panicf("child-IFD already added: %v", childIb.IfdIdentity().UnindexedString())
+ }
+ }
+
+ bt := ib.NewBuilderTagFromBuilder(childIb)
+ ib.tags = append(ib.tags, bt)
+
+ return nil
+}
+
+func (ib *IfdBuilder) NewBuilderTagFromBuilder(childIb *IfdBuilder) (bt *BuilderTag) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ value := NewIfdBuilderTagValueFromIfdBuilder(childIb)
+
+ bt = NewChildIfdBuilderTag(
+ ib.IfdIdentity().UnindexedString(),
+ childIb.IfdIdentity().TagId(),
+ value)
+
+ return bt
+}
+
+// AddTagsFromExisting does a verbatim copy of the entries in `ifd` to this
+// builder. It excludes child IFDs. These must be added explicitly via
+// `AddChildIb()`.
+func (ib *IfdBuilder) AddTagsFromExisting(ifd *Ifd, includeTagIds []uint16, excludeTagIds []uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ thumbnailData, err := ifd.Thumbnail()
+ if err == nil {
+ err = ib.SetThumbnail(thumbnailData)
+ log.PanicIf(err)
+ } else if log.Is(err, ErrNoThumbnail) == false {
+ log.Panic(err)
+ }
+
+ for i, ite := range ifd.Entries {
+ if ite.IsThumbnailOffset() == true || ite.IsThumbnailSize() {
+ // These will be added on-the-fly when we encode.
+ continue
+ }
+
+ if excludeTagIds != nil && len(excludeTagIds) > 0 {
+ found := false
+ for _, excludedTagId := range excludeTagIds {
+ if excludedTagId == ite.TagId() {
+ found = true
+ }
+ }
+
+ if found == true {
+ continue
+ }
+ }
+
+ if includeTagIds != nil && len(includeTagIds) > 0 {
+ // Whether or not there was a list of excludes, if there is a list
+ // of includes than the current tag has to be in it.
+
+ found := false
+ for _, includedTagId := range includeTagIds {
+ if includedTagId == ite.TagId() {
+ found = true
+ break
+ }
+ }
+
+ if found == false {
+ continue
+ }
+ }
+
+ var bt *BuilderTag
+
+ if ite.ChildIfdPath() != "" {
+ // If we want to add an IFD tag, we'll have to build it first and
+ // *then* add it via a different method.
+
+ // Figure out which of the child-IFDs that are associated with
+ // this IFD represents this specific child IFD.
+
+ var childIfd *Ifd
+ for _, thisChildIfd := range ifd.Children {
+ if thisChildIfd.ParentTagIndex != i {
+ continue
+ } else if thisChildIfd.ifdIdentity.TagId() != 0xffff && thisChildIfd.ifdIdentity.TagId() != ite.TagId() {
+ log.Panicf("child-IFD tag is not correct: TAG-POSITION=(%d) ITE=%s CHILD-IFD=%s", thisChildIfd.ParentTagIndex, ite, thisChildIfd)
+ }
+
+ childIfd = thisChildIfd
+ break
+ }
+
+ if childIfd == nil {
+ childTagIds := make([]string, len(ifd.Children))
+ for j, childIfd := range ifd.Children {
+ childTagIds[j] = fmt.Sprintf("0x%04x (parent tag-position %d)", childIfd.ifdIdentity.TagId(), childIfd.ParentTagIndex)
+ }
+
+ log.Panicf("could not find child IFD for child ITE: IFD-PATH=[%s] TAG-ID=(0x%04x) CURRENT-TAG-POSITION=(%d) CHILDREN=%v", ite.IfdPath(), ite.TagId(), i, childTagIds)
+ }
+
+ childIb := NewIfdBuilderFromExistingChain(childIfd)
+ bt = ib.NewBuilderTagFromBuilder(childIb)
+ } else {
+ // Non-IFD tag.
+
+ rawBytes, err := ite.GetRawBytes()
+ log.PanicIf(err)
+
+ value := NewIfdBuilderTagValueFromBytes(rawBytes)
+
+ bt = NewBuilderTag(
+ ifd.ifdIdentity.UnindexedString(),
+ ite.TagId(),
+ ite.TagType(),
+ value,
+ ib.byteOrder)
+ }
+
+ err := ib.add(bt)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
+
+// AddStandard quickly and easily composes and adds the tag using the
+// information already known about a tag. Only works with standard tags.
+func (ib *IfdBuilder) AddStandard(tagId uint16, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.Get(ib.IfdIdentity(), tagId)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.IfdIdentity().UnindexedString(), it, ib.byteOrder, value)
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// AddStandardWithName quickly and easily composes and adds the tag using the
+// information already known about a tag (using the name). Only works with
+// standard tags.
+func (ib *IfdBuilder) AddStandardWithName(tagName string, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ib.tagIndex.GetWithName(ib.IfdIdentity(), tagName)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.IfdIdentity().UnindexedString(), it, ib.byteOrder, value)
+
+ err = ib.add(bt)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// SetStandard quickly and easily composes and adds or replaces the tag using
+// the information already known about a tag. Only works with standard tags.
+func (ib *IfdBuilder) SetStandard(tagId uint16, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test for this function.
+
+ it, err := ib.tagIndex.Get(ib.IfdIdentity(), tagId)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.IfdIdentity().UnindexedString(), it, ib.byteOrder, value)
+
+ i, err := ib.Find(tagId)
+ if err != nil {
+ if log.Is(err, ErrTagEntryNotFound) == false {
+ log.Panic(err)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ } else {
+ ib.tags[i] = bt
+ }
+
+ return nil
+}
+
+// SetStandardWithName quickly and easily composes and adds or replaces the
+// tag using the information already known about a tag (using the name). Only
+// works with standard tags.
+func (ib *IfdBuilder) SetStandardWithName(tagName string, value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test for this function.
+
+ it, err := ib.tagIndex.GetWithName(ib.IfdIdentity(), tagName)
+ log.PanicIf(err)
+
+ bt := NewStandardBuilderTag(ib.IfdIdentity().UnindexedString(), it, ib.byteOrder, value)
+
+ i, err := ib.Find(bt.tagId)
+ if err != nil {
+ if log.Is(err, ErrTagEntryNotFound) == false {
+ log.Panic(err)
+ }
+
+ ib.tags = append(ib.tags, bt)
+ } else {
+ ib.tags[i] = bt
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/ifd_builder_encode.go b/vendor/github.com/dsoprea/go-exif/v2/ifd_builder_encode.go
new file mode 100644
index 000000000..a0bac3e5b
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/ifd_builder_encode.go
@@ -0,0 +1,532 @@
+package exif
+
+import (
+ "bytes"
+ "fmt"
+ "strings"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+const (
+ // Tag-ID + Tag-Type + Unit-Count + Value/Offset.
+ IfdTagEntrySize = uint32(2 + 2 + 4 + 4)
+)
+
+type ByteWriter struct {
+ b *bytes.Buffer
+ byteOrder binary.ByteOrder
+}
+
+func NewByteWriter(b *bytes.Buffer, byteOrder binary.ByteOrder) (bw *ByteWriter) {
+ return &ByteWriter{
+ b: b,
+ byteOrder: byteOrder,
+ }
+}
+
+func (bw ByteWriter) writeAsBytes(value interface{}) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = binary.Write(bw.b, bw.byteOrder, value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteUint32(value uint32) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = bw.writeAsBytes(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteUint16(value uint16) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ err = bw.writeAsBytes(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+func (bw ByteWriter) WriteFourBytes(value []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ len_ := len(value)
+ if len_ != 4 {
+ log.Panicf("value is not four-bytes: (%d)", len_)
+ }
+
+ _, err = bw.b.Write(value)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// ifdOffsetIterator keeps track of where the next IFD should be written by
+// keeping track of where the offsets start, the data that has been added, and
+// bumping the offset *when* the data is added.
+type ifdDataAllocator struct {
+ offset uint32
+ b bytes.Buffer
+}
+
+func newIfdDataAllocator(ifdDataAddressableOffset uint32) *ifdDataAllocator {
+ return &ifdDataAllocator{
+ offset: ifdDataAddressableOffset,
+ }
+}
+
+func (ida *ifdDataAllocator) Allocate(value []byte) (offset uint32, err error) {
+ _, err = ida.b.Write(value)
+ log.PanicIf(err)
+
+ offset = ida.offset
+ ida.offset += uint32(len(value))
+
+ return offset, nil
+}
+
+func (ida *ifdDataAllocator) NextOffset() uint32 {
+ return ida.offset
+}
+
+func (ida *ifdDataAllocator) Bytes() []byte {
+ return ida.b.Bytes()
+}
+
+// IfdByteEncoder converts an IB to raw bytes (for writing) while also figuring
+// out all of the allocations and indirection that is required for extended
+// data.
+type IfdByteEncoder struct {
+ // journal holds a list of actions taken while encoding.
+ journal [][3]string
+}
+
+func NewIfdByteEncoder() (ibe *IfdByteEncoder) {
+ return &IfdByteEncoder{
+ journal: make([][3]string, 0),
+ }
+}
+
+func (ibe *IfdByteEncoder) Journal() [][3]string {
+ return ibe.journal
+}
+
+func (ibe *IfdByteEncoder) TableSize(entryCount int) uint32 {
+ // Tag-Count + (Entry-Size * Entry-Count) + Next-IFD-Offset.
+ return uint32(2) + (IfdTagEntrySize * uint32(entryCount)) + uint32(4)
+}
+
+func (ibe *IfdByteEncoder) pushToJournal(where, direction, format string, args ...interface{}) {
+ event := [3]string{
+ direction,
+ where,
+ fmt.Sprintf(format, args...),
+ }
+
+ ibe.journal = append(ibe.journal, event)
+}
+
+// PrintJournal prints a hierarchical representation of the steps taken during
+// encoding.
+func (ibe *IfdByteEncoder) PrintJournal() {
+ maxWhereLength := 0
+ for _, event := range ibe.journal {
+ where := event[1]
+
+ len_ := len(where)
+ if len_ > maxWhereLength {
+ maxWhereLength = len_
+ }
+ }
+
+ level := 0
+ for i, event := range ibe.journal {
+ direction := event[0]
+ where := event[1]
+ message := event[2]
+
+ if direction != ">" && direction != "<" && direction != "-" {
+ log.Panicf("journal operation not valid: [%s]", direction)
+ }
+
+ if direction == "<" {
+ if level <= 0 {
+ log.Panicf("journal operations unbalanced (too many closes)")
+ }
+
+ level--
+ }
+
+ indent := strings.Repeat(" ", level)
+
+ fmt.Printf("%3d %s%s %s: %s\n", i, indent, direction, where, message)
+
+ if direction == ">" {
+ level++
+ }
+ }
+
+ if level != 0 {
+ log.Panicf("journal operations unbalanced (too many opens)")
+ }
+}
+
+// encodeTagToBytes encodes the given tag to a byte stream. If
+// `nextIfdOffsetToWrite` is more than (0), recurse into child IFDs
+// (`nextIfdOffsetToWrite` is required in order for them to know where the its
+// IFD data will be written, in order for them to know the offset of where
+// their allocated-data block will start, which follows right behind).
+func (ibe *IfdByteEncoder) encodeTagToBytes(ib *IfdBuilder, bt *BuilderTag, bw *ByteWriter, ida *ifdDataAllocator, nextIfdOffsetToWrite uint32) (childIfdBlock []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Write tag-ID.
+ err = bw.WriteUint16(bt.tagId)
+ log.PanicIf(err)
+
+ // Works for both values and child IFDs (which have an official size of
+ // LONG).
+ err = bw.WriteUint16(uint16(bt.typeId))
+ log.PanicIf(err)
+
+ // Write unit-count.
+
+ if bt.value.IsBytes() == true {
+ effectiveType := bt.typeId
+ if bt.typeId == exifcommon.TypeUndefined {
+ effectiveType = exifcommon.TypeByte
+ }
+
+ // It's a non-unknown value.Calculate the count of values of
+ // the type that we're writing and the raw bytes for the whole list.
+
+ typeSize := uint32(effectiveType.Size())
+
+ valueBytes := bt.value.Bytes()
+
+ len_ := len(valueBytes)
+ unitCount := uint32(len_) / typeSize
+
+ if _, found := tagsWithoutAlignment[bt.tagId]; found == false {
+ remainder := uint32(len_) % typeSize
+
+ if remainder > 0 {
+ log.Panicf("tag (0x%04x) value of (%d) bytes not evenly divisible by type-size (%d)", bt.tagId, len_, typeSize)
+ }
+ }
+
+ err = bw.WriteUint32(unitCount)
+ log.PanicIf(err)
+
+ // Write four-byte value/offset.
+
+ if len_ > 4 {
+ offset, err := ida.Allocate(valueBytes)
+ log.PanicIf(err)
+
+ err = bw.WriteUint32(offset)
+ log.PanicIf(err)
+ } else {
+ fourBytes := make([]byte, 4)
+ copy(fourBytes, valueBytes)
+
+ err = bw.WriteFourBytes(fourBytes)
+ log.PanicIf(err)
+ }
+ } else {
+ if bt.value.IsIb() == false {
+ log.Panicf("tag value is not a byte-slice but also not a child IB: %v", bt)
+ }
+
+ // Write unit-count (one LONG representing one offset).
+ err = bw.WriteUint32(1)
+ log.PanicIf(err)
+
+ if nextIfdOffsetToWrite > 0 {
+ var err error
+
+ ibe.pushToJournal("encodeTagToBytes", ">", "[%s]->[%s]", ib.IfdIdentity().UnindexedString(), bt.value.Ib().IfdIdentity().UnindexedString())
+
+ // Create the block of IFD data and everything it requires.
+ childIfdBlock, err = ibe.encodeAndAttachIfd(bt.value.Ib(), nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ ibe.pushToJournal("encodeTagToBytes", "<", "[%s]->[%s]", bt.value.Ib().IfdIdentity().UnindexedString(), ib.IfdIdentity().UnindexedString())
+
+ // Use the next-IFD offset for it. The IFD will actually get
+ // attached after we return.
+ err = bw.WriteUint32(nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ } else {
+ // No child-IFDs are to be allocated. Finish the entry with a NULL
+ // pointer.
+
+ ibe.pushToJournal("encodeTagToBytes", "-", "*Not* descending to child: [%s]", bt.value.Ib().IfdIdentity().UnindexedString())
+
+ err = bw.WriteUint32(0)
+ log.PanicIf(err)
+ }
+ }
+
+ return childIfdBlock, nil
+}
+
+// encodeIfdToBytes encodes the given IB to a byte-slice. We are given the
+// offset at which this IFD will be written. This method is used called both to
+// pre-determine how big the table is going to be (so that we can calculate the
+// address to allocate data at) as well as to write the final table.
+//
+// It is necessary to fully realize the table in order to predetermine its size
+// because it is not enough to know the size of the table: If there are child
+// IFDs, we will not be able to allocate them without first knowing how much
+// data we need to allocate for the current IFD.
+func (ibe *IfdByteEncoder) encodeIfdToBytes(ib *IfdBuilder, ifdAddressableOffset uint32, nextIfdOffsetToWrite uint32, setNextIb bool) (data []byte, tableSize uint32, dataSize uint32, childIfdSizes []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ibe.pushToJournal("encodeIfdToBytes", ">", "%s", ib)
+
+ tableSize = ibe.TableSize(len(ib.tags))
+
+ b := new(bytes.Buffer)
+ bw := NewByteWriter(b, ib.byteOrder)
+
+ // Write tag count.
+ err = bw.WriteUint16(uint16(len(ib.tags)))
+ log.PanicIf(err)
+
+ ida := newIfdDataAllocator(ifdAddressableOffset)
+
+ childIfdBlocks := make([][]byte, 0)
+
+ // Write raw bytes for each tag entry. Allocate larger data to be referred
+ // to in the follow-up data-block as required. Any "unknown"-byte tags that
+ // we can't parse will not be present here (using AddTagsFromExisting(), at
+ // least).
+ for _, bt := range ib.tags {
+ childIfdBlock, err := ibe.encodeTagToBytes(ib, bt, bw, ida, nextIfdOffsetToWrite)
+ log.PanicIf(err)
+
+ if childIfdBlock != nil {
+ // We aren't allowed to have non-nil child IFDs if we're just
+ // sizing things up.
+ if nextIfdOffsetToWrite == 0 {
+ log.Panicf("no IFD offset provided for child-IFDs; no new child-IFDs permitted")
+ }
+
+ nextIfdOffsetToWrite += uint32(len(childIfdBlock))
+ childIfdBlocks = append(childIfdBlocks, childIfdBlock)
+ }
+ }
+
+ dataBytes := ida.Bytes()
+ dataSize = uint32(len(dataBytes))
+
+ childIfdSizes = make([]uint32, len(childIfdBlocks))
+ childIfdsTotalSize := uint32(0)
+ for i, childIfdBlock := range childIfdBlocks {
+ len_ := uint32(len(childIfdBlock))
+ childIfdSizes[i] = len_
+ childIfdsTotalSize += len_
+ }
+
+ // N the link from this IFD to the next IFD that will be written in the
+ // next cycle.
+ if setNextIb == true {
+ // Write address of next IFD in chain. This will be the original
+ // allocation offset plus the size of everything we have allocated for
+ // this IFD and its child-IFDs.
+ //
+ // It is critical that this number is stepped properly. We experienced
+ // an issue whereby it first looked like we were duplicating the IFD and
+ // then that we were duplicating the tags in the wrong IFD, and then
+ // finally we determined that the next-IFD offset for the first IFD was
+ // accidentally pointing back to the EXIF IFD, so we were visiting it
+ // twice when visiting through the tags after decoding. It was an
+ // expensive bug to find.
+
+ ibe.pushToJournal("encodeIfdToBytes", "-", "Setting 'next' IFD to (0x%08x).", nextIfdOffsetToWrite)
+
+ err := bw.WriteUint32(nextIfdOffsetToWrite)
+ log.PanicIf(err)
+ } else {
+ err := bw.WriteUint32(0)
+ log.PanicIf(err)
+ }
+
+ _, err = b.Write(dataBytes)
+ log.PanicIf(err)
+
+ // Append any child IFD blocks after our table and data blocks. These IFDs
+ // were equipped with the appropriate offset information so it's expected
+ // that all offsets referred to by these will be correct.
+ //
+ // Note that child-IFDs are append after the current IFD and before the
+ // next IFD, as opposed to the root IFDs, which are chained together but
+ // will be interrupted by these child-IFDs (which is expected, per the
+ // standard).
+
+ for _, childIfdBlock := range childIfdBlocks {
+ _, err = b.Write(childIfdBlock)
+ log.PanicIf(err)
+ }
+
+ ibe.pushToJournal("encodeIfdToBytes", "<", "%s", ib)
+
+ return b.Bytes(), tableSize, dataSize, childIfdSizes, nil
+}
+
+// encodeAndAttachIfd is a reentrant function that processes the IFD chain.
+func (ibe *IfdByteEncoder) encodeAndAttachIfd(ib *IfdBuilder, ifdAddressableOffset uint32) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "%s", ib)
+
+ b := new(bytes.Buffer)
+
+ i := 0
+
+ for thisIb := ib; thisIb != nil; thisIb = thisIb.nextIb {
+
+ // Do a dry-run in order to pre-determine its size requirement.
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Beginning encoding process: (%d) [%s]", i, thisIb.IfdIdentity().UnindexedString())
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Calculating size: (%d) [%s]", i, thisIb.IfdIdentity().UnindexedString())
+
+ _, tableSize, allocatedDataSize, _, err := ibe.encodeIfdToBytes(thisIb, ifdAddressableOffset, 0, false)
+ log.PanicIf(err)
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Finished calculating size: (%d) [%s]", i, thisIb.IfdIdentity().UnindexedString())
+
+ ifdAddressableOffset += tableSize
+ nextIfdOffsetToWrite := ifdAddressableOffset + allocatedDataSize
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Next IFD will be written at offset (0x%08x)", nextIfdOffsetToWrite)
+
+ // Write our IFD as well as any child-IFDs (now that we know the offset
+ // where new IFDs and their data will be allocated).
+
+ setNextIb := thisIb.nextIb != nil
+
+ ibe.pushToJournal("encodeAndAttachIfd", ">", "Encoding starting: (%d) [%s] NEXT-IFD-OFFSET-TO-WRITE=(0x%08x)", i, thisIb.IfdIdentity().UnindexedString(), nextIfdOffsetToWrite)
+
+ tableAndAllocated, effectiveTableSize, effectiveAllocatedDataSize, childIfdSizes, err :=
+ ibe.encodeIfdToBytes(thisIb, ifdAddressableOffset, nextIfdOffsetToWrite, setNextIb)
+
+ log.PanicIf(err)
+
+ if effectiveTableSize != tableSize {
+ log.Panicf("written table size does not match the pre-calculated table size: (%d) != (%d) %s", effectiveTableSize, tableSize, ib)
+ } else if effectiveAllocatedDataSize != allocatedDataSize {
+ log.Panicf("written allocated-data size does not match the pre-calculated allocated-data size: (%d) != (%d) %s", effectiveAllocatedDataSize, allocatedDataSize, ib)
+ }
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Encoding done: (%d) [%s]", i, thisIb.IfdIdentity().UnindexedString())
+
+ totalChildIfdSize := uint32(0)
+ for _, childIfdSize := range childIfdSizes {
+ totalChildIfdSize += childIfdSize
+ }
+
+ if len(tableAndAllocated) != int(tableSize+allocatedDataSize+totalChildIfdSize) {
+ log.Panicf("IFD table and data is not a consistent size: (%d) != (%d)", len(tableAndAllocated), tableSize+allocatedDataSize+totalChildIfdSize)
+ }
+
+ // TODO(dustin): We might want to verify the original tableAndAllocated length, too.
+
+ _, err = b.Write(tableAndAllocated)
+ log.PanicIf(err)
+
+ // Advance past what we've allocated, thus far.
+
+ ifdAddressableOffset += allocatedDataSize + totalChildIfdSize
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "Finishing encoding process: (%d) [%s] [FINAL:] NEXT-IFD-OFFSET-TO-WRITE=(0x%08x)", i, ib.IfdIdentity().UnindexedString(), nextIfdOffsetToWrite)
+
+ i++
+ }
+
+ ibe.pushToJournal("encodeAndAttachIfd", "<", "%s", ib)
+
+ return b.Bytes(), nil
+}
+
+// EncodeToExifPayload is the base encoding step that transcribes the entire IB
+// structure to its on-disk layout.
+func (ibe *IfdByteEncoder) EncodeToExifPayload(ib *IfdBuilder) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ data, err = ibe.encodeAndAttachIfd(ib, ExifDefaultFirstIfdOffset)
+ log.PanicIf(err)
+
+ return data, nil
+}
+
+// EncodeToExif calls EncodeToExifPayload and then packages the result into a
+// complete EXIF block.
+func (ibe *IfdByteEncoder) EncodeToExif(ib *IfdBuilder) (data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ encodedIfds, err := ibe.EncodeToExifPayload(ib)
+ log.PanicIf(err)
+
+ // Wrap the IFD in a formal EXIF block.
+
+ b := new(bytes.Buffer)
+
+ headerBytes, err := BuildExifHeader(ib.byteOrder, ExifDefaultFirstIfdOffset)
+ log.PanicIf(err)
+
+ _, err = b.Write(headerBytes)
+ log.PanicIf(err)
+
+ _, err = b.Write(encodedIfds)
+ log.PanicIf(err)
+
+ return b.Bytes(), nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/ifd_enumerate.go b/vendor/github.com/dsoprea/go-exif/v2/ifd_enumerate.go
new file mode 100644
index 000000000..33a5f84b3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/ifd_enumerate.go
@@ -0,0 +1,1521 @@
+package exif
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "io"
+ "strconv"
+ "strings"
+ "time"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+ "github.com/dsoprea/go-exif/v2/undefined"
+)
+
+var (
+ ifdEnumerateLogger = log.NewLogger("exif.ifd_enumerate")
+)
+
+var (
+ // ErrNoThumbnail means that no thumbnail was found.
+ ErrNoThumbnail = errors.New("no thumbnail")
+
+ // ErrNoGpsTags means that no GPS info was found.
+ ErrNoGpsTags = errors.New("no gps tags")
+
+ // ErrTagTypeNotValid means that the tag-type is not valid.
+ ErrTagTypeNotValid = errors.New("tag type invalid")
+
+ // ErrOffsetInvalid means that the file offset is not valid.
+ ErrOffsetInvalid = errors.New("file offset invalid")
+)
+
+var (
+ // ValidGpsVersions is the list of recognized EXIF GPS versions/signatures.
+ ValidGpsVersions = [][4]byte{
+ // 2.0.0.0 appears to have a very similar format to 2.2.0.0, so enabling
+ // it under that assumption.
+ //
+ // IFD-PATH=[IFD] ID=(0x8825) NAME=[GPSTag] COUNT=(1) TYPE=[LONG] VALUE=[114]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0000) NAME=[GPSVersionID] COUNT=(4) TYPE=[BYTE] VALUE=[02 00 00 00]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0001) NAME=[GPSLatitudeRef] COUNT=(2) TYPE=[ASCII] VALUE=[S]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0002) NAME=[GPSLatitude] COUNT=(3) TYPE=[RATIONAL] VALUE=[38/1...]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0003) NAME=[GPSLongitudeRef] COUNT=(2) TYPE=[ASCII] VALUE=[E]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0004) NAME=[GPSLongitude] COUNT=(3) TYPE=[RATIONAL] VALUE=[144/1...]
+ // IFD-PATH=[IFD/GPSInfo] ID=(0x0012) NAME=[GPSMapDatum] COUNT=(7) TYPE=[ASCII] VALUE=[WGS-84]
+ //
+ {2, 0, 0, 0},
+
+ {2, 2, 0, 0},
+
+ // Suddenly appeared at the default in 2.31: https://home.jeita.or.jp/tsc/std-pdf/CP-3451D.pdf
+ //
+ // Note that the presence of 2.3.0.0 doesn't seem to guarantee
+ // coordinates. In some cases, we seen just the following:
+ //
+ // GPS Tag Version |2.3.0.0
+ // GPS Receiver Status |V
+ // Geodetic Survey Data|WGS-84
+ // GPS Differential Cor|0
+ //
+ {2, 3, 0, 0},
+ }
+)
+
+// byteParser knows how to decode an IFD and all of the tags it
+// describes.
+//
+// The IFDs and the actual values can float throughout the EXIF block, but the
+// IFD itself is just a minor header followed by a set of repeating,
+// statically-sized records. So, the tags (though notnecessarily their values)
+// are fairly simple to enumerate.
+type byteParser struct {
+ byteOrder binary.ByteOrder
+ addressableData []byte
+ ifdOffset uint32
+ currentOffset uint32
+}
+
+func newByteParser(addressableData []byte, byteOrder binary.ByteOrder, ifdOffset uint32) (bp *byteParser, err error) {
+ if ifdOffset >= uint32(len(addressableData)) {
+ return nil, ErrOffsetInvalid
+ }
+
+ // TODO(dustin): Add test
+
+ bp = &byteParser{
+ addressableData: addressableData,
+ byteOrder: byteOrder,
+ currentOffset: ifdOffset,
+ }
+
+ return bp, nil
+}
+
+// getUint16 reads a uint16 and advances both our current and our current
+// accumulator (which allows us to know how far to seek to the beginning of the
+// next IFD when it's time to jump).
+func (bp *byteParser) getUint16() (value uint16, raw []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ needBytes := uint32(2)
+
+ if bp.currentOffset+needBytes > uint32(len(bp.addressableData)) {
+ return 0, nil, io.EOF
+ }
+
+ raw = bp.addressableData[bp.currentOffset : bp.currentOffset+needBytes]
+ value = bp.byteOrder.Uint16(raw)
+
+ bp.currentOffset += uint32(needBytes)
+
+ return value, raw, nil
+}
+
+// getUint32 reads a uint32 and advances both our current and our current
+// accumulator (which allows us to know how far to seek to the beginning of the
+// next IFD when it's time to jump).
+func (bp *byteParser) getUint32() (value uint32, raw []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ needBytes := uint32(4)
+
+ if bp.currentOffset+needBytes > uint32(len(bp.addressableData)) {
+ return 0, nil, io.EOF
+ }
+
+ raw = bp.addressableData[bp.currentOffset : bp.currentOffset+needBytes]
+ value = bp.byteOrder.Uint32(raw)
+
+ bp.currentOffset += uint32(needBytes)
+
+ return value, raw, nil
+}
+
+// CurrentOffset returns the starting offset but the number of bytes that we
+// have parsed. This is arithmetic-based tracking, not a seek(0) operation.
+func (bp *byteParser) CurrentOffset() uint32 {
+ return bp.currentOffset
+}
+
+// IfdEnumerate is the main enumeration type. It knows how to parse the IFD
+// containers in the EXIF blob.
+type IfdEnumerate struct {
+ exifData []byte
+ byteOrder binary.ByteOrder
+ tagIndex *TagIndex
+ ifdMapping *exifcommon.IfdMapping
+ furthestOffset uint32
+}
+
+// NewIfdEnumerate returns a new instance of IfdEnumerate.
+func NewIfdEnumerate(ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, exifData []byte, byteOrder binary.ByteOrder) *IfdEnumerate {
+ return &IfdEnumerate{
+ exifData: exifData,
+ byteOrder: byteOrder,
+ ifdMapping: ifdMapping,
+ tagIndex: tagIndex,
+ }
+}
+
+func (ie *IfdEnumerate) getByteParser(ifdOffset uint32) (bp *byteParser, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ bp, err =
+ newByteParser(
+ ie.exifData[ExifAddressableAreaStart:],
+ ie.byteOrder,
+ ifdOffset)
+
+ if err != nil {
+ if err == ErrOffsetInvalid {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ return bp, nil
+}
+
+func (ie *IfdEnumerate) parseTag(ii *exifcommon.IfdIdentity, tagPosition int, bp *byteParser) (ite *IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagId, _, err := bp.getUint16()
+ log.PanicIf(err)
+
+ tagTypeRaw, _, err := bp.getUint16()
+ log.PanicIf(err)
+
+ tagType := exifcommon.TagTypePrimitive(tagTypeRaw)
+
+ unitCount, _, err := bp.getUint32()
+ log.PanicIf(err)
+
+ valueOffset, rawValueOffset, err := bp.getUint32()
+ log.PanicIf(err)
+
+ if tagType.IsValid() == false {
+ ite = &IfdTagEntry{
+ tagId: tagId,
+ tagType: tagType,
+ }
+
+ log.Panic(ErrTagTypeNotValid)
+ }
+
+ ite = newIfdTagEntry(
+ ii,
+ tagId,
+ tagPosition,
+ tagType,
+ unitCount,
+ valueOffset,
+ rawValueOffset,
+ ie.exifData[ExifAddressableAreaStart:],
+ ie.byteOrder)
+
+ ifdPath := ii.UnindexedString()
+
+ // If it's an IFD but not a standard one, it'll just be seen as a LONG
+ // (the standard IFD tag type), later, unless we skip it because it's
+ // [likely] not even in the standard list of known tags.
+ mi, err := ie.ifdMapping.GetChild(ifdPath, tagId)
+ if err == nil {
+ currentIfdTag := ii.IfdTag()
+
+ childIt := exifcommon.NewIfdTag(¤tIfdTag, tagId, mi.Name)
+ iiChild := ii.NewChild(childIt, 0)
+ ite.SetChildIfd(iiChild)
+
+ // We also need to set `tag.ChildFqIfdPath` but can't do it here
+ // because we don't have the IFD index.
+ } else if log.Is(err, exifcommon.ErrChildIfdNotMapped) == false {
+ log.Panic(err)
+ }
+
+ return ite, nil
+}
+
+// TagVisitorFn is called for each tag when enumerating through the EXIF.
+type TagVisitorFn func(fqIfdPath string, ifdIndex int, ite *IfdTagEntry) (err error)
+
+// postparseTag do some tag-level processing here following the parse of each.
+func (ie *IfdEnumerate) postparseTag(ite *IfdTagEntry, med *MiscellaneousExifData) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ ii := ite.IfdIdentity()
+
+ tagId := ite.TagId()
+ tagType := ite.TagType()
+
+ it, err := ie.tagIndex.Get(ii, tagId)
+ if err == nil {
+ ite.setTagName(it.Name)
+ } else {
+ if err != ErrTagNotFound {
+ log.Panic(err)
+ }
+
+ // This is an unknown tag.
+
+ originalBt := exifcommon.BasicTag{
+ FqIfdPath: ii.String(),
+ IfdPath: ii.UnindexedString(),
+ TagId: tagId,
+ }
+
+ if med != nil {
+ med.unknownTags[originalBt] = exifcommon.BasicTag{}
+ }
+
+ utilityLogger.Debugf(nil,
+ "Tag (0x%04x) is not valid for IFD [%s]. Attempting secondary "+
+ "lookup.", tagId, ii.String())
+
+ // This will overwrite the existing `it` and `err`. Since `FindFirst()`
+ // might generate different Errors than `Get()`, the log message above
+ // is import to try and mitigate confusion in that case.
+ it, err = ie.tagIndex.FindFirst(tagId, tagType, nil)
+ if err != nil {
+ if err != ErrTagNotFound {
+ log.Panic(err)
+ }
+
+ // This is supposed to be a convenience function and if we were
+ // to keep the name empty or set it to some placeholder, it
+ // might be mismanaged by the package that is calling us. If
+ // they want to specifically manage these types of tags, they
+ // can use more advanced functionality to specifically -handle
+ // unknown tags.
+ utilityLogger.Warningf(nil,
+ "Tag with ID (0x%04x) in IFD [%s] is not recognized and "+
+ "will be ignored.", tagId, ii.String())
+
+ return ErrTagNotFound
+ }
+
+ ite.setTagName(it.Name)
+
+ utilityLogger.Warningf(nil,
+ "Tag with ID (0x%04x) is not valid for IFD [%s], but it *is* "+
+ "valid as tag [%s] under IFD [%s] and has the same type "+
+ "[%s], so we will use that. This EXIF blob was probably "+
+ "written by a buggy implementation.",
+ tagId, ii.UnindexedString(), it.Name, it.IfdPath,
+ tagType)
+
+ if med != nil {
+ med.unknownTags[originalBt] = exifcommon.BasicTag{
+ IfdPath: it.IfdPath,
+ TagId: tagId,
+ }
+ }
+ }
+
+ // This is a known tag (from the standard, unless the user did
+ // something different).
+
+ // Skip any tags that have a type that doesn't match the type in the
+ // index (which is loaded with the standard and accept tag
+ // information unless configured otherwise).
+ //
+ // We've run into multiple instances of the same tag, where a) no
+ // tag should ever be repeated, and b) all but one had an incorrect
+ // type and caused parsing/conversion woes. So, this is a quick fix
+ // for those scenarios.
+ if it.DoesSupportType(tagType) == false {
+ ifdEnumerateLogger.Warningf(nil,
+ "Skipping tag [%s] (0x%04x) [%s] with an unexpected type: %v ∉ %v",
+ ii.UnindexedString(), tagId, it.Name,
+ tagType, it.SupportedTypes)
+
+ return ErrTagNotFound
+ }
+
+ return nil
+}
+
+// parseIfd decodes the IFD block that we're currently sitting on the first
+// byte of.
+func (ie *IfdEnumerate) parseIfd(ii *exifcommon.IfdIdentity, bp *byteParser, visitor TagVisitorFn, doDescend bool, med *MiscellaneousExifData) (nextIfdOffset uint32, entries []*IfdTagEntry, thumbnailData []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagCount, _, err := bp.getUint16()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "IFD [%s] tag-count: (%d)", ii.String(), tagCount)
+
+ entries = make([]*IfdTagEntry, 0)
+
+ var enumeratorThumbnailOffset *IfdTagEntry
+ var enumeratorThumbnailSize *IfdTagEntry
+
+ for i := 0; i < int(tagCount); i++ {
+ ite, err := ie.parseTag(ii, i, bp)
+ if err != nil {
+ if log.Is(err, ErrTagTypeNotValid) == true {
+ // Technically, we have the type on-file in the tags-index, but
+ // if the type stored alongside the data disagrees with it,
+ // which it apparently does, all bets are off.
+ ifdEnumerateLogger.Warningf(nil, "Tag (0x%04x) in IFD [%s] at position (%d) has invalid type (%d) and will be skipped.", ite.tagId, ii, i, ite.tagType)
+ continue
+ }
+
+ log.Panic(err)
+ }
+
+ err = ie.postparseTag(ite, med)
+ if err == nil {
+ if err == ErrTagNotFound {
+ continue
+ }
+
+ log.PanicIf(err)
+ }
+
+ tagId := ite.TagId()
+
+ if visitor != nil {
+ err := visitor(ii.String(), ii.Index(), ite)
+ log.PanicIf(err)
+ }
+
+ if ite.IsThumbnailOffset() == true {
+ ifdEnumerateLogger.Debugf(nil, "Skipping the thumbnail offset tag (0x%04x). Use accessors to get it or set it.", tagId)
+
+ enumeratorThumbnailOffset = ite
+ entries = append(entries, ite)
+
+ continue
+ } else if ite.IsThumbnailSize() == true {
+ ifdEnumerateLogger.Debugf(nil, "Skipping the thumbnail size tag (0x%04x). Use accessors to get it or set it.", tagId)
+
+ enumeratorThumbnailSize = ite
+ entries = append(entries, ite)
+
+ continue
+ }
+
+ if ite.TagType() != exifcommon.TypeUndefined {
+ // If this tag's value is an offset, bump our max-offset value to
+ // what that offset is plus however large that value is.
+
+ vc := ite.getValueContext()
+
+ farOffset, err := vc.GetFarOffset()
+ if err == nil {
+ candidateOffset := farOffset + uint32(vc.SizeInBytes())
+ if candidateOffset > ie.furthestOffset {
+ ie.furthestOffset = candidateOffset
+ }
+ } else if err != exifcommon.ErrNotFarValue {
+ log.PanicIf(err)
+ }
+ }
+
+ // If it's an IFD but not a standard one, it'll just be seen as a LONG
+ // (the standard IFD tag type), later, unless we skip it because it's
+ // [likely] not even in the standard list of known tags.
+ if ite.ChildIfdPath() != "" {
+ if doDescend == true {
+ ifdEnumerateLogger.Debugf(nil, "Descending from IFD [%s] to IFD [%s].", ii, ite.ChildIfdPath())
+
+ currentIfdTag := ii.IfdTag()
+
+ childIfdTag :=
+ exifcommon.NewIfdTag(
+ ¤tIfdTag,
+ ite.TagId(),
+ ite.ChildIfdName())
+
+ iiChild := ii.NewChild(childIfdTag, 0)
+
+ err := ie.scan(iiChild, ite.getValueOffset(), visitor, med)
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Ascending from IFD [%s] to IFD [%s].", ite.ChildIfdPath(), ii)
+ }
+ }
+
+ entries = append(entries, ite)
+ }
+
+ if enumeratorThumbnailOffset != nil && enumeratorThumbnailSize != nil {
+ thumbnailData, err = ie.parseThumbnail(enumeratorThumbnailOffset, enumeratorThumbnailSize)
+ log.PanicIf(err)
+
+ // In this case, the value is always an offset.
+ offset := enumeratorThumbnailOffset.getValueOffset()
+
+ // This this case, the value is always a length.
+ length := enumeratorThumbnailSize.getValueOffset()
+
+ ifdEnumerateLogger.Debugf(nil, "Found thumbnail in IFD [%s]. Its offset is (%d) and is (%d) bytes.", ii, offset, length)
+
+ furthestOffset := offset + length
+
+ if furthestOffset > ie.furthestOffset {
+ ie.furthestOffset = furthestOffset
+ }
+ }
+
+ nextIfdOffset, _, err = bp.getUint32()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Next IFD at offset: (%08x)", nextIfdOffset)
+
+ return nextIfdOffset, entries, thumbnailData, nil
+}
+
+func (ie *IfdEnumerate) parseThumbnail(offsetIte, lengthIte *IfdTagEntry) (thumbnailData []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ vRaw, err := lengthIte.Value()
+ log.PanicIf(err)
+
+ vList := vRaw.([]uint32)
+ if len(vList) != 1 {
+ log.Panicf("not exactly one long: (%d)", len(vList))
+ }
+
+ length := vList[0]
+
+ // The tag is official a LONG type, but it's actually an offset to a blob of bytes.
+ offsetIte.updateTagType(exifcommon.TypeByte)
+ offsetIte.updateUnitCount(length)
+
+ thumbnailData, err = offsetIte.GetRawBytes()
+ log.PanicIf(err)
+
+ return thumbnailData, nil
+}
+
+// scan parses and enumerates the different IFD blocks and invokes a visitor
+// callback for each tag. No information is kept or returned.
+func (ie *IfdEnumerate) scan(iiGeneral *exifcommon.IfdIdentity, ifdOffset uint32, visitor TagVisitorFn, med *MiscellaneousExifData) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ for ifdIndex := 0; ; ifdIndex++ {
+ iiSibling := iiGeneral.NewSibling(ifdIndex)
+
+ ifdEnumerateLogger.Debugf(nil, "Parsing IFD [%s] at offset (0x%04x) (scan).", iiSibling.String(), ifdOffset)
+
+ bp, err := ie.getByteParser(ifdOffset)
+ if err != nil {
+ if err == ErrOffsetInvalid {
+ ifdEnumerateLogger.Errorf(nil, nil, "IFD [%s] at offset (0x%04x) is unreachable. Terminating scan.", iiSibling.String(), ifdOffset)
+ break
+ }
+
+ log.Panic(err)
+ }
+
+ nextIfdOffset, _, _, err := ie.parseIfd(iiSibling, bp, visitor, true, med)
+ log.PanicIf(err)
+
+ currentOffset := bp.CurrentOffset()
+ if currentOffset > ie.furthestOffset {
+ ie.furthestOffset = currentOffset
+ }
+
+ if nextIfdOffset == 0 {
+ break
+ }
+
+ ifdOffset = nextIfdOffset
+ }
+
+ return nil
+}
+
+// MiscellaneousExifData is reports additional data collected during the parse.
+type MiscellaneousExifData struct {
+ // UnknownTags contains all tags that were invalid for their containing
+ // IFDs. The values represent alternative IFDs that were correctly matched
+ // to those tags and used instead.
+ unknownTags map[exifcommon.BasicTag]exifcommon.BasicTag
+}
+
+// UnknownTags returns the unknown tags encountered during the scan.
+func (med *MiscellaneousExifData) UnknownTags() map[exifcommon.BasicTag]exifcommon.BasicTag {
+ return med.unknownTags
+}
+
+// Scan enumerates the different EXIF blocks (called IFDs). `rootIfdName` will
+// be "IFD" in the TIFF standard.
+func (ie *IfdEnumerate) Scan(iiRoot *exifcommon.IfdIdentity, ifdOffset uint32, visitor TagVisitorFn) (med *MiscellaneousExifData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ med = &MiscellaneousExifData{
+ unknownTags: make(map[exifcommon.BasicTag]exifcommon.BasicTag),
+ }
+
+ err = ie.scan(iiRoot, ifdOffset, visitor, med)
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Scan: It looks like the furthest offset that contained EXIF data in the EXIF blob was (%d) (Scan).", ie.FurthestOffset())
+
+ return med, nil
+}
+
+// Ifd represents a single, parsed IFD.
+type Ifd struct {
+
+ // TODO(dustin): Add NextIfd().
+
+ ifdIdentity *exifcommon.IfdIdentity
+
+ ByteOrder binary.ByteOrder
+
+ Id int
+
+ ParentIfd *Ifd
+
+ // ParentTagIndex is our tag position in the parent IFD, if we had a parent
+ // (if `ParentIfd` is not nil and we weren't an IFD referenced as a sibling
+ // instead of as a child).
+ ParentTagIndex int
+
+ Offset uint32
+
+ Entries []*IfdTagEntry
+ EntriesByTagId map[uint16][]*IfdTagEntry
+
+ Children []*Ifd
+
+ ChildIfdIndex map[string]*Ifd
+
+ NextIfdOffset uint32
+ NextIfd *Ifd
+
+ thumbnailData []byte
+
+ ifdMapping *exifcommon.IfdMapping
+ tagIndex *TagIndex
+}
+
+// IfdIdentity returns IFD identity that this struct represents.
+func (ifd *Ifd) IfdIdentity() *exifcommon.IfdIdentity {
+ return ifd.ifdIdentity
+}
+
+// ChildWithIfdPath returns an `Ifd` struct for the given child of the current
+// IFD.
+func (ifd *Ifd) ChildWithIfdPath(iiChild *exifcommon.IfdIdentity) (childIfd *Ifd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): This is a bridge while we're introducing the IFD type-system. We should be able to use the (IfdIdentity).Equals() method for this.
+ ifdPath := iiChild.UnindexedString()
+
+ for _, childIfd := range ifd.Children {
+ if childIfd.ifdIdentity.UnindexedString() == ifdPath {
+ return childIfd, nil
+ }
+ }
+
+ log.Panic(ErrTagNotFound)
+ return nil, nil
+}
+
+// FindTagWithId returns a list of tags (usually just zero or one) that match
+// the given tag ID. This is efficient.
+func (ifd *Ifd) FindTagWithId(tagId uint16) (results []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ results, found := ifd.EntriesByTagId[tagId]
+ if found != true {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return results, nil
+}
+
+// FindTagWithName returns a list of tags (usually just zero or one) that match
+// the given tag name. This is not efficient (though the labor is trivial).
+func (ifd *Ifd) FindTagWithName(tagName string) (results []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ it, err := ifd.tagIndex.GetWithName(ifd.ifdIdentity, tagName)
+ if log.Is(err, ErrTagNotFound) == true {
+ log.Panic(ErrTagNotKnown)
+ } else if err != nil {
+ log.Panic(err)
+ }
+
+ results = make([]*IfdTagEntry, 0)
+ for _, ite := range ifd.Entries {
+ if ite.TagId() == it.Id {
+ results = append(results, ite)
+ }
+ }
+
+ if len(results) == 0 {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return results, nil
+}
+
+// String returns a description string.
+func (ifd *Ifd) String() string {
+ parentOffset := uint32(0)
+ if ifd.ParentIfd != nil {
+ parentOffset = ifd.ParentIfd.Offset
+ }
+
+ return fmt.Sprintf("Ifd", ifd.Id, ifd.ifdIdentity.UnindexedString(), ifd.ifdIdentity.Index(), len(ifd.Entries), ifd.Offset, len(ifd.Children), parentOffset, ifd.NextIfdOffset)
+}
+
+// Thumbnail returns the raw thumbnail bytes. This is typically directly
+// readable by any standard image viewer.
+func (ifd *Ifd) Thumbnail() (data []byte, err error) {
+
+ if ifd.thumbnailData == nil {
+ return nil, ErrNoThumbnail
+ }
+
+ return ifd.thumbnailData, nil
+}
+
+// dumpTags recursively builds a list of tags from an IFD.
+func (ifd *Ifd) dumpTags(tags []*IfdTagEntry) []*IfdTagEntry {
+ if tags == nil {
+ tags = make([]*IfdTagEntry, 0)
+ }
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, ite := range ifd.Entries {
+ tags = append(tags, ite)
+
+ childIfdPath := ite.ChildIfdPath()
+ if childIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[childIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", childIfdPath)
+ }
+
+ tags = childIfd.dumpTags(tags)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ tags = ifd.NextIfd.dumpTags(tags)
+ }
+
+ return tags
+}
+
+// DumpTags prints the IFD hierarchy.
+func (ifd *Ifd) DumpTags() []*IfdTagEntry {
+ return ifd.dumpTags(nil)
+}
+
+func (ifd *Ifd) printTagTree(populateValues bool, index, level int, nextLink bool) {
+ indent := strings.Repeat(" ", level*2)
+
+ prefix := " "
+ if nextLink {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%sIFD: %s\n", indent, prefix, ifd)
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, ite := range ifd.Entries {
+ if ite.ChildIfdPath() != "" {
+ fmt.Printf("%s - TAG: %s\n", indent, ite)
+ } else {
+ // This will just add noise to the output (byte-tags are fully
+ // dumped).
+ if ite.IsThumbnailOffset() == true || ite.IsThumbnailSize() == true {
+ continue
+ }
+
+ it, err := ifd.tagIndex.Get(ifd.ifdIdentity, ite.TagId())
+
+ tagName := ""
+ if err == nil {
+ tagName = it.Name
+ }
+
+ var valuePhrase string
+ if populateValues == true {
+ var err error
+
+ valuePhrase, err = ite.Format()
+ if err != nil {
+ if log.Is(err, exifcommon.ErrUnhandledUndefinedTypedTag) == true {
+ ifdEnumerateLogger.Warningf(nil, "Skipping non-standard undefined tag: [%s] (%04x)", ifd.ifdIdentity.UnindexedString(), ite.TagId())
+ continue
+ } else if err == exifundefined.ErrUnparseableValue {
+ ifdEnumerateLogger.Warningf(nil, "Skipping unparseable undefined tag: [%s] (%04x) [%s]", ifd.ifdIdentity.UnindexedString(), ite.TagId(), it.Name)
+ continue
+ }
+
+ log.Panic(err)
+ }
+ } else {
+ valuePhrase = "!UNRESOLVED"
+ }
+
+ fmt.Printf("%s - TAG: %s NAME=[%s] VALUE=[%v]\n", indent, ite, tagName, valuePhrase)
+ }
+
+ childIfdPath := ite.ChildIfdPath()
+ if childIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[childIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", childIfdPath)
+ }
+
+ childIfd.printTagTree(populateValues, 0, level+1, false)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ ifd.NextIfd.printTagTree(populateValues, index+1, level, true)
+ }
+}
+
+// PrintTagTree prints the IFD hierarchy.
+func (ifd *Ifd) PrintTagTree(populateValues bool) {
+ ifd.printTagTree(populateValues, 0, 0, false)
+}
+
+func (ifd *Ifd) printIfdTree(level int, nextLink bool) {
+ indent := strings.Repeat(" ", level*2)
+
+ prefix := " "
+ if nextLink {
+ prefix = ">"
+ }
+
+ fmt.Printf("%s%s%s\n", indent, prefix, ifd)
+
+ // Now, print the tags while also descending to child-IFDS as we encounter them.
+
+ ifdsFoundCount := 0
+
+ for _, ite := range ifd.Entries {
+ childIfdPath := ite.ChildIfdPath()
+ if childIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[childIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", childIfdPath)
+ }
+
+ childIfd.printIfdTree(level+1, false)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ if ifd.NextIfd != nil {
+ ifd.NextIfd.printIfdTree(level, true)
+ }
+}
+
+// PrintIfdTree prints the IFD hierarchy.
+func (ifd *Ifd) PrintIfdTree() {
+ ifd.printIfdTree(0, false)
+}
+
+func (ifd *Ifd) dumpTree(tagsDump []string, level int) []string {
+ if tagsDump == nil {
+ tagsDump = make([]string, 0)
+ }
+
+ indent := strings.Repeat(" ", level*2)
+
+ var ifdPhrase string
+ if ifd.ParentIfd != nil {
+ ifdPhrase = fmt.Sprintf("[%s]->[%s]:(%d)", ifd.ParentIfd.ifdIdentity.UnindexedString(), ifd.ifdIdentity.UnindexedString(), ifd.ifdIdentity.Index())
+ } else {
+ ifdPhrase = fmt.Sprintf("[ROOT]->[%s]:(%d)", ifd.ifdIdentity.UnindexedString(), ifd.ifdIdentity.Index())
+ }
+
+ startBlurb := fmt.Sprintf("%s> IFD %s TOP", indent, ifdPhrase)
+ tagsDump = append(tagsDump, startBlurb)
+
+ ifdsFoundCount := 0
+ for _, ite := range ifd.Entries {
+ tagsDump = append(tagsDump, fmt.Sprintf("%s - (0x%04x)", indent, ite.TagId()))
+
+ childIfdPath := ite.ChildIfdPath()
+ if childIfdPath != "" {
+ ifdsFoundCount++
+
+ childIfd, found := ifd.ChildIfdIndex[childIfdPath]
+ if found != true {
+ log.Panicf("alien child IFD referenced by a tag: [%s]", childIfdPath)
+ }
+
+ tagsDump = childIfd.dumpTree(tagsDump, level+1)
+ }
+ }
+
+ if len(ifd.Children) != ifdsFoundCount {
+ log.Panicf("have one or more dangling child IFDs: (%d) != (%d)", len(ifd.Children), ifdsFoundCount)
+ }
+
+ finishBlurb := fmt.Sprintf("%s< IFD %s BOTTOM", indent, ifdPhrase)
+ tagsDump = append(tagsDump, finishBlurb)
+
+ if ifd.NextIfd != nil {
+ siblingBlurb := fmt.Sprintf("%s* LINKING TO SIBLING IFD [%s]:(%d)", indent, ifd.NextIfd.ifdIdentity.UnindexedString(), ifd.NextIfd.ifdIdentity.Index())
+ tagsDump = append(tagsDump, siblingBlurb)
+
+ tagsDump = ifd.NextIfd.dumpTree(tagsDump, level)
+ }
+
+ return tagsDump
+}
+
+// DumpTree returns a list of strings describing the IFD hierarchy.
+func (ifd *Ifd) DumpTree() []string {
+ return ifd.dumpTree(nil, 0)
+}
+
+// GpsInfo parses and consolidates the GPS info. This can only be called on the
+// GPS IFD.
+func (ifd *Ifd) GpsInfo() (gi *GpsInfo, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ gi = new(GpsInfo)
+
+ if ifd.ifdIdentity.UnindexedString() != exifcommon.IfdGpsInfoStandardIfdIdentity.UnindexedString() {
+ log.Panicf("GPS can only be read on GPS IFD: [%s] != [%s]", ifd.ifdIdentity.UnindexedString(), exifcommon.IfdGpsInfoStandardIfdIdentity.UnindexedString())
+ }
+
+ if tags, found := ifd.EntriesByTagId[TagGpsVersionId]; found == false {
+ // We've seen this. We'll just have to default to assuming we're in a
+ // 2.2.0.0 format.
+ ifdEnumerateLogger.Warningf(nil, "No GPS version tag (0x%04x) found.", TagGpsVersionId)
+ } else {
+ versionBytes, err := tags[0].GetRawBytes()
+ log.PanicIf(err)
+
+ hit := false
+ for _, acceptedGpsVersion := range ValidGpsVersions {
+ if bytes.Compare(versionBytes, acceptedGpsVersion[:]) == 0 {
+ hit = true
+ break
+ }
+ }
+
+ if hit != true {
+ ifdEnumerateLogger.Warningf(nil, "GPS version not supported: %v", versionBytes)
+ log.Panic(ErrNoGpsTags)
+ }
+ }
+
+ tags, found := ifd.EntriesByTagId[TagLatitudeId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "latitude not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ latitudeValue, err := tags[0].Value()
+ log.PanicIf(err)
+
+ // Look for whether North or South.
+ tags, found = ifd.EntriesByTagId[TagLatitudeRefId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "latitude-ref not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ latitudeRefValue, err := tags[0].Value()
+ log.PanicIf(err)
+
+ tags, found = ifd.EntriesByTagId[TagLongitudeId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "longitude not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ longitudeValue, err := tags[0].Value()
+ log.PanicIf(err)
+
+ // Look for whether West or East.
+ tags, found = ifd.EntriesByTagId[TagLongitudeRefId]
+ if found == false {
+ ifdEnumerateLogger.Warningf(nil, "longitude-ref not found")
+ log.Panic(ErrNoGpsTags)
+ }
+
+ longitudeRefValue, err := tags[0].Value()
+ log.PanicIf(err)
+
+ // Parse location.
+
+ latitudeRaw := latitudeValue.([]exifcommon.Rational)
+
+ gi.Latitude, err = NewGpsDegreesFromRationals(latitudeRefValue.(string), latitudeRaw)
+ log.PanicIf(err)
+
+ longitudeRaw := longitudeValue.([]exifcommon.Rational)
+
+ gi.Longitude, err = NewGpsDegreesFromRationals(longitudeRefValue.(string), longitudeRaw)
+ log.PanicIf(err)
+
+ // Parse altitude.
+
+ altitudeTags, foundAltitude := ifd.EntriesByTagId[TagAltitudeId]
+ altitudeRefTags, foundAltitudeRef := ifd.EntriesByTagId[TagAltitudeRefId]
+
+ if foundAltitude == true && foundAltitudeRef == true {
+ altitudePhrase, err := altitudeTags[0].Format()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Altitude is [%s].", altitudePhrase)
+
+ altitudeValue, err := altitudeTags[0].Value()
+ log.PanicIf(err)
+
+ altitudeRefPhrase, err := altitudeRefTags[0].Format()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Altitude-reference is [%s].", altitudeRefPhrase)
+
+ altitudeRefValue, err := altitudeRefTags[0].Value()
+ log.PanicIf(err)
+
+ altitudeRaw := altitudeValue.([]exifcommon.Rational)
+ if altitudeRaw[0].Denominator > 0 {
+ altitude := int(altitudeRaw[0].Numerator / altitudeRaw[0].Denominator)
+
+ if altitudeRefValue.([]byte)[0] == 1 {
+ altitude *= -1
+ }
+
+ gi.Altitude = altitude
+ }
+ }
+
+ // Parse timestamp from separate date and time tags.
+
+ timestampTags, foundTimestamp := ifd.EntriesByTagId[TagTimestampId]
+ datestampTags, foundDatestamp := ifd.EntriesByTagId[TagDatestampId]
+
+ if foundTimestamp == true && foundDatestamp == true {
+ datestampValue, err := datestampTags[0].Value()
+ log.PanicIf(err)
+
+ datePhrase := datestampValue.(string)
+ ifdEnumerateLogger.Debugf(nil, "Date tag value is [%s].", datePhrase)
+
+ // Normalize the separators.
+ datePhrase = strings.ReplaceAll(datePhrase, "-", ":")
+
+ dateParts := strings.Split(datePhrase, ":")
+
+ year, err1 := strconv.ParseUint(dateParts[0], 10, 16)
+ month, err2 := strconv.ParseUint(dateParts[1], 10, 8)
+ day, err3 := strconv.ParseUint(dateParts[2], 10, 8)
+
+ if err1 == nil && err2 == nil && err3 == nil {
+ timestampValue, err := timestampTags[0].Value()
+ log.PanicIf(err)
+
+ timePhrase, err := timestampTags[0].Format()
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Time tag value is [%s].", timePhrase)
+
+ timestampRaw := timestampValue.([]exifcommon.Rational)
+
+ hour := int(timestampRaw[0].Numerator / timestampRaw[0].Denominator)
+ minute := int(timestampRaw[1].Numerator / timestampRaw[1].Denominator)
+ second := int(timestampRaw[2].Numerator / timestampRaw[2].Denominator)
+
+ gi.Timestamp = time.Date(int(year), time.Month(month), int(day), hour, minute, second, 0, time.UTC)
+ }
+ }
+
+ return gi, nil
+}
+
+// ParsedTagVisitor is a callback used if wanting to visit through all tags and
+// child IFDs from the current IFD and going down.
+type ParsedTagVisitor func(*Ifd, *IfdTagEntry) error
+
+// EnumerateTagsRecursively calls the given visitor function for every tag and
+// IFD in the current IFD, recursively.
+func (ifd *Ifd) EnumerateTagsRecursively(visitor ParsedTagVisitor) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for ptr := ifd; ptr != nil; ptr = ptr.NextIfd {
+ for _, ite := range ifd.Entries {
+ childIfdPath := ite.ChildIfdPath()
+ if childIfdPath != "" {
+ childIfd := ifd.ChildIfdIndex[childIfdPath]
+
+ err := childIfd.EnumerateTagsRecursively(visitor)
+ log.PanicIf(err)
+ } else {
+ err := visitor(ifd, ite)
+ log.PanicIf(err)
+ }
+ }
+ }
+
+ return nil
+}
+
+// QueuedIfd is one IFD that has been identified but yet to be processed.
+type QueuedIfd struct {
+ IfdIdentity *exifcommon.IfdIdentity
+
+ Offset uint32
+ Parent *Ifd
+
+ // ParentTagIndex is our tag position in the parent IFD, if we had a parent
+ // (if `ParentIfd` is not nil and we weren't an IFD referenced as a sibling
+ // instead of as a child).
+ ParentTagIndex int
+}
+
+// IfdIndex collects a bunch of IFD and tag information stored in several
+// different ways in order to provide convenient lookups.
+type IfdIndex struct {
+ RootIfd *Ifd
+ Ifds []*Ifd
+ Tree map[int]*Ifd
+ Lookup map[string]*Ifd
+}
+
+// Collect enumerates the different EXIF blocks (called IFDs) and builds out an
+// index struct for referencing all of the parsed data.
+func (ie *IfdEnumerate) Collect(rootIfdOffset uint32) (index IfdIndex, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add MiscellaneousExifData to IfdIndex
+
+ tree := make(map[int]*Ifd)
+ ifds := make([]*Ifd, 0)
+ lookup := make(map[string]*Ifd)
+
+ queue := []QueuedIfd{
+ {
+ IfdIdentity: exifcommon.IfdStandardIfdIdentity,
+ Offset: rootIfdOffset,
+ },
+ }
+
+ edges := make(map[uint32]*Ifd)
+
+ for {
+ if len(queue) == 0 {
+ break
+ }
+
+ qi := queue[0]
+ ii := qi.IfdIdentity
+
+ offset := qi.Offset
+ parentIfd := qi.Parent
+
+ queue = queue[1:]
+
+ ifdEnumerateLogger.Debugf(nil, "Parsing IFD [%s] (%d) at offset (0x%04x) (Collect).", ii.String(), ii.Index(), offset)
+
+ bp, err := ie.getByteParser(offset)
+ if err != nil {
+ if err == ErrOffsetInvalid {
+ return index, err
+ }
+
+ log.Panic(err)
+ }
+
+ // TODO(dustin): We don't need to pass the index in as a separate argument. Get from the II.
+
+ nextIfdOffset, entries, thumbnailData, err := ie.parseIfd(ii, bp, nil, false, nil)
+ log.PanicIf(err)
+
+ currentOffset := bp.CurrentOffset()
+ if currentOffset > ie.furthestOffset {
+ ie.furthestOffset = currentOffset
+ }
+
+ id := len(ifds)
+
+ entriesByTagId := make(map[uint16][]*IfdTagEntry)
+ for _, ite := range entries {
+ tagId := ite.TagId()
+
+ tags, found := entriesByTagId[tagId]
+ if found == false {
+ tags = make([]*IfdTagEntry, 0)
+ }
+
+ entriesByTagId[tagId] = append(tags, ite)
+ }
+
+ ifd := &Ifd{
+ ifdIdentity: ii,
+
+ ByteOrder: ie.byteOrder,
+
+ Id: id,
+
+ ParentIfd: parentIfd,
+ ParentTagIndex: qi.ParentTagIndex,
+
+ Offset: offset,
+ Entries: entries,
+ EntriesByTagId: entriesByTagId,
+
+ // This is populated as each child is processed.
+ Children: make([]*Ifd, 0),
+
+ NextIfdOffset: nextIfdOffset,
+ thumbnailData: thumbnailData,
+
+ ifdMapping: ie.ifdMapping,
+ tagIndex: ie.tagIndex,
+ }
+
+ // Add ourselves to a big list of IFDs.
+ ifds = append(ifds, ifd)
+
+ // Install ourselves into a by-id lookup table (keys are unique).
+ tree[id] = ifd
+
+ // Install into by-name buckets.
+ lookup[ii.String()] = ifd
+
+ // Add a link from the previous IFD in the chain to us.
+ if previousIfd, found := edges[offset]; found == true {
+ previousIfd.NextIfd = ifd
+ }
+
+ // Attach as a child to our parent (where we appeared as a tag in
+ // that IFD).
+ if parentIfd != nil {
+ parentIfd.Children = append(parentIfd.Children, ifd)
+ }
+
+ // Determine if any of our entries is a child IFD and queue it.
+ for i, ite := range entries {
+ if ite.ChildIfdPath() == "" {
+ continue
+ }
+
+ tagId := ite.TagId()
+ childIfdName := ite.ChildIfdName()
+
+ currentIfdTag := ii.IfdTag()
+
+ childIfdTag :=
+ exifcommon.NewIfdTag(
+ ¤tIfdTag,
+ tagId,
+ childIfdName)
+
+ iiChild := ii.NewChild(childIfdTag, 0)
+
+ qi := QueuedIfd{
+ IfdIdentity: iiChild,
+
+ Offset: ite.getValueOffset(),
+ Parent: ifd,
+ ParentTagIndex: i,
+ }
+
+ queue = append(queue, qi)
+ }
+
+ // If there's another IFD in the chain.
+ if nextIfdOffset != 0 {
+ iiSibling := ii.NewSibling(ii.Index() + 1)
+
+ // Allow the next link to know what the previous link was.
+ edges[nextIfdOffset] = ifd
+
+ qi := QueuedIfd{
+ IfdIdentity: iiSibling,
+ Offset: nextIfdOffset,
+ }
+
+ queue = append(queue, qi)
+ }
+ }
+
+ index.RootIfd = tree[0]
+ index.Ifds = ifds
+ index.Tree = tree
+ index.Lookup = lookup
+
+ err = ie.setChildrenIndex(index.RootIfd)
+ log.PanicIf(err)
+
+ ifdEnumerateLogger.Debugf(nil, "Collect: It looks like the furthest offset that contained EXIF data in the EXIF blob was (%d).", ie.FurthestOffset())
+
+ return index, nil
+}
+
+func (ie *IfdEnumerate) setChildrenIndex(ifd *Ifd) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ childIfdIndex := make(map[string]*Ifd)
+ for _, childIfd := range ifd.Children {
+ childIfdIndex[childIfd.ifdIdentity.UnindexedString()] = childIfd
+ }
+
+ ifd.ChildIfdIndex = childIfdIndex
+
+ for _, childIfd := range ifd.Children {
+ err := ie.setChildrenIndex(childIfd)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
+
+// FurthestOffset returns the furthest offset visited in the EXIF blob. This
+// *does not* account for the locations of any undefined tags since we always
+// evaluate the furthest offset, whether or not the user wants to know it.
+//
+// We are not willing to incur the cost of actually parsing those tags just to
+// know their length when there are still undefined tags that are out there
+// that we still won't have any idea how to parse, thus making this an
+// approximation regardless of how clever we get.
+func (ie *IfdEnumerate) FurthestOffset() uint32 {
+
+ // TODO(dustin): Add test
+
+ return ie.furthestOffset
+}
+
+// ParseOneIfd is a hack to use an IE to parse a raw IFD block. Can be used for
+// testing. The fqIfdPath ("fully-qualified IFD path") will be less qualified
+// in that the numeric index will always be zero (the zeroth child) rather than
+// the proper number (if its actually a sibling to the first child, for
+// instance).
+func ParseOneIfd(ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, ii *exifcommon.IfdIdentity, byteOrder binary.ByteOrder, ifdBlock []byte, visitor TagVisitorFn) (nextIfdOffset uint32, entries []*IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, make([]byte, 0), byteOrder)
+
+ bp, err := newByteParser(ifdBlock, byteOrder, 0)
+ if err != nil {
+ if err == ErrOffsetInvalid {
+ return 0, nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ nextIfdOffset, entries, _, err = ie.parseIfd(ii, bp, visitor, true, nil)
+ log.PanicIf(err)
+
+ return nextIfdOffset, entries, nil
+}
+
+// ParseOneTag is a hack to use an IE to parse a raw tag block.
+func ParseOneTag(ifdMapping *exifcommon.IfdMapping, tagIndex *TagIndex, ii *exifcommon.IfdIdentity, byteOrder binary.ByteOrder, tagBlock []byte) (ite *IfdTagEntry, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ie := NewIfdEnumerate(ifdMapping, tagIndex, make([]byte, 0), byteOrder)
+
+ bp, err := newByteParser(tagBlock, byteOrder, 0)
+ if err != nil {
+ if err == ErrOffsetInvalid {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ ite, err = ie.parseTag(ii, 0, bp)
+ log.PanicIf(err)
+
+ err = ie.postparseTag(ite, nil)
+ if err != nil {
+ if err == ErrTagNotFound {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ return ite, nil
+}
+
+// FindIfdFromRootIfd returns the given `Ifd` given the root-IFD and path of the
+// desired IFD.
+func FindIfdFromRootIfd(rootIfd *Ifd, ifdPath string) (ifd *Ifd, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): !! Add test.
+
+ lineage, err := rootIfd.ifdMapping.ResolvePath(ifdPath)
+ log.PanicIf(err)
+
+ // Confirm the first IFD is our root IFD type, and then prune it because
+ // from then on we'll be searching down through our children.
+
+ if len(lineage) == 0 {
+ log.Panicf("IFD path must be non-empty.")
+ } else if lineage[0].Name != exifcommon.IfdStandardIfdIdentity.Name() {
+ log.Panicf("First IFD path item must be [%s].", exifcommon.IfdStandardIfdIdentity.Name())
+ }
+
+ desiredRootIndex := lineage[0].Index
+ lineage = lineage[1:]
+
+ // TODO(dustin): !! This is a poorly conceived fix that just doubles the work we already have to do below, which then interacts badly with the indices not being properly represented in the IFD-phrase.
+ // TODO(dustin): !! <-- However, we're not sure whether we shouldn't store a secondary IFD-path with the indices. Some IFDs may not necessarily restrict which IFD indices they can be a child of (only the IFD itself matters). Validation should be delegated to the caller.
+ thisIfd := rootIfd
+ for currentRootIndex := 0; currentRootIndex < desiredRootIndex; currentRootIndex++ {
+ if thisIfd.NextIfd == nil {
+ log.Panicf("Root-IFD index (%d) does not exist in the data.", currentRootIndex)
+ }
+
+ thisIfd = thisIfd.NextIfd
+ }
+
+ for _, itii := range lineage {
+ var hit *Ifd
+ for _, childIfd := range thisIfd.Children {
+ if childIfd.ifdIdentity.TagId() == itii.TagId {
+ hit = childIfd
+ break
+ }
+ }
+
+ // If we didn't find the child, add it.
+ if hit == nil {
+ log.Panicf("IFD [%s] in [%s] not found: %s", itii.Name, ifdPath, thisIfd.Children)
+ }
+
+ thisIfd = hit
+
+ // If we didn't find the sibling, add it.
+ for i := 0; i < itii.Index; i++ {
+ if thisIfd.NextIfd == nil {
+ log.Panicf("IFD [%s] does not have (%d) occurrences/siblings", thisIfd.ifdIdentity.UnindexedString(), itii.Index)
+ }
+
+ thisIfd = thisIfd.NextIfd
+ }
+ }
+
+ return thisIfd, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/ifd_tag_entry.go b/vendor/github.com/dsoprea/go-exif/v2/ifd_tag_entry.go
new file mode 100644
index 000000000..789a9981c
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/ifd_tag_entry.go
@@ -0,0 +1,297 @@
+package exif
+
+import (
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+ "github.com/dsoprea/go-exif/v2/undefined"
+)
+
+var (
+ iteLogger = log.NewLogger("exif.ifd_tag_entry")
+)
+
+// IfdTagEntry refers to a tag in the loaded EXIF block.
+type IfdTagEntry struct {
+ tagId uint16
+ tagIndex int
+ tagType exifcommon.TagTypePrimitive
+ unitCount uint32
+ valueOffset uint32
+ rawValueOffset []byte
+
+ // childIfdName is the right most atom in the IFD-path. We need this to
+ // construct the fully-qualified IFD-path.
+ childIfdName string
+
+ // childIfdPath is the IFD-path of the child if this tag represents a child
+ // IFD.
+ childIfdPath string
+
+ // childFqIfdPath is the IFD-path of the child if this tag represents a
+ // child IFD. Includes indices.
+ childFqIfdPath string
+
+ // TODO(dustin): !! IB's host the child-IBs directly in the tag, but that's not the case here. Refactor to accommodate it for a consistent experience.
+
+ ifdIdentity *exifcommon.IfdIdentity
+
+ isUnhandledUnknown bool
+
+ addressableData []byte
+ byteOrder binary.ByteOrder
+
+ tagName string
+}
+
+func newIfdTagEntry(ii *exifcommon.IfdIdentity, tagId uint16, tagIndex int, tagType exifcommon.TagTypePrimitive, unitCount uint32, valueOffset uint32, rawValueOffset []byte, addressableData []byte, byteOrder binary.ByteOrder) *IfdTagEntry {
+ return &IfdTagEntry{
+ ifdIdentity: ii,
+ tagId: tagId,
+ tagIndex: tagIndex,
+ tagType: tagType,
+ unitCount: unitCount,
+ valueOffset: valueOffset,
+ rawValueOffset: rawValueOffset,
+ addressableData: addressableData,
+ byteOrder: byteOrder,
+ }
+}
+
+// String returns a stringified representation of the struct.
+func (ite *IfdTagEntry) String() string {
+ return fmt.Sprintf("IfdTagEntry", ite.ifdIdentity.String(), ite.tagId, ite.tagType.String(), ite.unitCount)
+}
+
+// TagName returns the name of the tag. This is determined else and set after
+// the parse (since it's not actually stored in the stream). If it's empty, it
+// is because it is an unknown tag (nonstandard or otherwise unavailable in the
+// tag-index).
+func (ite *IfdTagEntry) TagName() string {
+ return ite.tagName
+}
+
+// setTagName sets the tag-name. This provides the name for convenience and
+// efficiency by determining it when most efficient while we're parsing rather
+// than delegating it to the caller (or, worse, the user).
+func (ite *IfdTagEntry) setTagName(tagName string) {
+ ite.tagName = tagName
+}
+
+// IfdPath returns the fully-qualified path of the IFD that owns this tag.
+func (ite *IfdTagEntry) IfdPath() string {
+ return ite.ifdIdentity.String()
+}
+
+// TagId returns the ID of the tag that we represent. The combination of
+// (IfdPath(), TagId()) is unique.
+func (ite *IfdTagEntry) TagId() uint16 {
+ return ite.tagId
+}
+
+// IsThumbnailOffset returns true if the tag has the IFD and tag-ID of a
+// thumbnail offset.
+func (ite *IfdTagEntry) IsThumbnailOffset() bool {
+ return ite.tagId == ThumbnailOffsetTagId && ite.ifdIdentity.String() == ThumbnailFqIfdPath
+}
+
+// IsThumbnailSize returns true if the tag has the IFD and tag-ID of a thumbnail
+// size.
+func (ite *IfdTagEntry) IsThumbnailSize() bool {
+ return ite.tagId == ThumbnailSizeTagId && ite.ifdIdentity.String() == ThumbnailFqIfdPath
+}
+
+// TagType is the type of value for this tag.
+func (ite *IfdTagEntry) TagType() exifcommon.TagTypePrimitive {
+ return ite.tagType
+}
+
+// updateTagType sets an alternatively interpreted tag-type.
+func (ite *IfdTagEntry) updateTagType(tagType exifcommon.TagTypePrimitive) {
+ ite.tagType = tagType
+}
+
+// UnitCount returns the unit-count of the tag's value.
+func (ite *IfdTagEntry) UnitCount() uint32 {
+ return ite.unitCount
+}
+
+// updateUnitCount sets an alternatively interpreted unit-count.
+func (ite *IfdTagEntry) updateUnitCount(unitCount uint32) {
+ ite.unitCount = unitCount
+}
+
+// getValueOffset is the four-byte offset converted to an integer to point to
+// the location of its value in the EXIF block. The "get" parameter is obviously
+// used in order to differentiate the naming of the method from the field.
+func (ite *IfdTagEntry) getValueOffset() uint32 {
+ return ite.valueOffset
+}
+
+// GetRawBytes renders a specific list of bytes from the value in this tag.
+func (ite *IfdTagEntry) GetRawBytes() (rawBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext := ite.getValueContext()
+
+ if ite.tagType == exifcommon.TypeUndefined {
+ value, err := exifundefined.Decode(valueContext)
+ if err != nil {
+ if err == exifcommon.ErrUnhandledUndefinedTypedTag {
+ ite.setIsUnhandledUnknown(true)
+ return nil, exifundefined.ErrUnparseableValue
+ } else if err == exifundefined.ErrUnparseableValue {
+ return nil, err
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ // Encode it back, in order to get the raw bytes. This is the best,
+ // general way to do it with an undefined tag.
+
+ rawBytes, _, err := exifundefined.Encode(value, ite.byteOrder)
+ log.PanicIf(err)
+
+ return rawBytes, nil
+ }
+
+ rawBytes, err = valueContext.ReadRawEncoded()
+ log.PanicIf(err)
+
+ return rawBytes, nil
+}
+
+// Value returns the specific, parsed, typed value from the tag.
+func (ite *IfdTagEntry) Value() (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext := ite.getValueContext()
+
+ if ite.tagType == exifcommon.TypeUndefined {
+ var err error
+
+ value, err = exifundefined.Decode(valueContext)
+ if err != nil {
+ if err == exifcommon.ErrUnhandledUndefinedTypedTag || err == exifundefined.ErrUnparseableValue {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+ } else {
+ var err error
+
+ value, err = valueContext.Values()
+ log.PanicIf(err)
+ }
+
+ return value, nil
+}
+
+// Format returns the tag's value as a string.
+func (ite *IfdTagEntry) Format() (phrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ value, err := ite.Value()
+ if err != nil {
+ if err == exifcommon.ErrUnhandledUndefinedTypedTag {
+ return exifundefined.UnparseableUnknownTagValuePlaceholder, nil
+ } else if err == exifundefined.ErrUnparseableValue {
+ return exifundefined.UnparseableHandledTagValuePlaceholder, nil
+ }
+
+ log.Panic(err)
+ }
+
+ phrase, err = exifcommon.FormatFromType(value, false)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+// FormatFirst returns the same as Format() but only the first item.
+func (ite *IfdTagEntry) FormatFirst() (phrase string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): We should add a convenience type "timestamp", to simplify translating to and from the physical ASCII and provide validation.
+
+ value, err := ite.Value()
+ if err != nil {
+ if err == exifcommon.ErrUnhandledUndefinedTypedTag {
+ return exifundefined.UnparseableUnknownTagValuePlaceholder, nil
+ }
+
+ log.Panic(err)
+ }
+
+ phrase, err = exifcommon.FormatFromType(value, true)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+func (ite *IfdTagEntry) setIsUnhandledUnknown(isUnhandledUnknown bool) {
+ ite.isUnhandledUnknown = isUnhandledUnknown
+}
+
+// SetChildIfd sets child-IFD information (if we represent a child IFD).
+func (ite *IfdTagEntry) SetChildIfd(ii *exifcommon.IfdIdentity) {
+ ite.childFqIfdPath = ii.String()
+ ite.childIfdPath = ii.UnindexedString()
+ ite.childIfdName = ii.Name()
+}
+
+// ChildIfdName returns the name of the child IFD
+func (ite *IfdTagEntry) ChildIfdName() string {
+ return ite.childIfdName
+}
+
+// ChildIfdPath returns the path of the child IFD.
+func (ite *IfdTagEntry) ChildIfdPath() string {
+ return ite.childIfdPath
+}
+
+// ChildFqIfdPath returns the complete path of the child IFD along with the
+// numeric suffixes differentiating sibling occurrences of the same type. "0"
+// indices are omitted.
+func (ite *IfdTagEntry) ChildFqIfdPath() string {
+ return ite.childFqIfdPath
+}
+
+// IfdIdentity returns the IfdIdentity associated with this tag.
+func (ite *IfdTagEntry) IfdIdentity() *exifcommon.IfdIdentity {
+ return ite.ifdIdentity
+}
+
+func (ite *IfdTagEntry) getValueContext() *exifcommon.ValueContext {
+ return exifcommon.NewValueContext(
+ ite.ifdIdentity.String(),
+ ite.tagId,
+ ite.unitCount,
+ ite.valueOffset,
+ ite.rawValueOffset,
+ ite.addressableData,
+ ite.tagType,
+ ite.byteOrder)
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/package.go b/vendor/github.com/dsoprea/go-exif/v2/package.go
new file mode 100644
index 000000000..428f74e3a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/package.go
@@ -0,0 +1,8 @@
+// Package exif parses raw EXIF information given a block of raw EXIF data. It
+// can also construct new EXIF information, and provides tools for doing so.
+// This package is not involved with the parsing of particular file-formats.
+//
+// The EXIF data must first be extracted and then provided to us. Conversely,
+// when constructing new EXIF data, the caller is responsible for packaging
+// this in whichever format they require.
+package exif
diff --git a/vendor/github.com/dsoprea/go-exif/v2/tags.go b/vendor/github.com/dsoprea/go-exif/v2/tags.go
new file mode 100644
index 000000000..f53d9ce9c
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/tags.go
@@ -0,0 +1,411 @@
+package exif
+
+import (
+ "fmt"
+
+ "github.com/dsoprea/go-logging"
+ "gopkg.in/yaml.v2"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+const (
+ // IFD1
+
+ // ThumbnailFqIfdPath is the fully-qualified IFD path that the thumbnail
+ // must be found in.
+ ThumbnailFqIfdPath = "IFD1"
+
+ // ThumbnailOffsetTagId returns the tag-ID of the thumbnail offset.
+ ThumbnailOffsetTagId = 0x0201
+
+ // ThumbnailSizeTagId returns the tag-ID of the thumbnail size.
+ ThumbnailSizeTagId = 0x0202
+)
+
+const (
+ // GPS
+
+ // TagGpsVersionId is the ID of the GPS version tag.
+ TagGpsVersionId = 0x0000
+
+ // TagLatitudeId is the ID of the GPS latitude tag.
+ TagLatitudeId = 0x0002
+
+ // TagLatitudeRefId is the ID of the GPS latitude orientation tag.
+ TagLatitudeRefId = 0x0001
+
+ // TagLongitudeId is the ID of the GPS longitude tag.
+ TagLongitudeId = 0x0004
+
+ // TagLongitudeRefId is the ID of the GPS longitude-orientation tag.
+ TagLongitudeRefId = 0x0003
+
+ // TagTimestampId is the ID of the GPS time tag.
+ TagTimestampId = 0x0007
+
+ // TagDatestampId is the ID of the GPS date tag.
+ TagDatestampId = 0x001d
+
+ // TagAltitudeId is the ID of the GPS altitude tag.
+ TagAltitudeId = 0x0006
+
+ // TagAltitudeRefId is the ID of the GPS altitude-orientation tag.
+ TagAltitudeRefId = 0x0005
+)
+
+var (
+ // tagsWithoutAlignment is a tag-lookup for tags whose value size won't
+ // necessarily be a multiple of its tag-type.
+ tagsWithoutAlignment = map[uint16]struct{}{
+ // The thumbnail offset is stored as a long, but its data is a binary
+ // blob (not a slice of longs).
+ ThumbnailOffsetTagId: {},
+ }
+)
+
+var (
+ tagsLogger = log.NewLogger("exif.tags")
+)
+
+// File structures.
+
+type encodedTag struct {
+ // id is signed, here, because YAML doesn't have enough information to
+ // support unsigned.
+ Id int `yaml:"id"`
+ Name string `yaml:"name"`
+ TypeName string `yaml:"type_name"`
+ TypeNames []string `yaml:"type_names"`
+}
+
+// Indexing structures.
+
+// IndexedTag describes one index lookup result.
+type IndexedTag struct {
+ // Id is the tag-ID.
+ Id uint16
+
+ // Name is the tag name.
+ Name string
+
+ // IfdPath is the proper IFD path of this tag. This is not fully-qualified.
+ IfdPath string
+
+ // SupportedTypes is an unsorted list of allowed tag-types.
+ SupportedTypes []exifcommon.TagTypePrimitive
+}
+
+// String returns a descriptive string.
+func (it *IndexedTag) String() string {
+ return fmt.Sprintf("TAG", it.Id, it.Name, it.IfdPath)
+}
+
+// IsName returns true if this tag matches the given tag name.
+func (it *IndexedTag) IsName(ifdPath, name string) bool {
+ return it.Name == name && it.IfdPath == ifdPath
+}
+
+// Is returns true if this tag matched the given tag ID.
+func (it *IndexedTag) Is(ifdPath string, id uint16) bool {
+ return it.Id == id && it.IfdPath == ifdPath
+}
+
+// GetEncodingType returns the largest type that this tag's value can occupy.
+func (it *IndexedTag) GetEncodingType(value interface{}) exifcommon.TagTypePrimitive {
+ // For convenience, we handle encoding a `time.Time` directly.
+ if IsTime(value) == true {
+ // Timestamps are encoded as ASCII.
+ value = ""
+ }
+
+ if len(it.SupportedTypes) == 0 {
+ log.Panicf("IndexedTag [%s] (%d) has no supported types.", it.IfdPath, it.Id)
+ } else if len(it.SupportedTypes) == 1 {
+ return it.SupportedTypes[0]
+ }
+
+ supportsLong := false
+ supportsShort := false
+ supportsRational := false
+ supportsSignedRational := false
+ for _, supportedType := range it.SupportedTypes {
+ if supportedType == exifcommon.TypeLong {
+ supportsLong = true
+ } else if supportedType == exifcommon.TypeShort {
+ supportsShort = true
+ } else if supportedType == exifcommon.TypeRational {
+ supportsRational = true
+ } else if supportedType == exifcommon.TypeSignedRational {
+ supportsSignedRational = true
+ }
+ }
+
+ // We specifically check for the cases that we know to expect.
+
+ if supportsLong == true && supportsShort == true {
+ return exifcommon.TypeLong
+ } else if supportsRational == true && supportsSignedRational == true {
+ if value == nil {
+ log.Panicf("GetEncodingType: require value to be given")
+ }
+
+ if _, ok := value.(exifcommon.SignedRational); ok == true {
+ return exifcommon.TypeSignedRational
+ }
+
+ return exifcommon.TypeRational
+ }
+
+ log.Panicf("WidestSupportedType() case is not handled for tag [%s] (0x%04x): %v", it.IfdPath, it.Id, it.SupportedTypes)
+ return 0
+}
+
+// DoesSupportType returns true if this tag can be found/decoded with this type.
+func (it *IndexedTag) DoesSupportType(tagType exifcommon.TagTypePrimitive) bool {
+ // This is always a very small collection. So, we keep it unsorted.
+ for _, thisTagType := range it.SupportedTypes {
+ if thisTagType == tagType {
+ return true
+ }
+ }
+
+ return false
+}
+
+// TagIndex is a tag-lookup facility.
+type TagIndex struct {
+ tagsByIfd map[string]map[uint16]*IndexedTag
+ tagsByIfdR map[string]map[string]*IndexedTag
+}
+
+// NewTagIndex returns a new TagIndex struct.
+func NewTagIndex() *TagIndex {
+ ti := new(TagIndex)
+
+ ti.tagsByIfd = make(map[string]map[uint16]*IndexedTag)
+ ti.tagsByIfdR = make(map[string]map[string]*IndexedTag)
+
+ return ti
+}
+
+// Add registers a new tag to be recognized during the parse.
+func (ti *TagIndex) Add(it *IndexedTag) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Store by ID.
+
+ family, found := ti.tagsByIfd[it.IfdPath]
+ if found == false {
+ family = make(map[uint16]*IndexedTag)
+ ti.tagsByIfd[it.IfdPath] = family
+ }
+
+ if _, found := family[it.Id]; found == true {
+ log.Panicf("tag-ID defined more than once for IFD [%s]: (%02x)", it.IfdPath, it.Id)
+ }
+
+ family[it.Id] = it
+
+ // Store by name.
+
+ familyR, found := ti.tagsByIfdR[it.IfdPath]
+ if found == false {
+ familyR = make(map[string]*IndexedTag)
+ ti.tagsByIfdR[it.IfdPath] = familyR
+ }
+
+ if _, found := familyR[it.Name]; found == true {
+ log.Panicf("tag-name defined more than once for IFD [%s]: (%s)", it.IfdPath, it.Name)
+ }
+
+ familyR[it.Name] = it
+
+ return nil
+}
+
+// Get returns information about the non-IFD tag given a tag ID. `ifdPath` must
+// not be fully-qualified.
+func (ti *TagIndex) Get(ii *exifcommon.IfdIdentity, id uint16) (it *IndexedTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(ti.tagsByIfd) == 0 {
+ err := LoadStandardTags(ti)
+ log.PanicIf(err)
+ }
+
+ ifdPath := ii.UnindexedString()
+
+ family, found := ti.tagsByIfd[ifdPath]
+ if found == false {
+ return nil, ErrTagNotFound
+ }
+
+ it, found = family[id]
+ if found == false {
+ return nil, ErrTagNotFound
+ }
+
+ return it, nil
+}
+
+var (
+ // tagGuessDefaultIfdIdentities describes which IFDs we'll look for a given
+ // tag-ID in, if it's not found where it's supposed to be. We suppose that
+ // Exif-IFD tags might be found in IFD0 or IFD1, or IFD0/IFD1 tags might be
+ // found in the Exif IFD. This is the only thing we've seen so far. So, this
+ // is the limit of our guessing.
+ tagGuessDefaultIfdIdentities = []*exifcommon.IfdIdentity{
+ exifcommon.IfdExifStandardIfdIdentity,
+ exifcommon.IfdStandardIfdIdentity,
+ }
+)
+
+// FindFirst looks for the given tag-ID in each of the given IFDs in the given
+// order. If `fqIfdPaths` is `nil` then use a default search order. This defies
+// the standard, which requires each tag to exist in certain IFDs. This is a
+// contingency to make recommendations for malformed data.
+//
+// Things *can* end badly here, in that the same tag-ID in different IFDs might
+// describe different data and different ata-types, and our decode might then
+// produce binary and non-printable data.
+func (ti *TagIndex) FindFirst(id uint16, typeId exifcommon.TagTypePrimitive, ifdIdentities []*exifcommon.IfdIdentity) (it *IndexedTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if ifdIdentities == nil {
+ ifdIdentities = tagGuessDefaultIfdIdentities
+ }
+
+ for _, ii := range ifdIdentities {
+ it, err := ti.Get(ii, id)
+ if err != nil {
+ if err == ErrTagNotFound {
+ continue
+ }
+
+ log.Panic(err)
+ }
+
+ // Even though the tag might be mislocated, the type should still be the
+ // same. Check this so we don't accidentally end-up on a complete
+ // irrelevant tag with a totally different data type. This attempts to
+ // mitigate producing garbage.
+ for _, supportedType := range it.SupportedTypes {
+ if supportedType == typeId {
+ return it, nil
+ }
+ }
+ }
+
+ return nil, ErrTagNotFound
+}
+
+// GetWithName returns information about the non-IFD tag given a tag name.
+func (ti *TagIndex) GetWithName(ii *exifcommon.IfdIdentity, name string) (it *IndexedTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(ti.tagsByIfdR) == 0 {
+ err := LoadStandardTags(ti)
+ log.PanicIf(err)
+ }
+
+ ifdPath := ii.UnindexedString()
+
+ it, found := ti.tagsByIfdR[ifdPath][name]
+ if found != true {
+ log.Panic(ErrTagNotFound)
+ }
+
+ return it, nil
+}
+
+// LoadStandardTags registers the tags that all devices/applications should
+// support.
+func LoadStandardTags(ti *TagIndex) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Read static data.
+
+ encodedIfds := make(map[string][]encodedTag)
+
+ err = yaml.Unmarshal([]byte(tagsYaml), encodedIfds)
+ log.PanicIf(err)
+
+ // Load structure.
+
+ count := 0
+ for ifdPath, tags := range encodedIfds {
+ for _, tagInfo := range tags {
+ tagId := uint16(tagInfo.Id)
+ tagName := tagInfo.Name
+ tagTypeName := tagInfo.TypeName
+ tagTypeNames := tagInfo.TypeNames
+
+ if tagTypeNames == nil {
+ if tagTypeName == "" {
+ log.Panicf("no tag-types were given when registering standard tag [%s] (0x%04x) [%s]", ifdPath, tagId, tagName)
+ }
+
+ tagTypeNames = []string{
+ tagTypeName,
+ }
+ } else if tagTypeName != "" {
+ log.Panicf("both 'type_names' and 'type_name' were given when registering standard tag [%s] (0x%04x) [%s]", ifdPath, tagId, tagName)
+ }
+
+ tagTypes := make([]exifcommon.TagTypePrimitive, 0)
+ for _, tagTypeName := range tagTypeNames {
+
+ // TODO(dustin): Discard unsupported types. This helps us with non-standard types that have actually been found in real data, that we ignore for right now. e.g. SSHORT, FLOAT, DOUBLE
+ tagTypeId, found := exifcommon.GetTypeByName(tagTypeName)
+ if found == false {
+ tagsLogger.Warningf(nil, "Type [%s] for tag [%s] being loaded is not valid and is being ignored.", tagTypeName, tagName)
+ continue
+ }
+
+ tagTypes = append(tagTypes, tagTypeId)
+ }
+
+ if len(tagTypes) == 0 {
+ tagsLogger.Warningf(nil, "Tag [%s] (0x%04x) [%s] being loaded does not have any supported types and will not be registered.", ifdPath, tagId, tagName)
+ continue
+ }
+
+ it := &IndexedTag{
+ IfdPath: ifdPath,
+ Id: tagId,
+ Name: tagName,
+ SupportedTypes: tagTypes,
+ }
+
+ err = ti.Add(it)
+ log.PanicIf(err)
+
+ count++
+ }
+ }
+
+ tagsLogger.Debugf(nil, "(%d) tags loaded.", count)
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/tags_data.go b/vendor/github.com/dsoprea/go-exif/v2/tags_data.go
new file mode 100644
index 000000000..a770e5597
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/tags_data.go
@@ -0,0 +1,929 @@
+package exif
+
+var (
+ // From assets/tags.yaml . Needs to be here so it's embedded in the binary.
+ tagsYaml = `
+# Notes:
+#
+# This file was produced from http://www.exiv2.org/tags.html, using the included
+# tool, though that document appears to have some duplicates when all IDs are
+# supposed to be unique (EXIF information only has IDs, not IFDs; IFDs are
+# determined by our pre-existing knowledge of those tags).
+#
+# The webpage that we've produced this file from appears to indicate that
+# ImageWidth is represented by both 0x0100 and 0x0001 depending on whether the
+# encoding is RGB or YCbCr.
+IFD/Exif:
+- id: 0x829a
+ name: ExposureTime
+ type_name: RATIONAL
+- id: 0x829d
+ name: FNumber
+ type_name: RATIONAL
+- id: 0x8822
+ name: ExposureProgram
+ type_name: SHORT
+- id: 0x8824
+ name: SpectralSensitivity
+ type_name: ASCII
+- id: 0x8827
+ name: ISOSpeedRatings
+ type_name: SHORT
+- id: 0x8828
+ name: OECF
+ type_name: UNDEFINED
+- id: 0x8830
+ name: SensitivityType
+ type_name: SHORT
+- id: 0x8831
+ name: StandardOutputSensitivity
+ type_name: LONG
+- id: 0x8832
+ name: RecommendedExposureIndex
+ type_name: LONG
+- id: 0x8833
+ name: ISOSpeed
+ type_name: LONG
+- id: 0x8834
+ name: ISOSpeedLatitudeyyy
+ type_name: LONG
+- id: 0x8835
+ name: ISOSpeedLatitudezzz
+ type_name: LONG
+- id: 0x9000
+ name: ExifVersion
+ type_name: UNDEFINED
+- id: 0x9003
+ name: DateTimeOriginal
+ type_name: ASCII
+- id: 0x9004
+ name: DateTimeDigitized
+ type_name: ASCII
+- id: 0x9101
+ name: ComponentsConfiguration
+ type_name: UNDEFINED
+- id: 0x9102
+ name: CompressedBitsPerPixel
+ type_name: RATIONAL
+- id: 0x9201
+ name: ShutterSpeedValue
+ type_name: SRATIONAL
+- id: 0x9202
+ name: ApertureValue
+ type_name: RATIONAL
+- id: 0x9203
+ name: BrightnessValue
+ type_name: SRATIONAL
+- id: 0x9204
+ name: ExposureBiasValue
+ type_name: SRATIONAL
+- id: 0x9205
+ name: MaxApertureValue
+ type_name: RATIONAL
+- id: 0x9206
+ name: SubjectDistance
+ type_name: RATIONAL
+- id: 0x9207
+ name: MeteringMode
+ type_name: SHORT
+- id: 0x9208
+ name: LightSource
+ type_name: SHORT
+- id: 0x9209
+ name: Flash
+ type_name: SHORT
+- id: 0x920a
+ name: FocalLength
+ type_name: RATIONAL
+- id: 0x9214
+ name: SubjectArea
+ type_name: SHORT
+- id: 0x927c
+ name: MakerNote
+ type_name: UNDEFINED
+- id: 0x9286
+ name: UserComment
+ type_name: UNDEFINED
+- id: 0x9290
+ name: SubSecTime
+ type_name: ASCII
+- id: 0x9291
+ name: SubSecTimeOriginal
+ type_name: ASCII
+- id: 0x9292
+ name: SubSecTimeDigitized
+ type_name: ASCII
+- id: 0xa000
+ name: FlashpixVersion
+ type_name: UNDEFINED
+- id: 0xa001
+ name: ColorSpace
+ type_name: SHORT
+- id: 0xa002
+ name: PixelXDimension
+ type_names: [LONG, SHORT]
+- id: 0xa003
+ name: PixelYDimension
+ type_names: [LONG, SHORT]
+- id: 0xa004
+ name: RelatedSoundFile
+ type_name: ASCII
+- id: 0xa005
+ name: InteroperabilityTag
+ type_name: LONG
+- id: 0xa20b
+ name: FlashEnergy
+ type_name: RATIONAL
+- id: 0xa20c
+ name: SpatialFrequencyResponse
+ type_name: UNDEFINED
+- id: 0xa20e
+ name: FocalPlaneXResolution
+ type_name: RATIONAL
+- id: 0xa20f
+ name: FocalPlaneYResolution
+ type_name: RATIONAL
+- id: 0xa210
+ name: FocalPlaneResolutionUnit
+ type_name: SHORT
+- id: 0xa214
+ name: SubjectLocation
+ type_name: SHORT
+- id: 0xa215
+ name: ExposureIndex
+ type_name: RATIONAL
+- id: 0xa217
+ name: SensingMethod
+ type_name: SHORT
+- id: 0xa300
+ name: FileSource
+ type_name: UNDEFINED
+- id: 0xa301
+ name: SceneType
+ type_name: UNDEFINED
+- id: 0xa302
+ name: CFAPattern
+ type_name: UNDEFINED
+- id: 0xa401
+ name: CustomRendered
+ type_name: SHORT
+- id: 0xa402
+ name: ExposureMode
+ type_name: SHORT
+- id: 0xa403
+ name: WhiteBalance
+ type_name: SHORT
+- id: 0xa404
+ name: DigitalZoomRatio
+ type_name: RATIONAL
+- id: 0xa405
+ name: FocalLengthIn35mmFilm
+ type_name: SHORT
+- id: 0xa406
+ name: SceneCaptureType
+ type_name: SHORT
+- id: 0xa407
+ name: GainControl
+ type_name: SHORT
+- id: 0xa408
+ name: Contrast
+ type_name: SHORT
+- id: 0xa409
+ name: Saturation
+ type_name: SHORT
+- id: 0xa40a
+ name: Sharpness
+ type_name: SHORT
+- id: 0xa40b
+ name: DeviceSettingDescription
+ type_name: UNDEFINED
+- id: 0xa40c
+ name: SubjectDistanceRange
+ type_name: SHORT
+- id: 0xa420
+ name: ImageUniqueID
+ type_name: ASCII
+- id: 0xa430
+ name: CameraOwnerName
+ type_name: ASCII
+- id: 0xa431
+ name: BodySerialNumber
+ type_name: ASCII
+- id: 0xa432
+ name: LensSpecification
+ type_name: RATIONAL
+- id: 0xa433
+ name: LensMake
+ type_name: ASCII
+- id: 0xa434
+ name: LensModel
+ type_name: ASCII
+- id: 0xa435
+ name: LensSerialNumber
+ type_name: ASCII
+IFD/GPSInfo:
+- id: 0x0000
+ name: GPSVersionID
+ type_name: BYTE
+- id: 0x0001
+ name: GPSLatitudeRef
+ type_name: ASCII
+- id: 0x0002
+ name: GPSLatitude
+ type_name: RATIONAL
+- id: 0x0003
+ name: GPSLongitudeRef
+ type_name: ASCII
+- id: 0x0004
+ name: GPSLongitude
+ type_name: RATIONAL
+- id: 0x0005
+ name: GPSAltitudeRef
+ type_name: BYTE
+- id: 0x0006
+ name: GPSAltitude
+ type_name: RATIONAL
+- id: 0x0007
+ name: GPSTimeStamp
+ type_name: RATIONAL
+- id: 0x0008
+ name: GPSSatellites
+ type_name: ASCII
+- id: 0x0009
+ name: GPSStatus
+ type_name: ASCII
+- id: 0x000a
+ name: GPSMeasureMode
+ type_name: ASCII
+- id: 0x000b
+ name: GPSDOP
+ type_name: RATIONAL
+- id: 0x000c
+ name: GPSSpeedRef
+ type_name: ASCII
+- id: 0x000d
+ name: GPSSpeed
+ type_name: RATIONAL
+- id: 0x000e
+ name: GPSTrackRef
+ type_name: ASCII
+- id: 0x000f
+ name: GPSTrack
+ type_name: RATIONAL
+- id: 0x0010
+ name: GPSImgDirectionRef
+ type_name: ASCII
+- id: 0x0011
+ name: GPSImgDirection
+ type_name: RATIONAL
+- id: 0x0012
+ name: GPSMapDatum
+ type_name: ASCII
+- id: 0x0013
+ name: GPSDestLatitudeRef
+ type_name: ASCII
+- id: 0x0014
+ name: GPSDestLatitude
+ type_name: RATIONAL
+- id: 0x0015
+ name: GPSDestLongitudeRef
+ type_name: ASCII
+- id: 0x0016
+ name: GPSDestLongitude
+ type_name: RATIONAL
+- id: 0x0017
+ name: GPSDestBearingRef
+ type_name: ASCII
+- id: 0x0018
+ name: GPSDestBearing
+ type_name: RATIONAL
+- id: 0x0019
+ name: GPSDestDistanceRef
+ type_name: ASCII
+- id: 0x001a
+ name: GPSDestDistance
+ type_name: RATIONAL
+- id: 0x001b
+ name: GPSProcessingMethod
+ type_name: UNDEFINED
+- id: 0x001c
+ name: GPSAreaInformation
+ type_name: UNDEFINED
+- id: 0x001d
+ name: GPSDateStamp
+ type_name: ASCII
+- id: 0x001e
+ name: GPSDifferential
+ type_name: SHORT
+IFD:
+- id: 0x000b
+ name: ProcessingSoftware
+ type_name: ASCII
+- id: 0x00fe
+ name: NewSubfileType
+ type_name: LONG
+- id: 0x00ff
+ name: SubfileType
+ type_name: SHORT
+- id: 0x0100
+ name: ImageWidth
+ type_names: [LONG, SHORT]
+- id: 0x0101
+ name: ImageLength
+ type_names: [LONG, SHORT]
+- id: 0x0102
+ name: BitsPerSample
+ type_name: SHORT
+- id: 0x0103
+ name: Compression
+ type_name: SHORT
+- id: 0x0106
+ name: PhotometricInterpretation
+ type_name: SHORT
+- id: 0x0107
+ name: Thresholding
+ type_name: SHORT
+- id: 0x0108
+ name: CellWidth
+ type_name: SHORT
+- id: 0x0109
+ name: CellLength
+ type_name: SHORT
+- id: 0x010a
+ name: FillOrder
+ type_name: SHORT
+- id: 0x010d
+ name: DocumentName
+ type_name: ASCII
+- id: 0x010e
+ name: ImageDescription
+ type_name: ASCII
+- id: 0x010f
+ name: Make
+ type_name: ASCII
+- id: 0x0110
+ name: Model
+ type_name: ASCII
+- id: 0x0111
+ name: StripOffsets
+ type_names: [LONG, SHORT]
+- id: 0x0112
+ name: Orientation
+ type_name: SHORT
+- id: 0x0115
+ name: SamplesPerPixel
+ type_name: SHORT
+- id: 0x0116
+ name: RowsPerStrip
+ type_names: [LONG, SHORT]
+- id: 0x0117
+ name: StripByteCounts
+ type_names: [LONG, SHORT]
+- id: 0x011a
+ name: XResolution
+ type_name: RATIONAL
+- id: 0x011b
+ name: YResolution
+ type_name: RATIONAL
+- id: 0x011c
+ name: PlanarConfiguration
+ type_name: SHORT
+- id: 0x0122
+ name: GrayResponseUnit
+ type_name: SHORT
+- id: 0x0123
+ name: GrayResponseCurve
+ type_name: SHORT
+- id: 0x0124
+ name: T4Options
+ type_name: LONG
+- id: 0x0125
+ name: T6Options
+ type_name: LONG
+- id: 0x0128
+ name: ResolutionUnit
+ type_name: SHORT
+- id: 0x0129
+ name: PageNumber
+ type_name: SHORT
+- id: 0x012d
+ name: TransferFunction
+ type_name: SHORT
+- id: 0x0131
+ name: Software
+ type_name: ASCII
+- id: 0x0132
+ name: DateTime
+ type_name: ASCII
+- id: 0x013b
+ name: Artist
+ type_name: ASCII
+- id: 0x013c
+ name: HostComputer
+ type_name: ASCII
+- id: 0x013d
+ name: Predictor
+ type_name: SHORT
+- id: 0x013e
+ name: WhitePoint
+ type_name: RATIONAL
+- id: 0x013f
+ name: PrimaryChromaticities
+ type_name: RATIONAL
+- id: 0x0140
+ name: ColorMap
+ type_name: SHORT
+- id: 0x0141
+ name: HalftoneHints
+ type_name: SHORT
+- id: 0x0142
+ name: TileWidth
+ type_name: SHORT
+- id: 0x0143
+ name: TileLength
+ type_name: SHORT
+- id: 0x0144
+ name: TileOffsets
+ type_name: SHORT
+- id: 0x0145
+ name: TileByteCounts
+ type_name: SHORT
+- id: 0x014a
+ name: SubIFDs
+ type_name: LONG
+- id: 0x014c
+ name: InkSet
+ type_name: SHORT
+- id: 0x014d
+ name: InkNames
+ type_name: ASCII
+- id: 0x014e
+ name: NumberOfInks
+ type_name: SHORT
+- id: 0x0150
+ name: DotRange
+ type_name: BYTE
+- id: 0x0151
+ name: TargetPrinter
+ type_name: ASCII
+- id: 0x0152
+ name: ExtraSamples
+ type_name: SHORT
+- id: 0x0153
+ name: SampleFormat
+ type_name: SHORT
+- id: 0x0154
+ name: SMinSampleValue
+ type_name: SHORT
+- id: 0x0155
+ name: SMaxSampleValue
+ type_name: SHORT
+- id: 0x0156
+ name: TransferRange
+ type_name: SHORT
+- id: 0x0157
+ name: ClipPath
+ type_name: BYTE
+- id: 0x015a
+ name: Indexed
+ type_name: SHORT
+- id: 0x015b
+ name: JPEGTables
+ type_name: UNDEFINED
+- id: 0x015f
+ name: OPIProxy
+ type_name: SHORT
+- id: 0x0200
+ name: JPEGProc
+ type_name: LONG
+- id: 0x0201
+ name: JPEGInterchangeFormat
+ type_name: LONG
+- id: 0x0202
+ name: JPEGInterchangeFormatLength
+ type_name: LONG
+- id: 0x0203
+ name: JPEGRestartInterval
+ type_name: SHORT
+- id: 0x0205
+ name: JPEGLosslessPredictors
+ type_name: SHORT
+- id: 0x0206
+ name: JPEGPointTransforms
+ type_name: SHORT
+- id: 0x0207
+ name: JPEGQTables
+ type_name: LONG
+- id: 0x0208
+ name: JPEGDCTables
+ type_name: LONG
+- id: 0x0209
+ name: JPEGACTables
+ type_name: LONG
+- id: 0x0211
+ name: YCbCrCoefficients
+ type_name: RATIONAL
+- id: 0x0212
+ name: YCbCrSubSampling
+ type_name: SHORT
+- id: 0x0213
+ name: YCbCrPositioning
+ type_name: SHORT
+- id: 0x0214
+ name: ReferenceBlackWhite
+ type_name: RATIONAL
+- id: 0x02bc
+ name: XMLPacket
+ type_name: BYTE
+- id: 0x4746
+ name: Rating
+ type_name: SHORT
+- id: 0x4749
+ name: RatingPercent
+ type_name: SHORT
+- id: 0x800d
+ name: ImageID
+ type_name: ASCII
+- id: 0x828d
+ name: CFARepeatPatternDim
+ type_name: SHORT
+- id: 0x828e
+ name: CFAPattern
+ type_name: BYTE
+- id: 0x828f
+ name: BatteryLevel
+ type_name: RATIONAL
+- id: 0x8298
+ name: Copyright
+ type_name: ASCII
+- id: 0x829a
+ name: ExposureTime
+# NOTE(dustin): SRATIONAL isn't mentioned in the standard, but we have seen it in real data.
+ type_names: [RATIONAL, SRATIONAL]
+- id: 0x829d
+ name: FNumber
+# NOTE(dustin): SRATIONAL isn't mentioned in the standard, but we have seen it in real data.
+ type_names: [RATIONAL, SRATIONAL]
+- id: 0x83bb
+ name: IPTCNAA
+ type_name: LONG
+- id: 0x8649
+ name: ImageResources
+ type_name: BYTE
+- id: 0x8769
+ name: ExifTag
+ type_name: LONG
+- id: 0x8773
+ name: InterColorProfile
+ type_name: UNDEFINED
+- id: 0x8822
+ name: ExposureProgram
+ type_name: SHORT
+- id: 0x8824
+ name: SpectralSensitivity
+ type_name: ASCII
+- id: 0x8825
+ name: GPSTag
+ type_name: LONG
+- id: 0x8827
+ name: ISOSpeedRatings
+ type_name: SHORT
+- id: 0x8828
+ name: OECF
+ type_name: UNDEFINED
+- id: 0x8829
+ name: Interlace
+ type_name: SHORT
+- id: 0x882b
+ name: SelfTimerMode
+ type_name: SHORT
+- id: 0x9003
+ name: DateTimeOriginal
+ type_name: ASCII
+- id: 0x9102
+ name: CompressedBitsPerPixel
+ type_name: RATIONAL
+- id: 0x9201
+ name: ShutterSpeedValue
+ type_name: SRATIONAL
+- id: 0x9202
+ name: ApertureValue
+ type_name: RATIONAL
+- id: 0x9203
+ name: BrightnessValue
+ type_name: SRATIONAL
+- id: 0x9204
+ name: ExposureBiasValue
+ type_name: SRATIONAL
+- id: 0x9205
+ name: MaxApertureValue
+ type_name: RATIONAL
+- id: 0x9206
+ name: SubjectDistance
+ type_name: SRATIONAL
+- id: 0x9207
+ name: MeteringMode
+ type_name: SHORT
+- id: 0x9208
+ name: LightSource
+ type_name: SHORT
+- id: 0x9209
+ name: Flash
+ type_name: SHORT
+- id: 0x920a
+ name: FocalLength
+ type_name: RATIONAL
+- id: 0x920b
+ name: FlashEnergy
+ type_name: RATIONAL
+- id: 0x920c
+ name: SpatialFrequencyResponse
+ type_name: UNDEFINED
+- id: 0x920d
+ name: Noise
+ type_name: UNDEFINED
+- id: 0x920e
+ name: FocalPlaneXResolution
+ type_name: RATIONAL
+- id: 0x920f
+ name: FocalPlaneYResolution
+ type_name: RATIONAL
+- id: 0x9210
+ name: FocalPlaneResolutionUnit
+ type_name: SHORT
+- id: 0x9211
+ name: ImageNumber
+ type_name: LONG
+- id: 0x9212
+ name: SecurityClassification
+ type_name: ASCII
+- id: 0x9213
+ name: ImageHistory
+ type_name: ASCII
+- id: 0x9214
+ name: SubjectLocation
+ type_name: SHORT
+- id: 0x9215
+ name: ExposureIndex
+ type_name: RATIONAL
+- id: 0x9216
+ name: TIFFEPStandardID
+ type_name: BYTE
+- id: 0x9217
+ name: SensingMethod
+ type_name: SHORT
+- id: 0x9c9b
+ name: XPTitle
+ type_name: BYTE
+- id: 0x9c9c
+ name: XPComment
+ type_name: BYTE
+- id: 0x9c9d
+ name: XPAuthor
+ type_name: BYTE
+- id: 0x9c9e
+ name: XPKeywords
+ type_name: BYTE
+- id: 0x9c9f
+ name: XPSubject
+ type_name: BYTE
+- id: 0xc4a5
+ name: PrintImageMatching
+ type_name: UNDEFINED
+- id: 0xc612
+ name: DNGVersion
+ type_name: BYTE
+- id: 0xc613
+ name: DNGBackwardVersion
+ type_name: BYTE
+- id: 0xc614
+ name: UniqueCameraModel
+ type_name: ASCII
+- id: 0xc615
+ name: LocalizedCameraModel
+ type_name: BYTE
+- id: 0xc616
+ name: CFAPlaneColor
+ type_name: BYTE
+- id: 0xc617
+ name: CFALayout
+ type_name: SHORT
+- id: 0xc618
+ name: LinearizationTable
+ type_name: SHORT
+- id: 0xc619
+ name: BlackLevelRepeatDim
+ type_name: SHORT
+- id: 0xc61a
+ name: BlackLevel
+ type_name: RATIONAL
+- id: 0xc61b
+ name: BlackLevelDeltaH
+ type_name: SRATIONAL
+- id: 0xc61c
+ name: BlackLevelDeltaV
+ type_name: SRATIONAL
+- id: 0xc61d
+ name: WhiteLevel
+ type_name: SHORT
+- id: 0xc61e
+ name: DefaultScale
+ type_name: RATIONAL
+- id: 0xc61f
+ name: DefaultCropOrigin
+ type_name: SHORT
+- id: 0xc620
+ name: DefaultCropSize
+ type_name: SHORT
+- id: 0xc621
+ name: ColorMatrix1
+ type_name: SRATIONAL
+- id: 0xc622
+ name: ColorMatrix2
+ type_name: SRATIONAL
+- id: 0xc623
+ name: CameraCalibration1
+ type_name: SRATIONAL
+- id: 0xc624
+ name: CameraCalibration2
+ type_name: SRATIONAL
+- id: 0xc625
+ name: ReductionMatrix1
+ type_name: SRATIONAL
+- id: 0xc626
+ name: ReductionMatrix2
+ type_name: SRATIONAL
+- id: 0xc627
+ name: AnalogBalance
+ type_name: RATIONAL
+- id: 0xc628
+ name: AsShotNeutral
+ type_name: SHORT
+- id: 0xc629
+ name: AsShotWhiteXY
+ type_name: RATIONAL
+- id: 0xc62a
+ name: BaselineExposure
+ type_name: SRATIONAL
+- id: 0xc62b
+ name: BaselineNoise
+ type_name: RATIONAL
+- id: 0xc62c
+ name: BaselineSharpness
+ type_name: RATIONAL
+- id: 0xc62d
+ name: BayerGreenSplit
+ type_name: LONG
+- id: 0xc62e
+ name: LinearResponseLimit
+ type_name: RATIONAL
+- id: 0xc62f
+ name: CameraSerialNumber
+ type_name: ASCII
+- id: 0xc630
+ name: LensInfo
+ type_name: RATIONAL
+- id: 0xc631
+ name: ChromaBlurRadius
+ type_name: RATIONAL
+- id: 0xc632
+ name: AntiAliasStrength
+ type_name: RATIONAL
+- id: 0xc633
+ name: ShadowScale
+ type_name: SRATIONAL
+- id: 0xc634
+ name: DNGPrivateData
+ type_name: BYTE
+- id: 0xc635
+ name: MakerNoteSafety
+ type_name: SHORT
+- id: 0xc65a
+ name: CalibrationIlluminant1
+ type_name: SHORT
+- id: 0xc65b
+ name: CalibrationIlluminant2
+ type_name: SHORT
+- id: 0xc65c
+ name: BestQualityScale
+ type_name: RATIONAL
+- id: 0xc65d
+ name: RawDataUniqueID
+ type_name: BYTE
+- id: 0xc68b
+ name: OriginalRawFileName
+ type_name: BYTE
+- id: 0xc68c
+ name: OriginalRawFileData
+ type_name: UNDEFINED
+- id: 0xc68d
+ name: ActiveArea
+ type_name: SHORT
+- id: 0xc68e
+ name: MaskedAreas
+ type_name: SHORT
+- id: 0xc68f
+ name: AsShotICCProfile
+ type_name: UNDEFINED
+- id: 0xc690
+ name: AsShotPreProfileMatrix
+ type_name: SRATIONAL
+- id: 0xc691
+ name: CurrentICCProfile
+ type_name: UNDEFINED
+- id: 0xc692
+ name: CurrentPreProfileMatrix
+ type_name: SRATIONAL
+- id: 0xc6bf
+ name: ColorimetricReference
+ type_name: SHORT
+- id: 0xc6f3
+ name: CameraCalibrationSignature
+ type_name: BYTE
+- id: 0xc6f4
+ name: ProfileCalibrationSignature
+ type_name: BYTE
+- id: 0xc6f6
+ name: AsShotProfileName
+ type_name: BYTE
+- id: 0xc6f7
+ name: NoiseReductionApplied
+ type_name: RATIONAL
+- id: 0xc6f8
+ name: ProfileName
+ type_name: BYTE
+- id: 0xc6f9
+ name: ProfileHueSatMapDims
+ type_name: LONG
+- id: 0xc6fd
+ name: ProfileEmbedPolicy
+ type_name: LONG
+- id: 0xc6fe
+ name: ProfileCopyright
+ type_name: BYTE
+- id: 0xc714
+ name: ForwardMatrix1
+ type_name: SRATIONAL
+- id: 0xc715
+ name: ForwardMatrix2
+ type_name: SRATIONAL
+- id: 0xc716
+ name: PreviewApplicationName
+ type_name: BYTE
+- id: 0xc717
+ name: PreviewApplicationVersion
+ type_name: BYTE
+- id: 0xc718
+ name: PreviewSettingsName
+ type_name: BYTE
+- id: 0xc719
+ name: PreviewSettingsDigest
+ type_name: BYTE
+- id: 0xc71a
+ name: PreviewColorSpace
+ type_name: LONG
+- id: 0xc71b
+ name: PreviewDateTime
+ type_name: ASCII
+- id: 0xc71c
+ name: RawImageDigest
+ type_name: UNDEFINED
+- id: 0xc71d
+ name: OriginalRawFileDigest
+ type_name: UNDEFINED
+- id: 0xc71e
+ name: SubTileBlockSize
+ type_name: LONG
+- id: 0xc71f
+ name: RowInterleaveFactor
+ type_name: LONG
+- id: 0xc725
+ name: ProfileLookTableDims
+ type_name: LONG
+- id: 0xc740
+ name: OpcodeList1
+ type_name: UNDEFINED
+- id: 0xc741
+ name: OpcodeList2
+ type_name: UNDEFINED
+- id: 0xc74e
+ name: OpcodeList3
+ type_name: UNDEFINED
+IFD/Exif/Iop:
+- id: 0x0001
+ name: InteroperabilityIndex
+ type_name: ASCII
+- id: 0x0002
+ name: InteroperabilityVersion
+ type_name: UNDEFINED
+- id: 0x1000
+ name: RelatedImageFileFormat
+ type_name: ASCII
+- id: 0x1001
+ name: RelatedImageWidth
+ type_name: LONG
+- id: 0x1002
+ name: RelatedImageLength
+ type_name: LONG
+`
+)
diff --git a/vendor/github.com/dsoprea/go-exif/v2/testing_common.go b/vendor/github.com/dsoprea/go-exif/v2/testing_common.go
new file mode 100644
index 000000000..fe69df936
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/testing_common.go
@@ -0,0 +1,182 @@
+package exif
+
+import (
+ "path"
+ "reflect"
+ "testing"
+
+ "io/ioutil"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+var (
+ testExifData []byte
+)
+
+func getExifSimpleTestIb() *IfdBuilder {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ im := NewIfdMapping()
+
+ err := LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ ti := NewTagIndex()
+ ib := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder)
+
+ err = ib.AddStandard(0x000b, "asciivalue")
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x00ff, []uint16{0x1122})
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x0100, []uint32{0x33445566})
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x013e, []exifcommon.Rational{{Numerator: 0x11112222, Denominator: 0x33334444}})
+ log.PanicIf(err)
+
+ return ib
+}
+
+func getExifSimpleTestIbBytes() []byte {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ im := NewIfdMapping()
+
+ err := LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ ti := NewTagIndex()
+ ib := NewIfdBuilder(im, ti, exifcommon.IfdStandardIfdIdentity, exifcommon.TestDefaultByteOrder)
+
+ err = ib.AddStandard(0x000b, "asciivalue")
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x00ff, []uint16{0x1122})
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x0100, []uint32{0x33445566})
+ log.PanicIf(err)
+
+ err = ib.AddStandard(0x013e, []exifcommon.Rational{{Numerator: 0x11112222, Denominator: 0x33334444}})
+ log.PanicIf(err)
+
+ ibe := NewIfdByteEncoder()
+
+ exifData, err := ibe.EncodeToExif(ib)
+ log.PanicIf(err)
+
+ return exifData
+}
+
+func validateExifSimpleTestIb(exifData []byte, t *testing.T) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ im := NewIfdMapping()
+
+ err := LoadStandardIfds(im)
+ log.PanicIf(err)
+
+ ti := NewTagIndex()
+
+ eh, index, err := Collect(im, ti, exifData)
+ log.PanicIf(err)
+
+ if eh.ByteOrder != exifcommon.TestDefaultByteOrder {
+ t.Fatalf("EXIF byte-order is not correct: %v", eh.ByteOrder)
+ } else if eh.FirstIfdOffset != ExifDefaultFirstIfdOffset {
+ t.Fatalf("EXIF first IFD-offset not correct: (0x%02x)", eh.FirstIfdOffset)
+ }
+
+ if len(index.Ifds) != 1 {
+ t.Fatalf("There wasn't exactly one IFD decoded: (%d)", len(index.Ifds))
+ }
+
+ ifd := index.RootIfd
+
+ if ifd.ByteOrder != exifcommon.TestDefaultByteOrder {
+ t.Fatalf("IFD byte-order not correct.")
+ } else if ifd.ifdIdentity.UnindexedString() != exifcommon.IfdStandardIfdIdentity.UnindexedString() {
+ t.Fatalf("IFD name not correct.")
+ } else if ifd.ifdIdentity.Index() != 0 {
+ t.Fatalf("IFD index not zero: (%d)", ifd.ifdIdentity.Index())
+ } else if ifd.Offset != uint32(0x0008) {
+ t.Fatalf("IFD offset not correct.")
+ } else if len(ifd.Entries) != 4 {
+ t.Fatalf("IFD number of entries not correct: (%d)", len(ifd.Entries))
+ } else if ifd.NextIfdOffset != uint32(0) {
+ t.Fatalf("Next-IFD offset is non-zero.")
+ } else if ifd.NextIfd != nil {
+ t.Fatalf("Next-IFD pointer is non-nil.")
+ }
+
+ // Verify the values by using the actual, original types (this is awesome).
+
+ expected := []struct {
+ tagId uint16
+ value interface{}
+ }{
+ {tagId: 0x000b, value: "asciivalue"},
+ {tagId: 0x00ff, value: []uint16{0x1122}},
+ {tagId: 0x0100, value: []uint32{0x33445566}},
+ {tagId: 0x013e, value: []exifcommon.Rational{{Numerator: 0x11112222, Denominator: 0x33334444}}},
+ }
+
+ for i, ite := range ifd.Entries {
+ if ite.TagId() != expected[i].tagId {
+ t.Fatalf("Tag-ID for entry (%d) not correct: (0x%02x) != (0x%02x)", i, ite.TagId(), expected[i].tagId)
+ }
+
+ value, err := ite.Value()
+ log.PanicIf(err)
+
+ if reflect.DeepEqual(value, expected[i].value) != true {
+ t.Fatalf("Value for entry (%d) not correct: [%v] != [%v]", i, value, expected[i].value)
+ }
+ }
+}
+
+func getTestImageFilepath() string {
+ assetsPath := exifcommon.GetTestAssetsPath()
+ testImageFilepath := path.Join(assetsPath, "NDM_8901.jpg")
+ return testImageFilepath
+}
+
+func getTestExifData() []byte {
+ if testExifData == nil {
+ assetsPath := exifcommon.GetTestAssetsPath()
+ filepath := path.Join(assetsPath, "NDM_8901.jpg.exif")
+
+ var err error
+
+ testExifData, err = ioutil.ReadFile(filepath)
+ log.PanicIf(err)
+ }
+
+ return testExifData
+}
+
+func getTestGpsImageFilepath() string {
+ assetsPath := exifcommon.GetTestAssetsPath()
+ testGpsImageFilepath := path.Join(assetsPath, "gps.jpg")
+ return testGpsImageFilepath
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/README.md b/vendor/github.com/dsoprea/go-exif/v2/undefined/README.md
new file mode 100644
index 000000000..d2caa6e51
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/README.md
@@ -0,0 +1,4 @@
+
+## 0xa40b
+
+The specification is not specific/clear enough to be handled. Without a working example ,we're deferring until some point in the future when either we or someone else has a better understanding.
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/accessor.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/accessor.go
new file mode 100644
index 000000000..3e82c0f61
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/accessor.go
@@ -0,0 +1,62 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+// Encode encodes the given encodeable undefined value to bytes.
+func Encode(value EncodeableValue, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ encoderName := value.EncoderName()
+
+ encoder, found := encoders[encoderName]
+ if found == false {
+ log.Panicf("no encoder registered for type [%s]", encoderName)
+ }
+
+ encoded, unitCount, err = encoder.Encode(value, byteOrder)
+ log.PanicIf(err)
+
+ return encoded, unitCount, nil
+}
+
+// Decode constructs a value from raw encoded bytes
+func Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ uth := UndefinedTagHandle{
+ IfdPath: valueContext.IfdPath(),
+ TagId: valueContext.TagId(),
+ }
+
+ decoder, found := decoders[uth]
+ if found == false {
+ // We have no choice but to return the error. We have no way of knowing how
+ // much data there is without already knowing what data-type this tag is.
+ return nil, exifcommon.ErrUnhandledUndefinedTypedTag
+ }
+
+ value, err = decoder.Decode(valueContext)
+ if err != nil {
+ if err == ErrUnparseableValue {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ return value, nil
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_8828_oecf.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_8828_oecf.go
new file mode 100644
index 000000000..796d17ca7
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_8828_oecf.go
@@ -0,0 +1,148 @@
+package exifundefined
+
+import (
+ "bytes"
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag8828Oecf struct {
+ Columns uint16
+ Rows uint16
+ ColumnNames []string
+ Values []exifcommon.SignedRational
+}
+
+func (oecf Tag8828Oecf) String() string {
+ return fmt.Sprintf("Tag8828Oecf", oecf.Columns, oecf.Rows)
+}
+
+func (oecf Tag8828Oecf) EncoderName() string {
+ return "Codec8828Oecf"
+}
+
+type Codec8828Oecf struct {
+}
+
+func (Codec8828Oecf) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ oecf, ok := value.(Tag8828Oecf)
+ if ok == false {
+ log.Panicf("can only encode a Tag8828Oecf")
+ }
+
+ b := new(bytes.Buffer)
+
+ err = binary.Write(b, byteOrder, oecf.Columns)
+ log.PanicIf(err)
+
+ err = binary.Write(b, byteOrder, oecf.Rows)
+ log.PanicIf(err)
+
+ for _, name := range oecf.ColumnNames {
+ _, err := b.Write([]byte(name))
+ log.PanicIf(err)
+
+ _, err = b.Write([]byte{0})
+ log.PanicIf(err)
+ }
+
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ ed, err := ve.Encode(oecf.Values)
+ log.PanicIf(err)
+
+ _, err = b.Write(ed.Encoded)
+ log.PanicIf(err)
+
+ return b.Bytes(), uint32(b.Len()), nil
+}
+
+func (Codec8828Oecf) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test using known good data.
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ oecf := Tag8828Oecf{}
+
+ oecf.Columns = valueContext.ByteOrder().Uint16(valueBytes[0:2])
+ oecf.Rows = valueContext.ByteOrder().Uint16(valueBytes[2:4])
+
+ columnNames := make([]string, oecf.Columns)
+
+ // startAt is where the current column name starts.
+ startAt := 4
+
+ // offset is our current position.
+ offset := startAt
+
+ currentColumnNumber := uint16(0)
+
+ for currentColumnNumber < oecf.Columns {
+ if valueBytes[offset] == 0 {
+ columnName := string(valueBytes[startAt:offset])
+ if len(columnName) == 0 {
+ log.Panicf("SFR column (%d) has zero length", currentColumnNumber)
+ }
+
+ columnNames[currentColumnNumber] = columnName
+ currentColumnNumber++
+
+ offset++
+ startAt = offset
+ continue
+ }
+
+ offset++
+ }
+
+ oecf.ColumnNames = columnNames
+
+ rawRationalBytes := valueBytes[offset:]
+
+ rationalSize := exifcommon.TypeSignedRational.Size()
+ if len(rawRationalBytes)%rationalSize > 0 {
+ log.Panicf("OECF signed-rationals not aligned: (%d) %% (%d) > 0", len(rawRationalBytes), rationalSize)
+ }
+
+ rationalCount := len(rawRationalBytes) / rationalSize
+
+ parser := new(exifcommon.Parser)
+
+ byteOrder := valueContext.ByteOrder()
+
+ items, err := parser.ParseSignedRationals(rawRationalBytes, uint32(rationalCount), byteOrder)
+ log.PanicIf(err)
+
+ oecf.Values = items
+
+ return oecf, nil
+}
+
+func init() {
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0x8828,
+ Codec8828Oecf{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9000_exif_version.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9000_exif_version.go
new file mode 100644
index 000000000..19cfcc906
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9000_exif_version.go
@@ -0,0 +1,69 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag9000ExifVersion struct {
+ ExifVersion string
+}
+
+func (Tag9000ExifVersion) EncoderName() string {
+ return "Codec9000ExifVersion"
+}
+
+func (ev Tag9000ExifVersion) String() string {
+ return ev.ExifVersion
+}
+
+type Codec9000ExifVersion struct {
+}
+
+func (Codec9000ExifVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s, ok := value.(Tag9000ExifVersion)
+ if ok == false {
+ log.Panicf("can only encode a Tag9000ExifVersion")
+ }
+
+ return []byte(s.ExifVersion), uint32(len(s.ExifVersion)), nil
+}
+
+func (Codec9000ExifVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeAsciiNoNul)
+
+ valueString, err := valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ ev := Tag9000ExifVersion{
+ ExifVersion: valueString,
+ }
+
+ return ev, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag9000ExifVersion{},
+ Codec9000ExifVersion{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0x9000,
+ Codec9000ExifVersion{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9101_components_configuration.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9101_components_configuration.go
new file mode 100644
index 000000000..16a4b38e4
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9101_components_configuration.go
@@ -0,0 +1,124 @@
+package exifundefined
+
+import (
+ "bytes"
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+const (
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Y = 0x1
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Cb = 0x2
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Cr = 0x3
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_R = 0x4
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_G = 0x5
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_B = 0x6
+)
+
+const (
+ TagUndefinedType_9101_ComponentsConfiguration_OTHER = iota
+ TagUndefinedType_9101_ComponentsConfiguration_RGB = iota
+ TagUndefinedType_9101_ComponentsConfiguration_YCBCR = iota
+)
+
+var (
+ TagUndefinedType_9101_ComponentsConfiguration_Names = map[int]string{
+ TagUndefinedType_9101_ComponentsConfiguration_OTHER: "OTHER",
+ TagUndefinedType_9101_ComponentsConfiguration_RGB: "RGB",
+ TagUndefinedType_9101_ComponentsConfiguration_YCBCR: "YCBCR",
+ }
+
+ TagUndefinedType_9101_ComponentsConfiguration_Configurations = map[int][]byte{
+ TagUndefinedType_9101_ComponentsConfiguration_RGB: {
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_R,
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_G,
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_B,
+ 0,
+ },
+
+ TagUndefinedType_9101_ComponentsConfiguration_YCBCR: {
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Y,
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Cb,
+ TagUndefinedType_9101_ComponentsConfiguration_Channel_Cr,
+ 0,
+ },
+ }
+)
+
+type TagExif9101ComponentsConfiguration struct {
+ ConfigurationId int
+ ConfigurationBytes []byte
+}
+
+func (TagExif9101ComponentsConfiguration) EncoderName() string {
+ return "CodecExif9101ComponentsConfiguration"
+}
+
+func (cc TagExif9101ComponentsConfiguration) String() string {
+ return fmt.Sprintf("Exif9101ComponentsConfiguration", TagUndefinedType_9101_ComponentsConfiguration_Names[cc.ConfigurationId], cc.ConfigurationBytes)
+}
+
+type CodecExif9101ComponentsConfiguration struct {
+}
+
+func (CodecExif9101ComponentsConfiguration) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ cc, ok := value.(TagExif9101ComponentsConfiguration)
+ if ok == false {
+ log.Panicf("can only encode a TagExif9101ComponentsConfiguration")
+ }
+
+ return cc.ConfigurationBytes, uint32(len(cc.ConfigurationBytes)), nil
+}
+
+func (CodecExif9101ComponentsConfiguration) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ for configurationId, configurationBytes := range TagUndefinedType_9101_ComponentsConfiguration_Configurations {
+ if bytes.Equal(configurationBytes, valueBytes) == true {
+ cc := TagExif9101ComponentsConfiguration{
+ ConfigurationId: configurationId,
+ ConfigurationBytes: valueBytes,
+ }
+
+ return cc, nil
+ }
+ }
+
+ cc := TagExif9101ComponentsConfiguration{
+ ConfigurationId: TagUndefinedType_9101_ComponentsConfiguration_OTHER,
+ ConfigurationBytes: valueBytes,
+ }
+
+ return cc, nil
+}
+
+func init() {
+ registerEncoder(
+ TagExif9101ComponentsConfiguration{},
+ CodecExif9101ComponentsConfiguration{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0x9101,
+ CodecExif9101ComponentsConfiguration{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_927C_maker_note.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_927C_maker_note.go
new file mode 100644
index 000000000..e0a52db2a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_927C_maker_note.go
@@ -0,0 +1,114 @@
+package exifundefined
+
+import (
+ "fmt"
+ "strings"
+
+ "crypto/sha1"
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag927CMakerNote struct {
+ MakerNoteType []byte
+ MakerNoteBytes []byte
+}
+
+func (Tag927CMakerNote) EncoderName() string {
+ return "Codec927CMakerNote"
+}
+
+func (mn Tag927CMakerNote) String() string {
+ parts := make([]string, len(mn.MakerNoteType))
+
+ for i, c := range mn.MakerNoteType {
+ parts[i] = fmt.Sprintf("%02x", c)
+ }
+
+ h := sha1.New()
+
+ _, err := h.Write(mn.MakerNoteBytes)
+ log.PanicIf(err)
+
+ digest := h.Sum(nil)
+
+ return fmt.Sprintf("MakerNote", strings.Join(parts, " "), len(mn.MakerNoteBytes), digest)
+}
+
+type Codec927CMakerNote struct {
+}
+
+func (Codec927CMakerNote) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ mn, ok := value.(Tag927CMakerNote)
+ if ok == false {
+ log.Panicf("can only encode a Tag927CMakerNote")
+ }
+
+ // TODO(dustin): Confirm this size against the specification.
+
+ return mn.MakerNoteBytes, uint32(len(mn.MakerNoteBytes)), nil
+}
+
+func (Codec927CMakerNote) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // MakerNote
+ // TODO(dustin): !! This is the Wild Wild West. This very well might be a child IFD, but any and all OEM's define their own formats. If we're going to be writing changes and this is complete EXIF (which may not have the first eight bytes), it might be fine. However, if these are just IFDs they'll be relative to the main EXIF, this will invalidate the MakerNote data for IFDs and any other implementations that use offsets unless we can interpret them all. It be best to return to this later and just exclude this from being written for now, though means a loss of a wealth of image metadata.
+ // -> We can also just blindly try to interpret as an IFD and just validate that it's looks good (maybe it will even have a 'next ifd' pointer that we can validate is 0x0).
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ // TODO(dustin): Doesn't work, but here as an example.
+ // ie := NewIfdEnumerate(valueBytes, byteOrder)
+
+ // // TODO(dustin): !! Validate types (might have proprietary types, but it might be worth splitting the list between valid and not valid; maybe fail if a certain proportion are invalid, or maybe aren't less then a certain small integer)?
+ // ii, err := ie.Collect(0x0)
+
+ // for _, entry := range ii.RootIfd.Entries {
+ // fmt.Printf("ENTRY: 0x%02x %d\n", entry.TagId, entry.TagType)
+ // }
+
+ var makerNoteType []byte
+ if len(valueBytes) >= 20 {
+ makerNoteType = valueBytes[:20]
+ } else {
+ makerNoteType = valueBytes
+ }
+
+ mn := Tag927CMakerNote{
+ MakerNoteType: makerNoteType,
+
+ // MakerNoteBytes has the whole length of bytes. There's always
+ // the chance that the first 20 bytes includes actual data.
+ MakerNoteBytes: valueBytes,
+ }
+
+ return mn, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag927CMakerNote{},
+ Codec927CMakerNote{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0x927c,
+ Codec927CMakerNote{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9286_user_comment.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9286_user_comment.go
new file mode 100644
index 000000000..de07fe19e
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_9286_user_comment.go
@@ -0,0 +1,142 @@
+package exifundefined
+
+import (
+ "bytes"
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+var (
+ exif9286Logger = log.NewLogger("exifundefined.exif_9286_user_comment")
+)
+
+const (
+ TagUndefinedType_9286_UserComment_Encoding_ASCII = iota
+ TagUndefinedType_9286_UserComment_Encoding_JIS = iota
+ TagUndefinedType_9286_UserComment_Encoding_UNICODE = iota
+ TagUndefinedType_9286_UserComment_Encoding_UNDEFINED = iota
+)
+
+var (
+ TagUndefinedType_9286_UserComment_Encoding_Names = map[int]string{
+ TagUndefinedType_9286_UserComment_Encoding_ASCII: "ASCII",
+ TagUndefinedType_9286_UserComment_Encoding_JIS: "JIS",
+ TagUndefinedType_9286_UserComment_Encoding_UNICODE: "UNICODE",
+ TagUndefinedType_9286_UserComment_Encoding_UNDEFINED: "UNDEFINED",
+ }
+
+ TagUndefinedType_9286_UserComment_Encodings = map[int][]byte{
+ TagUndefinedType_9286_UserComment_Encoding_ASCII: {'A', 'S', 'C', 'I', 'I', 0, 0, 0},
+ TagUndefinedType_9286_UserComment_Encoding_JIS: {'J', 'I', 'S', 0, 0, 0, 0, 0},
+ TagUndefinedType_9286_UserComment_Encoding_UNICODE: {'U', 'n', 'i', 'c', 'o', 'd', 'e', 0},
+ TagUndefinedType_9286_UserComment_Encoding_UNDEFINED: {0, 0, 0, 0, 0, 0, 0, 0},
+ }
+)
+
+type Tag9286UserComment struct {
+ EncodingType int
+ EncodingBytes []byte
+}
+
+func (Tag9286UserComment) EncoderName() string {
+ return "Codec9286UserComment"
+}
+
+func (uc Tag9286UserComment) String() string {
+ var valuePhrase string
+
+ if uc.EncodingType == TagUndefinedType_9286_UserComment_Encoding_ASCII {
+ return fmt.Sprintf("[ASCII] %s", string(uc.EncodingBytes))
+ } else {
+ if len(uc.EncodingBytes) <= 8 {
+ valuePhrase = fmt.Sprintf("%v", uc.EncodingBytes)
+ } else {
+ valuePhrase = fmt.Sprintf("%v...", uc.EncodingBytes[:8])
+ }
+ }
+
+ return fmt.Sprintf("UserComment", len(uc.EncodingBytes), TagUndefinedType_9286_UserComment_Encoding_Names[uc.EncodingType], valuePhrase, len(uc.EncodingBytes))
+}
+
+type Codec9286UserComment struct {
+}
+
+func (Codec9286UserComment) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ uc, ok := value.(Tag9286UserComment)
+ if ok == false {
+ log.Panicf("can only encode a Tag9286UserComment")
+ }
+
+ encodingTypeBytes, found := TagUndefinedType_9286_UserComment_Encodings[uc.EncodingType]
+ if found == false {
+ log.Panicf("encoding-type not valid for unknown-type tag 9286 (UserComment): (%d)", uc.EncodingType)
+ }
+
+ encoded = make([]byte, len(uc.EncodingBytes)+8)
+
+ copy(encoded[:8], encodingTypeBytes)
+ copy(encoded[8:], uc.EncodingBytes)
+
+ // TODO(dustin): Confirm this size against the specification.
+
+ return encoded, uint32(len(encoded)), nil
+}
+
+func (Codec9286UserComment) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ if len(valueBytes) < 8 {
+ return nil, ErrUnparseableValue
+ }
+
+ unknownUc := Tag9286UserComment{
+ EncodingType: TagUndefinedType_9286_UserComment_Encoding_UNDEFINED,
+ EncodingBytes: []byte{},
+ }
+
+ encoding := valueBytes[:8]
+ for encodingIndex, encodingBytes := range TagUndefinedType_9286_UserComment_Encodings {
+ if bytes.Compare(encoding, encodingBytes) == 0 {
+ uc := Tag9286UserComment{
+ EncodingType: encodingIndex,
+ EncodingBytes: valueBytes[8:],
+ }
+
+ return uc, nil
+ }
+ }
+
+ exif9286Logger.Warningf(nil, "User-comment encoding not valid. Returning 'unknown' type (the default).")
+ return unknownUc, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag9286UserComment{},
+ Codec9286UserComment{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0x9286,
+ Codec9286UserComment{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A000_flashpix_version.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A000_flashpix_version.go
new file mode 100644
index 000000000..28849cde5
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A000_flashpix_version.go
@@ -0,0 +1,69 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type TagA000FlashpixVersion struct {
+ FlashpixVersion string
+}
+
+func (TagA000FlashpixVersion) EncoderName() string {
+ return "CodecA000FlashpixVersion"
+}
+
+func (fv TagA000FlashpixVersion) String() string {
+ return fv.FlashpixVersion
+}
+
+type CodecA000FlashpixVersion struct {
+}
+
+func (CodecA000FlashpixVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s, ok := value.(TagA000FlashpixVersion)
+ if ok == false {
+ log.Panicf("can only encode a TagA000FlashpixVersion")
+ }
+
+ return []byte(s.FlashpixVersion), uint32(len(s.FlashpixVersion)), nil
+}
+
+func (CodecA000FlashpixVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeAsciiNoNul)
+
+ valueString, err := valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ fv := TagA000FlashpixVersion{
+ FlashpixVersion: valueString,
+ }
+
+ return fv, nil
+}
+
+func init() {
+ registerEncoder(
+ TagA000FlashpixVersion{},
+ CodecA000FlashpixVersion{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0xa000,
+ CodecA000FlashpixVersion{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A20C_spatial_frequency_response.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A20C_spatial_frequency_response.go
new file mode 100644
index 000000000..d49c8c52d
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A20C_spatial_frequency_response.go
@@ -0,0 +1,160 @@
+package exifundefined
+
+import (
+ "bytes"
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type TagA20CSpatialFrequencyResponse struct {
+ Columns uint16
+ Rows uint16
+ ColumnNames []string
+ Values []exifcommon.Rational
+}
+
+func (TagA20CSpatialFrequencyResponse) EncoderName() string {
+ return "CodecA20CSpatialFrequencyResponse"
+}
+
+func (sfr TagA20CSpatialFrequencyResponse) String() string {
+ return fmt.Sprintf("CodecA20CSpatialFrequencyResponse", sfr.Columns, sfr.Rows)
+}
+
+type CodecA20CSpatialFrequencyResponse struct {
+}
+
+func (CodecA20CSpatialFrequencyResponse) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test.
+
+ sfr, ok := value.(TagA20CSpatialFrequencyResponse)
+ if ok == false {
+ log.Panicf("can only encode a TagA20CSpatialFrequencyResponse")
+ }
+
+ b := new(bytes.Buffer)
+
+ err = binary.Write(b, byteOrder, sfr.Columns)
+ log.PanicIf(err)
+
+ err = binary.Write(b, byteOrder, sfr.Rows)
+ log.PanicIf(err)
+
+ // Write columns.
+
+ for _, name := range sfr.ColumnNames {
+ _, err := b.WriteString(name)
+ log.PanicIf(err)
+
+ err = b.WriteByte(0)
+ log.PanicIf(err)
+ }
+
+ // Write values.
+
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ ed, err := ve.Encode(sfr.Values)
+ log.PanicIf(err)
+
+ _, err = b.Write(ed.Encoded)
+ log.PanicIf(err)
+
+ encoded = b.Bytes()
+
+ // TODO(dustin): Confirm this size against the specification.
+
+ return encoded, uint32(len(encoded)), nil
+}
+
+func (CodecA20CSpatialFrequencyResponse) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test using known good data.
+
+ byteOrder := valueContext.ByteOrder()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ sfr := TagA20CSpatialFrequencyResponse{}
+
+ sfr.Columns = byteOrder.Uint16(valueBytes[0:2])
+ sfr.Rows = byteOrder.Uint16(valueBytes[2:4])
+
+ columnNames := make([]string, sfr.Columns)
+
+ // startAt is where the current column name starts.
+ startAt := 4
+
+ // offset is our current position.
+ offset := 4
+
+ currentColumnNumber := uint16(0)
+
+ for currentColumnNumber < sfr.Columns {
+ if valueBytes[offset] == 0 {
+ columnName := string(valueBytes[startAt:offset])
+ if len(columnName) == 0 {
+ log.Panicf("SFR column (%d) has zero length", currentColumnNumber)
+ }
+
+ columnNames[currentColumnNumber] = columnName
+ currentColumnNumber++
+
+ offset++
+ startAt = offset
+ continue
+ }
+
+ offset++
+ }
+
+ sfr.ColumnNames = columnNames
+
+ rawRationalBytes := valueBytes[offset:]
+
+ rationalSize := exifcommon.TypeRational.Size()
+ if len(rawRationalBytes)%rationalSize > 0 {
+ log.Panicf("SFR rationals not aligned: (%d) %% (%d) > 0", len(rawRationalBytes), rationalSize)
+ }
+
+ rationalCount := len(rawRationalBytes) / rationalSize
+
+ parser := new(exifcommon.Parser)
+
+ items, err := parser.ParseRationals(rawRationalBytes, uint32(rationalCount), byteOrder)
+ log.PanicIf(err)
+
+ sfr.Values = items
+
+ return sfr, nil
+}
+
+func init() {
+ registerEncoder(
+ TagA20CSpatialFrequencyResponse{},
+ CodecA20CSpatialFrequencyResponse{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0xa20c,
+ CodecA20CSpatialFrequencyResponse{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A300_file_source.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A300_file_source.go
new file mode 100644
index 000000000..18a7cdf63
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A300_file_source.go
@@ -0,0 +1,79 @@
+package exifundefined
+
+import (
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type TagExifA300FileSource uint32
+
+func (TagExifA300FileSource) EncoderName() string {
+ return "CodecExifA300FileSource"
+}
+
+func (af TagExifA300FileSource) String() string {
+ return fmt.Sprintf("0x%08x", uint32(af))
+}
+
+const (
+ TagUndefinedType_A300_SceneType_Others TagExifA300FileSource = 0
+ TagUndefinedType_A300_SceneType_ScannerOfTransparentType TagExifA300FileSource = 1
+ TagUndefinedType_A300_SceneType_ScannerOfReflexType TagExifA300FileSource = 2
+ TagUndefinedType_A300_SceneType_Dsc TagExifA300FileSource = 3
+)
+
+type CodecExifA300FileSource struct {
+}
+
+func (CodecExifA300FileSource) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ st, ok := value.(TagExifA300FileSource)
+ if ok == false {
+ log.Panicf("can only encode a TagExifA300FileSource")
+ }
+
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ ed, err := ve.Encode([]uint32{uint32(st)})
+ log.PanicIf(err)
+
+ // TODO(dustin): Confirm this size against the specification. It's non-specific about what type it is, but it looks to be no more than a single integer scalar. So, we're assuming it's a LONG.
+
+ return ed.Encoded, 1, nil
+}
+
+func (CodecExifA300FileSource) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeLong)
+
+ valueLongs, err := valueContext.ReadLongs()
+ log.PanicIf(err)
+
+ return TagExifA300FileSource(valueLongs[0]), nil
+}
+
+func init() {
+ registerEncoder(
+ TagExifA300FileSource(0),
+ CodecExifA300FileSource{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0xa300,
+ CodecExifA300FileSource{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A301_scene_type.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A301_scene_type.go
new file mode 100644
index 000000000..b4246da18
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A301_scene_type.go
@@ -0,0 +1,76 @@
+package exifundefined
+
+import (
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type TagExifA301SceneType uint32
+
+func (TagExifA301SceneType) EncoderName() string {
+ return "CodecExifA301SceneType"
+}
+
+func (st TagExifA301SceneType) String() string {
+ return fmt.Sprintf("0x%08x", uint32(st))
+}
+
+const (
+ TagUndefinedType_A301_SceneType_DirectlyPhotographedImage TagExifA301SceneType = 1
+)
+
+type CodecExifA301SceneType struct {
+}
+
+func (CodecExifA301SceneType) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ st, ok := value.(TagExifA301SceneType)
+ if ok == false {
+ log.Panicf("can only encode a TagExif9101ComponentsConfiguration")
+ }
+
+ ve := exifcommon.NewValueEncoder(byteOrder)
+
+ ed, err := ve.Encode([]uint32{uint32(st)})
+ log.PanicIf(err)
+
+ // TODO(dustin): Confirm this size against the specification. It's non-specific about what type it is, but it looks to be no more than a single integer scalar. So, we're assuming it's a LONG.
+
+ return ed.Encoded, uint32(int(ed.UnitCount)), nil
+}
+
+func (CodecExifA301SceneType) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeLong)
+
+ valueLongs, err := valueContext.ReadLongs()
+ log.PanicIf(err)
+
+ return TagExifA301SceneType(valueLongs[0]), nil
+}
+
+func init() {
+ registerEncoder(
+ TagExifA301SceneType(0),
+ CodecExifA301SceneType{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0xa301,
+ CodecExifA301SceneType{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A302_cfa_pattern.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A302_cfa_pattern.go
new file mode 100644
index 000000000..beca78c23
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_A302_cfa_pattern.go
@@ -0,0 +1,97 @@
+package exifundefined
+
+import (
+ "bytes"
+ "fmt"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type TagA302CfaPattern struct {
+ HorizontalRepeat uint16
+ VerticalRepeat uint16
+ CfaValue []byte
+}
+
+func (TagA302CfaPattern) EncoderName() string {
+ return "CodecA302CfaPattern"
+}
+
+func (cp TagA302CfaPattern) String() string {
+ return fmt.Sprintf("TagA302CfaPattern", cp.HorizontalRepeat, cp.VerticalRepeat, len(cp.CfaValue))
+}
+
+type CodecA302CfaPattern struct {
+}
+
+func (CodecA302CfaPattern) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test.
+
+ cp, ok := value.(TagA302CfaPattern)
+ if ok == false {
+ log.Panicf("can only encode a TagA302CfaPattern")
+ }
+
+ b := new(bytes.Buffer)
+
+ err = binary.Write(b, byteOrder, cp.HorizontalRepeat)
+ log.PanicIf(err)
+
+ err = binary.Write(b, byteOrder, cp.VerticalRepeat)
+ log.PanicIf(err)
+
+ _, err = b.Write(cp.CfaValue)
+ log.PanicIf(err)
+
+ encoded = b.Bytes()
+
+ // TODO(dustin): Confirm this size against the specification.
+
+ return encoded, uint32(len(encoded)), nil
+}
+
+func (CodecA302CfaPattern) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test using known good data.
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeByte)
+
+ valueBytes, err := valueContext.ReadBytes()
+ log.PanicIf(err)
+
+ cp := TagA302CfaPattern{}
+
+ cp.HorizontalRepeat = valueContext.ByteOrder().Uint16(valueBytes[0:2])
+ cp.VerticalRepeat = valueContext.ByteOrder().Uint16(valueBytes[2:4])
+
+ expectedLength := int(cp.HorizontalRepeat * cp.VerticalRepeat)
+ cp.CfaValue = valueBytes[4 : 4+expectedLength]
+
+ return cp, nil
+}
+
+func init() {
+ registerEncoder(
+ TagA302CfaPattern{},
+ CodecA302CfaPattern{})
+
+ registerDecoder(
+ exifcommon.IfdExifStandardIfdIdentity.UnindexedString(),
+ 0xa302,
+ CodecA302CfaPattern{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_iop_0002_interop_version.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_iop_0002_interop_version.go
new file mode 100644
index 000000000..eca046b05
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/exif_iop_0002_interop_version.go
@@ -0,0 +1,69 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag0002InteropVersion struct {
+ InteropVersion string
+}
+
+func (Tag0002InteropVersion) EncoderName() string {
+ return "Codec0002InteropVersion"
+}
+
+func (iv Tag0002InteropVersion) String() string {
+ return iv.InteropVersion
+}
+
+type Codec0002InteropVersion struct {
+}
+
+func (Codec0002InteropVersion) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s, ok := value.(Tag0002InteropVersion)
+ if ok == false {
+ log.Panicf("can only encode a Tag0002InteropVersion")
+ }
+
+ return []byte(s.InteropVersion), uint32(len(s.InteropVersion)), nil
+}
+
+func (Codec0002InteropVersion) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeAsciiNoNul)
+
+ valueString, err := valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ iv := Tag0002InteropVersion{
+ InteropVersion: valueString,
+ }
+
+ return iv, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag0002InteropVersion{},
+ Codec0002InteropVersion{})
+
+ registerDecoder(
+ exifcommon.IfdExifIopStandardIfdIdentity.UnindexedString(),
+ 0x0002,
+ Codec0002InteropVersion{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001B_gps_processing_method.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001B_gps_processing_method.go
new file mode 100644
index 000000000..8583bfb27
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001B_gps_processing_method.go
@@ -0,0 +1,65 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag001BGPSProcessingMethod struct {
+ string
+}
+
+func (Tag001BGPSProcessingMethod) EncoderName() string {
+ return "Codec001BGPSProcessingMethod"
+}
+
+func (gpm Tag001BGPSProcessingMethod) String() string {
+ return gpm.string
+}
+
+type Codec001BGPSProcessingMethod struct {
+}
+
+func (Codec001BGPSProcessingMethod) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s, ok := value.(Tag001BGPSProcessingMethod)
+ if ok == false {
+ log.Panicf("can only encode a Tag001BGPSProcessingMethod")
+ }
+
+ return []byte(s.string), uint32(len(s.string)), nil
+}
+
+func (Codec001BGPSProcessingMethod) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeAsciiNoNul)
+
+ valueString, err := valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return Tag001BGPSProcessingMethod{valueString}, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag001BGPSProcessingMethod{},
+ Codec001BGPSProcessingMethod{})
+
+ registerDecoder(
+ exifcommon.IfdGpsInfoStandardIfdIdentity.UnindexedString(),
+ 0x001b,
+ Codec001BGPSProcessingMethod{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001C_gps_area_information.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001C_gps_area_information.go
new file mode 100644
index 000000000..67acceb65
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/gps_001C_gps_area_information.go
@@ -0,0 +1,65 @@
+package exifundefined
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+type Tag001CGPSAreaInformation struct {
+ string
+}
+
+func (Tag001CGPSAreaInformation) EncoderName() string {
+ return "Codec001CGPSAreaInformation"
+}
+
+func (gai Tag001CGPSAreaInformation) String() string {
+ return gai.string
+}
+
+type Codec001CGPSAreaInformation struct {
+}
+
+func (Codec001CGPSAreaInformation) Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s, ok := value.(Tag001CGPSAreaInformation)
+ if ok == false {
+ log.Panicf("can only encode a Tag001CGPSAreaInformation")
+ }
+
+ return []byte(s.string), uint32(len(s.string)), nil
+}
+
+func (Codec001CGPSAreaInformation) Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ valueContext.SetUndefinedValueType(exifcommon.TypeAsciiNoNul)
+
+ valueString, err := valueContext.ReadAsciiNoNul()
+ log.PanicIf(err)
+
+ return Tag001CGPSAreaInformation{valueString}, nil
+}
+
+func init() {
+ registerEncoder(
+ Tag001CGPSAreaInformation{},
+ Codec001CGPSAreaInformation{})
+
+ registerDecoder(
+ exifcommon.IfdGpsInfoStandardIfdIdentity.UnindexedString(),
+ 0x001c,
+ Codec001CGPSAreaInformation{})
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/registration.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/registration.go
new file mode 100644
index 000000000..cccc20a82
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/registration.go
@@ -0,0 +1,42 @@
+package exifundefined
+
+import (
+ "github.com/dsoprea/go-logging"
+)
+
+// UndefinedTagHandle defines one undefined-type tag with a corresponding
+// decoder.
+type UndefinedTagHandle struct {
+ IfdPath string
+ TagId uint16
+}
+
+func registerEncoder(entity EncodeableValue, encoder UndefinedValueEncoder) {
+ typeName := entity.EncoderName()
+
+ _, found := encoders[typeName]
+ if found == true {
+ log.Panicf("encoder already registered: %v", typeName)
+ }
+
+ encoders[typeName] = encoder
+}
+
+func registerDecoder(ifdPath string, tagId uint16, decoder UndefinedValueDecoder) {
+ uth := UndefinedTagHandle{
+ IfdPath: ifdPath,
+ TagId: tagId,
+ }
+
+ _, found := decoders[uth]
+ if found == true {
+ log.Panicf("decoder already registered: %v", uth)
+ }
+
+ decoders[uth] = decoder
+}
+
+var (
+ encoders = make(map[string]UndefinedValueEncoder)
+ decoders = make(map[UndefinedTagHandle]UndefinedValueDecoder)
+)
diff --git a/vendor/github.com/dsoprea/go-exif/v2/undefined/type.go b/vendor/github.com/dsoprea/go-exif/v2/undefined/type.go
new file mode 100644
index 000000000..29890ef86
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/undefined/type.go
@@ -0,0 +1,44 @@
+package exifundefined
+
+import (
+ "errors"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-exif/v2/common"
+)
+
+const (
+ // UnparseableUnknownTagValuePlaceholder is the string to use for an unknown
+ // undefined tag.
+ UnparseableUnknownTagValuePlaceholder = "!UNKNOWN"
+
+ // UnparseableHandledTagValuePlaceholder is the string to use for a known
+ // value that is not parseable.
+ UnparseableHandledTagValuePlaceholder = "!MALFORMED"
+)
+
+var (
+ // ErrUnparseableValue is the error for a value that we should have been
+ // able to parse but were not able to.
+ ErrUnparseableValue = errors.New("unparseable undefined tag")
+)
+
+// UndefinedValueEncoder knows how to encode an undefined-type tag's value to
+// bytes.
+type UndefinedValueEncoder interface {
+ Encode(value interface{}, byteOrder binary.ByteOrder) (encoded []byte, unitCount uint32, err error)
+}
+
+// EncodeableValue wraps a value with the information that will be needed to re-
+// encode it later.
+type EncodeableValue interface {
+ EncoderName() string
+ String() string
+}
+
+// UndefinedValueDecoder knows how to decode an undefined-type tag's value from
+// bytes.
+type UndefinedValueDecoder interface {
+ Decode(valueContext *exifcommon.ValueContext) (value EncodeableValue, err error)
+}
diff --git a/vendor/github.com/dsoprea/go-exif/v2/utility.go b/vendor/github.com/dsoprea/go-exif/v2/utility.go
new file mode 100644
index 000000000..ad692477e
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/v2/utility.go
@@ -0,0 +1,233 @@
+package exif
+
+import (
+ "fmt"
+ "math"
+ "reflect"
+ "strconv"
+ "strings"
+ "time"
+
+ "github.com/dsoprea/go-logging"
+
+ "github.com/dsoprea/go-exif/v2/common"
+ "github.com/dsoprea/go-exif/v2/undefined"
+)
+
+var (
+ utilityLogger = log.NewLogger("exif.utility")
+)
+
+var (
+ timeType = reflect.TypeOf(time.Time{})
+)
+
+// ParseExifFullTimestamp parses dates like "2018:11:30 13:01:49" into a UTC
+// `time.Time` struct.
+func ParseExifFullTimestamp(fullTimestampPhrase string) (timestamp time.Time, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ parts := strings.Split(fullTimestampPhrase, " ")
+ datestampValue, timestampValue := parts[0], parts[1]
+
+ // Normalize the separators.
+ datestampValue = strings.ReplaceAll(datestampValue, "-", ":")
+ timestampValue = strings.ReplaceAll(timestampValue, "-", ":")
+
+ dateParts := strings.Split(datestampValue, ":")
+
+ year, err := strconv.ParseUint(dateParts[0], 10, 16)
+ if err != nil {
+ log.Panicf("could not parse year")
+ }
+
+ month, err := strconv.ParseUint(dateParts[1], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse month")
+ }
+
+ day, err := strconv.ParseUint(dateParts[2], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse day")
+ }
+
+ timeParts := strings.Split(timestampValue, ":")
+
+ hour, err := strconv.ParseUint(timeParts[0], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse hour")
+ }
+
+ minute, err := strconv.ParseUint(timeParts[1], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse minute")
+ }
+
+ second, err := strconv.ParseUint(timeParts[2], 10, 8)
+ if err != nil {
+ log.Panicf("could not parse second")
+ }
+
+ timestamp = time.Date(int(year), time.Month(month), int(day), int(hour), int(minute), int(second), 0, time.UTC)
+ return timestamp, nil
+}
+
+// ExifFullTimestampString produces a string like "2018:11:30 13:01:49" from a
+// `time.Time` struct. It will attempt to convert to UTC first.
+func ExifFullTimestampString(t time.Time) (fullTimestampPhrase string) {
+ return exifcommon.ExifFullTimestampString(t)
+}
+
+// ExifTag is one simple representation of a tag in a flat list of all of them.
+type ExifTag struct {
+ // IfdPath is the fully-qualified IFD path (even though it is not named as
+ // such).
+ IfdPath string `json:"ifd_path"`
+
+ // TagId is the tag-ID.
+ TagId uint16 `json:"id"`
+
+ // TagName is the tag-name. This is never empty.
+ TagName string `json:"name"`
+
+ // UnitCount is the recorded number of units constution of the value.
+ UnitCount uint32 `json:"unit_count"`
+
+ // TagTypeId is the type-ID.
+ TagTypeId exifcommon.TagTypePrimitive `json:"type_id"`
+
+ // TagTypeName is the type name.
+ TagTypeName string `json:"type_name"`
+
+ // Value is the decoded value.
+ Value interface{} `json:"value"`
+
+ // ValueBytes is the raw, encoded value.
+ ValueBytes []byte `json:"value_bytes"`
+
+ // Formatted is the human representation of the first value (tag values are
+ // always an array).
+ FormattedFirst string `json:"formatted_first"`
+
+ // Formatted is the human representation of the complete value.
+ Formatted string `json:"formatted"`
+
+ // ChildIfdPath is the name of the child IFD this tag represents (if it
+ // represents any). Otherwise, this is empty.
+ ChildIfdPath string `json:"child_ifd_path"`
+}
+
+// String returns a string representation.
+func (et ExifTag) String() string {
+ return fmt.Sprintf(
+ "ExifTag<"+
+ "IFD-PATH=[%s] "+
+ "TAG-ID=(0x%02x) "+
+ "TAG-NAME=[%s] "+
+ "TAG-TYPE=[%s] "+
+ "VALUE=[%v] "+
+ "VALUE-BYTES=(%d) "+
+ "CHILD-IFD-PATH=[%s]",
+ et.IfdPath, et.TagId, et.TagName, et.TagTypeName, et.FormattedFirst,
+ len(et.ValueBytes), et.ChildIfdPath)
+}
+
+// GetFlatExifData returns a simple, flat representation of all tags.
+func GetFlatExifData(exifData []byte) (exifTags []ExifTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ eh, err := ParseExifHeader(exifData)
+ log.PanicIf(err)
+
+ im := NewIfdMappingWithStandard()
+ ti := NewTagIndex()
+
+ ie := NewIfdEnumerate(im, ti, exifData, eh.ByteOrder)
+
+ exifTags = make([]ExifTag, 0)
+
+ visitor := func(fqIfdPath string, ifdIndex int, ite *IfdTagEntry) (err error) {
+ // This encodes down to base64. Since this an example tool and we do not
+ // expect to ever decode the output, we are not worried about
+ // specifically base64-encoding it in order to have a measure of
+ // control.
+ valueBytes, err := ite.GetRawBytes()
+ if err != nil {
+ if err == exifundefined.ErrUnparseableValue {
+ return nil
+ }
+
+ log.Panic(err)
+ }
+
+ value, err := ite.Value()
+ if err != nil {
+ if err == exifcommon.ErrUnhandledUndefinedTypedTag {
+ value = exifundefined.UnparseableUnknownTagValuePlaceholder
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ et := ExifTag{
+ IfdPath: fqIfdPath,
+ TagId: ite.TagId(),
+ TagName: ite.TagName(),
+ UnitCount: ite.UnitCount(),
+ TagTypeId: ite.TagType(),
+ TagTypeName: ite.TagType().String(),
+ Value: value,
+ ValueBytes: valueBytes,
+ ChildIfdPath: ite.ChildIfdPath(),
+ }
+
+ et.Formatted, err = ite.Format()
+ log.PanicIf(err)
+
+ et.FormattedFirst, err = ite.FormatFirst()
+ log.PanicIf(err)
+
+ exifTags = append(exifTags, et)
+
+ return nil
+ }
+
+ _, err = ie.Scan(exifcommon.IfdStandardIfdIdentity, eh.FirstIfdOffset, visitor)
+ log.PanicIf(err)
+
+ return exifTags, nil
+}
+
+// GpsDegreesEquals returns true if the two `GpsDegrees` are identical.
+func GpsDegreesEquals(gi1, gi2 GpsDegrees) bool {
+ if gi2.Orientation != gi1.Orientation {
+ return false
+ }
+
+ degreesRightBound := math.Nextafter(gi1.Degrees, gi1.Degrees+1)
+ minutesRightBound := math.Nextafter(gi1.Minutes, gi1.Minutes+1)
+ secondsRightBound := math.Nextafter(gi1.Seconds, gi1.Seconds+1)
+
+ if gi2.Degrees < gi1.Degrees || gi2.Degrees >= degreesRightBound {
+ return false
+ } else if gi2.Minutes < gi1.Minutes || gi2.Minutes >= minutesRightBound {
+ return false
+ } else if gi2.Seconds < gi1.Seconds || gi2.Seconds >= secondsRightBound {
+ return false
+ }
+
+ return true
+}
+
+// IsTime returns true if the value is a `time.Time`.
+func IsTime(v interface{}) bool {
+ return reflect.TypeOf(v) == timeType
+}
diff --git a/vendor/github.com/dsoprea/go-exif/value_context.go b/vendor/github.com/dsoprea/go-exif/value_context.go
new file mode 100644
index 000000000..3fce352a3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-exif/value_context.go
@@ -0,0 +1,367 @@
+package exif
+
+import (
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ parser *Parser
+)
+
+// ValueContext describes all of the parameters required to find and extract
+// the actual tag value.
+type ValueContext struct {
+ unitCount uint32
+ valueOffset uint32
+ rawValueOffset []byte
+ addressableData []byte
+
+ tagType TagTypePrimitive
+ byteOrder binary.ByteOrder
+
+ // undefinedValueTagType is the effective type to use if this is an
+ // "undefined" value.
+ undefinedValueTagType TagTypePrimitive
+
+ ifdPath string
+ tagId uint16
+}
+
+func newValueContext(ifdPath string, tagId uint16, unitCount, valueOffset uint32, rawValueOffset, addressableData []byte, tagType TagTypePrimitive, byteOrder binary.ByteOrder) *ValueContext {
+ return &ValueContext{
+ unitCount: unitCount,
+ valueOffset: valueOffset,
+ rawValueOffset: rawValueOffset,
+ addressableData: addressableData,
+
+ tagType: tagType,
+ byteOrder: byteOrder,
+
+ ifdPath: ifdPath,
+ tagId: tagId,
+ }
+}
+
+func newValueContextFromTag(ite *IfdTagEntry, addressableData []byte, byteOrder binary.ByteOrder) *ValueContext {
+ return newValueContext(
+ ite.IfdPath,
+ ite.TagId,
+ ite.UnitCount,
+ ite.ValueOffset,
+ ite.RawValueOffset,
+ addressableData,
+ ite.TagType,
+ byteOrder)
+}
+
+func (vc *ValueContext) SetUnknownValueType(tagType TagTypePrimitive) {
+ vc.undefinedValueTagType = tagType
+}
+
+func (vc *ValueContext) UnitCount() uint32 {
+ return vc.unitCount
+}
+
+func (vc *ValueContext) ValueOffset() uint32 {
+ return vc.valueOffset
+}
+
+func (vc *ValueContext) RawValueOffset() []byte {
+ return vc.rawValueOffset
+}
+
+func (vc *ValueContext) AddressableData() []byte {
+ return vc.addressableData
+}
+
+// isEmbedded returns whether the value is embedded or a reference. This can't
+// be precalculated since the size is not defined for all types (namely the
+// "undefined" types).
+func (vc *ValueContext) isEmbedded() bool {
+ tagType := vc.effectiveValueType()
+
+ return (tagType.Size() * int(vc.unitCount)) <= 4
+}
+
+func (vc *ValueContext) effectiveValueType() (tagType TagTypePrimitive) {
+ if vc.tagType == TypeUndefined {
+ tagType = vc.undefinedValueTagType
+
+ if tagType == 0 {
+ log.Panicf("undefined-value type not set")
+ }
+ } else {
+ tagType = vc.tagType
+ }
+
+ return tagType
+}
+
+func (vc *ValueContext) readRawEncoded() (rawBytes []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagType := vc.effectiveValueType()
+
+ unitSizeRaw := uint32(tagType.Size())
+
+ if vc.isEmbedded() == true {
+ byteLength := unitSizeRaw * vc.unitCount
+ return vc.rawValueOffset[:byteLength], nil
+ } else {
+ return vc.addressableData[vc.valueOffset : vc.valueOffset+vc.unitCount*unitSizeRaw], nil
+ }
+}
+
+// Format returns a string representation for the value.
+//
+// Where the type is not ASCII, `justFirst` indicates whether to just stringify
+// the first item in the slice (or return an empty string if the slice is
+// empty).
+//
+// Since this method lacks the information to process undefined-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (vc *ValueContext) Format() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawBytes, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ phrase, err := Format(rawBytes, vc.tagType, false, vc.byteOrder)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+// FormatOne is similar to `Format` but only gets and stringifies the first
+// item.
+func (vc *ValueContext) FormatFirst() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawBytes, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ phrase, err := Format(rawBytes, vc.tagType, true, vc.byteOrder)
+ log.PanicIf(err)
+
+ return phrase, nil
+}
+
+func (vc *ValueContext) ReadBytes() (value []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseBytes(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadAscii() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseAscii(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadAsciiNoNul() (value string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseAsciiNoNul(rawValue, vc.unitCount)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadShorts() (value []uint16, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseShorts(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadLongs() (value []uint32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseLongs(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadRationals() (value []Rational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseRationals(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadSignedLongs() (value []int32, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseSignedLongs(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+func (vc *ValueContext) ReadSignedRationals() (value []SignedRational, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rawValue, err := vc.readRawEncoded()
+ log.PanicIf(err)
+
+ value, err = parser.ParseSignedRationals(rawValue, vc.unitCount, vc.byteOrder)
+ log.PanicIf(err)
+
+ return value, nil
+}
+
+// Values knows how to resolve the given value. This value is always a list
+// (undefined-values aside), so we're named accordingly.
+//
+// Since this method lacks the information to process unknown-type tags (e.g.
+// byte-order, tag-ID, IFD type), it will return an error if attempted. See
+// `Undefined()`.
+func (vc *ValueContext) Values() (values interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if vc.tagType == TypeByte {
+ values, err = vc.ReadBytes()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeAscii {
+ values, err = vc.ReadAscii()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeAsciiNoNul {
+ values, err = vc.ReadAsciiNoNul()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeShort {
+ values, err = vc.ReadShorts()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeLong {
+ values, err = vc.ReadLongs()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeRational {
+ values, err = vc.ReadRationals()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeSignedLong {
+ values, err = vc.ReadSignedLongs()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeSignedRational {
+ values, err = vc.ReadSignedRationals()
+ log.PanicIf(err)
+ } else if vc.tagType == TypeUndefined {
+ log.Panicf("will not parse undefined-type value")
+
+ // Never called.
+ return nil, nil
+ } else {
+ log.Panicf("value of type [%s] is unparseable", vc.tagType)
+
+ // Never called.
+ return nil, nil
+ }
+
+ return values, nil
+}
+
+// Undefined attempts to identify and decode supported undefined-type fields.
+// This is the primary, preferred interface to reading undefined values.
+func (vc *ValueContext) Undefined() (value interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ value, err = UndefinedValue(vc.ifdPath, vc.tagId, vc, vc.byteOrder)
+ if err != nil {
+ if err == ErrUnhandledUnknownTypedTag {
+ return nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ return value, nil
+}
+
+func init() {
+ parser = &Parser{}
+}
diff --git a/vendor/github.com/dsoprea/go-iptc/.MODULE_ROOT b/vendor/github.com/dsoprea/go-iptc/.MODULE_ROOT
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/github.com/dsoprea/go-iptc/.travis.yml b/vendor/github.com/dsoprea/go-iptc/.travis.yml
new file mode 100644
index 000000000..710e46b39
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/.travis.yml
@@ -0,0 +1,14 @@
+language: go
+go:
+ - master
+ - stable
+ - "1.13"
+ - "1.12"
+env:
+ - GO111MODULE=on
+install:
+ - go get -t ./...
+ - go get github.com/mattn/goveralls
+script:
+ - go test -v ./...
+ - goveralls -v -service=travis-ci
diff --git a/vendor/github.com/dsoprea/go-iptc/LICENSE b/vendor/github.com/dsoprea/go-iptc/LICENSE
new file mode 100644
index 000000000..d92c04268
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-iptc/README.md b/vendor/github.com/dsoprea/go-iptc/README.md
new file mode 100644
index 000000000..8065d16e4
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/README.md
@@ -0,0 +1,8 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-iptc.svg?branch=master)](https://travis-ci.org/dsoprea/go-iptc)
+[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-iptc/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-iptc?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-iptc)](https://goreportcard.com/report/github.com/dsoprea/go-iptc)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-iptc?status.svg)](https://godoc.org/github.com/dsoprea/go-iptc)
+
+# Overview
+
+This project provides functionality to parse a series of IPTC records/datasets. It also provides name resolution, but other constraints/validation is not yet implemented (though there is structure present that can accommodate this when desired/required).
diff --git a/vendor/github.com/dsoprea/go-iptc/go.mod b/vendor/github.com/dsoprea/go-iptc/go.mod
new file mode 100644
index 000000000..45c02f432
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/go.mod
@@ -0,0 +1,5 @@
+module github.com/dsoprea/go-iptc
+
+go 1.13
+
+require github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d
diff --git a/vendor/github.com/dsoprea/go-iptc/go.sum b/vendor/github.com/dsoprea/go-iptc/go.sum
new file mode 100644
index 000000000..9d20e12fd
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/go.sum
@@ -0,0 +1,10 @@
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d h1:F/7L5wr/fP/SKeO5HuMlNEX9Ipyx2MbH2rV9G4zJRpk=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/dsoprea/go-iptc/standard.go b/vendor/github.com/dsoprea/go-iptc/standard.go
new file mode 100644
index 000000000..307aa5a87
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/standard.go
@@ -0,0 +1,101 @@
+package iptc
+
+import (
+ "errors"
+)
+
+// StreamTagInfo encapsulates the properties of each tag.
+type StreamTagInfo struct {
+ // Description is the human-readable description of the tag.
+ Description string
+}
+
+var (
+ standardTags = map[StreamTagKey]StreamTagInfo{
+ {1, 120}: {"ARM Identifier"},
+
+ {1, 122}: {"ARM Version"},
+ {2, 0}: {"Record Version"},
+ {2, 3}: {"Object Type Reference"},
+ {2, 4}: {"Object Attribute Reference"},
+ {2, 5}: {"Object Name"},
+ {2, 7}: {"Edit Status"},
+ {2, 8}: {"Editorial Update"},
+ {2, 10}: {"Urgency"},
+ {2, 12}: {"Subject Reference"},
+ {2, 15}: {"Category"},
+ {2, 20}: {"Supplemental Category"},
+ {2, 22}: {"Fixture Identifier"},
+ {2, 25}: {"Keywords"},
+ {2, 26}: {"Content Location Code"},
+ {2, 27}: {"Content Location Name"},
+ {2, 30}: {"Release Date"},
+ {2, 35}: {"Release Time"},
+ {2, 37}: {"Expiration Date"},
+ {2, 38}: {"Expiration Time"},
+ {2, 40}: {"Special Instructions"},
+ {2, 42}: {"Action Advised"},
+ {2, 45}: {"Reference Service"},
+ {2, 47}: {"Reference Date"},
+ {2, 50}: {"Reference Number"},
+ {2, 55}: {"Date Created"},
+ {2, 60}: {"Time Created"},
+ {2, 62}: {"Digital Creation Date"},
+ {2, 63}: {"Digital Creation Time"},
+ {2, 65}: {"Originating Program"},
+ {2, 70}: {"Program Version"},
+ {2, 75}: {"Object Cycle"},
+ {2, 80}: {"By-line"},
+ {2, 85}: {"By-line Title"},
+ {2, 90}: {"City"},
+ {2, 92}: {"Sublocation"},
+ {2, 95}: {"Province/State"},
+ {2, 100}: {"Country/Primary Location Code"},
+ {2, 101}: {"Country/Primary Location Name"},
+ {2, 103}: {"Original Transmission Reference"},
+ {2, 105}: {"Headline"},
+ {2, 110}: {"Credit"},
+ {2, 115}: {"Source"},
+ {2, 116}: {"Copyright Notice"},
+ {2, 118}: {"Contact"},
+ {2, 120}: {"Caption/Abstract"},
+ {2, 122}: {"Writer/Editor"},
+ {2, 125}: {"Rasterized Caption"},
+ {2, 130}: {"Image Type"},
+ {2, 131}: {"Image Orientation"},
+ {2, 135}: {"Language Identifier"},
+ {2, 150}: {"Audio Type"},
+ {2, 151}: {"Audio Sampling Rate"},
+ {2, 152}: {"Audio Sampling Resolution"},
+ {2, 153}: {"Audio Duration"},
+ {2, 154}: {"Audio Outcue"},
+ {2, 200}: {"ObjectData Preview File Format"},
+ {2, 201}: {"ObjectData Preview File Format Version"},
+ {2, 202}: {"ObjectData Preview Data"},
+ {7, 10}: {"Size Mode"},
+ {7, 20}: {"Max Subfile Size"},
+ {7, 90}: {"ObjectData Size Announced"},
+ {7, 95}: {"Maximum ObjectData Size"},
+ {8, 10}: {"Subfile"},
+ {9, 10}: {"Confirmed ObjectData Size"},
+ }
+)
+
+var (
+ // ErrTagNotStandard indicates that the given tag is not known among the
+ // documented standard set.
+ ErrTagNotStandard = errors.New("not a standard tag")
+)
+
+// GetTagInfo return the info for the given tag. Returns ErrTagNotStandard if
+// not known.
+func GetTagInfo(recordNumber, datasetNumber int) (sti StreamTagInfo, err error) {
+ stk := StreamTagKey{uint8(recordNumber), uint8(datasetNumber)}
+
+ sti, found := standardTags[stk]
+ if found == false {
+ return sti, ErrTagNotStandard
+ }
+
+ return sti, nil
+}
diff --git a/vendor/github.com/dsoprea/go-iptc/tag.go b/vendor/github.com/dsoprea/go-iptc/tag.go
new file mode 100644
index 000000000..4ceabf41d
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/tag.go
@@ -0,0 +1,277 @@
+package iptc
+
+import (
+ "errors"
+ "fmt"
+ "io"
+ "strings"
+ "unicode"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ // TODO(dustin): We're still not sure if this is the right endianness. No search to IPTC or IIM seems to state one or the other.
+
+ // DefaultEncoding is the standard encoding for the IPTC format.
+ defaultEncoding = binary.BigEndian
+)
+
+var (
+ // ErrInvalidTagMarker indicates that the tag can not be parsed because the
+ // tag boundary marker is not the expected value.
+ ErrInvalidTagMarker = errors.New("invalid tag marker")
+)
+
+// Tag describes one tag read from the stream.
+type Tag struct {
+ recordNumber uint8
+ datasetNumber uint8
+ dataSize uint64
+}
+
+// String expresses state as a string.
+func (tag *Tag) String() string {
+ return fmt.Sprintf(
+ "Tag",
+ tag.recordNumber, tag.datasetNumber, tag.dataSize)
+}
+
+// DecodeTag parses one tag from the stream.
+func DecodeTag(r io.Reader) (tag Tag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tagMarker := uint8(0)
+ err = binary.Read(r, defaultEncoding, &tagMarker)
+ if err != nil {
+ if err == io.EOF {
+ return tag, err
+ }
+
+ log.Panic(err)
+ }
+
+ if tagMarker != 0x1c {
+ return tag, ErrInvalidTagMarker
+ }
+
+ recordNumber := uint8(0)
+ err = binary.Read(r, defaultEncoding, &recordNumber)
+ log.PanicIf(err)
+
+ datasetNumber := uint8(0)
+ err = binary.Read(r, defaultEncoding, &datasetNumber)
+ log.PanicIf(err)
+
+ dataSize16Raw := uint16(0)
+ err = binary.Read(r, defaultEncoding, &dataSize16Raw)
+ log.PanicIf(err)
+
+ var dataSize uint64
+
+ if dataSize16Raw < 32768 {
+ // We only had 16-bits (has the MSB set to (0)).
+ dataSize = uint64(dataSize16Raw)
+ } else {
+ // This field is just the length of the length (has the MSB set to (1)).
+
+ // Clear the MSB.
+ lengthLength := dataSize16Raw & 32767
+
+ if lengthLength == 4 {
+ dataSize32Raw := uint32(0)
+ err := binary.Read(r, defaultEncoding, &dataSize32Raw)
+ log.PanicIf(err)
+
+ dataSize = uint64(dataSize32Raw)
+ } else if lengthLength == 8 {
+ err := binary.Read(r, defaultEncoding, &dataSize)
+ log.PanicIf(err)
+ } else {
+ // No specific sizes or limits are specified in the specification
+ // so we need to impose our own limits in order to implement.
+
+ log.Panicf("extended data-set tag size is not supported: (%d)", lengthLength)
+ }
+ }
+
+ tag = Tag{
+ recordNumber: recordNumber,
+ datasetNumber: datasetNumber,
+ dataSize: dataSize,
+ }
+
+ return tag, nil
+}
+
+// StreamTagKey is a convenience type that lets us key our index with a high-
+// level type.
+type StreamTagKey struct {
+ // RecordNumber is the major classification of the dataset.
+ RecordNumber uint8
+
+ // DatasetNumber is the minor classification of the dataset.
+ DatasetNumber uint8
+}
+
+// String returns a descriptive string.
+func (stk StreamTagKey) String() string {
+ return fmt.Sprintf("%d:%d", stk.RecordNumber, stk.DatasetNumber)
+}
+
+// TagData is a convenience wrapper around a byte-slice.
+type TagData []byte
+
+// IsPrintable returns true if all characters are printable.
+func (tg TagData) IsPrintable() bool {
+ for _, b := range tg {
+ r := rune(b)
+
+ // Newline characters aren't considered printable.
+ if r == 0x0d || r == 0x0a {
+ continue
+ }
+
+ if unicode.IsGraphic(r) == false || unicode.IsPrint(r) == false {
+ return false
+ }
+ }
+
+ return true
+}
+
+// String returns a descriptive string. If the data doesn't include any non-
+// printable characters, it will include the value itself.
+func (tg TagData) String() string {
+ if tg.IsPrintable() == true {
+ return string(tg)
+ }
+
+ return fmt.Sprintf("BINARY<(%d) bytes>", len(tg))
+}
+
+// ParsedTags is the complete, unordered set of tags parsed from the stream.
+type ParsedTags map[StreamTagKey][]TagData
+
+// ParseStream parses a serial sequence of tags and tag data out of the stream.
+func ParseStream(r io.Reader) (tags map[StreamTagKey][]TagData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ tags = make(ParsedTags)
+
+ for {
+ tag, err := DecodeTag(r)
+ if err != nil {
+ if err == io.EOF {
+ break
+ }
+
+ log.Panic(err)
+ }
+
+ raw := make([]byte, tag.dataSize)
+
+ _, err = io.ReadFull(r, raw)
+ log.PanicIf(err)
+
+ data := TagData(raw)
+
+ stk := StreamTagKey{
+ RecordNumber: tag.recordNumber,
+ DatasetNumber: tag.datasetNumber,
+ }
+
+ if existing, found := tags[stk]; found == true {
+ tags[stk] = append(existing, data)
+ } else {
+ tags[stk] = []TagData{data}
+ }
+ }
+
+ return tags, nil
+}
+
+// GetSimpleDictionaryFromParsedTags returns a dictionary of tag names to tag
+// values, where all values are strings and any tag that had a non-printable
+// value is omitted. We will also only return the first value, therefore
+// dropping any follow-up values for repeatable tags. This will ignore non-
+// standard tags. This will trim whitespace from the ends of strings.
+//
+// This is a convenience function for quickly displaying only the summary IPTC
+// metadata that a user might actually be interested in at first glance.
+func GetSimpleDictionaryFromParsedTags(pt ParsedTags) (distilled map[string]string) {
+ distilled = make(map[string]string)
+
+ for stk, dataSlice := range pt {
+ sti, err := GetTagInfo(int(stk.RecordNumber), int(stk.DatasetNumber))
+ if err != nil {
+ if err == ErrTagNotStandard {
+ continue
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ data := dataSlice[0]
+
+ if data.IsPrintable() == false {
+ continue
+ }
+
+ // TODO(dustin): Trim leading whitespace, too.
+ distilled[sti.Description] = strings.Trim(string(data), "\r\n")
+ }
+
+ return distilled
+}
+
+// GetDictionaryFromParsedTags returns all tags. It will keep non-printable
+// values, though will not print a placeholder instead. This will keep non-
+// standard tags (and print the fully-qualified dataset ID rather than the
+// name). It will keep repeated values (with the counter value appended to the
+// end).
+func GetDictionaryFromParsedTags(pt ParsedTags) (distilled map[string]string) {
+ distilled = make(map[string]string)
+ for stk, dataSlice := range pt {
+ var keyPhrase string
+
+ sti, err := GetTagInfo(int(stk.RecordNumber), int(stk.DatasetNumber))
+ if err != nil {
+ if err == ErrTagNotStandard {
+ keyPhrase = fmt.Sprintf("%s (not a standard tag)", stk.String())
+ } else {
+ log.Panic(err)
+ }
+ } else {
+ keyPhrase = sti.Description
+ }
+
+ for i, data := range dataSlice {
+ currentKeyPhrase := keyPhrase
+ if len(dataSlice) > 1 {
+ currentKeyPhrase = fmt.Sprintf("%s (%d)", currentKeyPhrase, i+1)
+ }
+
+ var presentable string
+ if data.IsPrintable() == false {
+ presentable = fmt.Sprintf("[BINARY] %s", DumpBytesToString(data))
+ } else {
+ presentable = string(data)
+ }
+
+ distilled[currentKeyPhrase] = presentable
+ }
+ }
+
+ return distilled
+}
diff --git a/vendor/github.com/dsoprea/go-iptc/testing_common.go b/vendor/github.com/dsoprea/go-iptc/testing_common.go
new file mode 100644
index 000000000..b54b9b8f3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/testing_common.go
@@ -0,0 +1,73 @@
+package iptc
+
+import (
+ "os"
+ "path"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ testDataRelFilepath = "iptc.data"
+)
+
+var (
+ moduleRootPath = ""
+ assetsPath = ""
+)
+
+// GetModuleRootPath returns the root-path of the module.
+func GetModuleRootPath() string {
+ if moduleRootPath == "" {
+ moduleRootPath = os.Getenv("IPTC_MODULE_ROOT_PATH")
+ if moduleRootPath != "" {
+ return moduleRootPath
+ }
+
+ currentWd, err := os.Getwd()
+ log.PanicIf(err)
+
+ currentPath := currentWd
+ visited := make([]string, 0)
+
+ for {
+ tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT")
+
+ _, err := os.Stat(tryStampFilepath)
+ if err != nil && os.IsNotExist(err) != true {
+ log.Panic(err)
+ } else if err == nil {
+ break
+ }
+
+ visited = append(visited, tryStampFilepath)
+
+ currentPath = path.Dir(currentPath)
+ if currentPath == "/" {
+ log.Panicf("could not find module-root: %v", visited)
+ }
+ }
+
+ moduleRootPath = currentPath
+ }
+
+ return moduleRootPath
+}
+
+// GetTestAssetsPath returns the path of the test-assets.
+func GetTestAssetsPath() string {
+ if assetsPath == "" {
+ moduleRootPath := GetModuleRootPath()
+ assetsPath = path.Join(moduleRootPath, "assets")
+ }
+
+ return assetsPath
+}
+
+// GetTestDataFilepath returns the file-path of the common test-data.
+func GetTestDataFilepath() string {
+ assetsPath := GetTestAssetsPath()
+ filepath := path.Join(assetsPath, testDataRelFilepath)
+
+ return filepath
+}
diff --git a/vendor/github.com/dsoprea/go-iptc/utility.go b/vendor/github.com/dsoprea/go-iptc/utility.go
new file mode 100644
index 000000000..5a4a10ad3
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-iptc/utility.go
@@ -0,0 +1,25 @@
+package iptc
+
+import (
+ "bytes"
+ "fmt"
+
+ "github.com/dsoprea/go-logging"
+)
+
+// DumpBytesToString returns a stringified list of hex-encoded bytes.
+func DumpBytesToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteRune(' ')
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/.MODULE_ROOT b/vendor/github.com/dsoprea/go-jpeg-image-structure/.MODULE_ROOT
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/.travis.yml b/vendor/github.com/dsoprea/go-jpeg-image-structure/.travis.yml
new file mode 100644
index 000000000..4c79875ed
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/.travis.yml
@@ -0,0 +1,21 @@
+language: go
+go:
+ - master
+ - stable
+ - "1.14"
+ - "1.13"
+ - "1.12"
+env:
+ - GO111MODULE=on
+install:
+ - go get -t ./...
+script:
+# v1
+ - go test -v .
+# v2
+ - cd v2
+ - go test -v ./... -coverprofile=coverage.txt -covermode=atomic
+ - cd ..
+after_success:
+ - cd v2
+ - curl -s https://codecov.io/bash | bash
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/LICENSE b/vendor/github.com/dsoprea/go-jpeg-image-structure/LICENSE
new file mode 100644
index 000000000..163291ed6
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/LICENSE
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright 2020 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/README.md b/vendor/github.com/dsoprea/go-jpeg-image-structure/README.md
new file mode 100644
index 000000000..67bc57617
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/README.md
@@ -0,0 +1,10 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-jpeg-image-structure.svg?branch=master)](https://travis-ci.org/dsoprea/go-jpeg-image-structure)
+[![codecov](https://codecov.io/gh/dsoprea/go-jpeg-image-structure/branch/master/graph/badge.svg?token=Twxyx7kpAa)](https://codecov.io/gh/dsoprea/go-jpeg-image-structure)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-jpeg-image-structure/v2)](https://goreportcard.com/report/github.com/dsoprea/go-jpeg-image-structure/v2)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-jpeg-image-structure/v2?status.svg)](https://godoc.org/github.com/dsoprea/go-jpeg-image-structure/v2)
+
+## Overview
+
+Parse raw JPEG data into individual segments of data. You can print or export this data, including hash digests for each. You can also parse/modify the EXIF data and write an updated image.
+
+EXIF, XMP, and IPTC data can also be extracted. The provided CLI tool can print this data as well.
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/go.mod b/vendor/github.com/dsoprea/go-jpeg-image-structure/go.mod
new file mode 100644
index 000000000..48f12ab97
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/go.mod
@@ -0,0 +1,22 @@
+module github.com/dsoprea/go-jpeg-image-structure
+
+go 1.13
+
+// Development only
+// replace github.com/dsoprea/go-utility => ../go-utility
+// replace github.com/dsoprea/go-logging => ../go-logging
+// replace github.com/dsoprea/go-exif/v2 => ../go-exif/v2
+// replace github.com/dsoprea/go-photoshop-info-format => ../go-photoshop-info-format
+// replace github.com/dsoprea/go-iptc => ../go-iptc
+
+require (
+ github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4
+ github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e // indirect
+ github.com/dsoprea/go-iptc v0.0.0-20200609062250-162ae6b44feb
+ github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d
+ github.com/dsoprea/go-photoshop-info-format v0.0.0-20200609050348-3db9b63b202c
+ github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf
+ github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b
+ github.com/jessevdk/go-flags v1.4.0
+ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 // indirect
+)
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/go.sum b/vendor/github.com/dsoprea/go-jpeg-image-structure/go.sum
new file mode 100644
index 000000000..93058b8c9
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/go.sum
@@ -0,0 +1,85 @@
+github.com/dsoprea/go-exif v0.0.0-20200502203340-6aea10b45f4c h1:PoW4xOq3wUrX8ghNGiJFzem7mwd+mY/Xkgo0Z8AwcNY=
+github.com/dsoprea/go-exif v0.0.0-20200516122116-a45cc7cfd55e h1:tTb1WdrhFs8VdnmxiADJEUpDJWKHFUFys0OUyLM9A6o=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113231207-0bbb7a3584f7 h1:+koSu4BOaLu+dy50WEj+ltzEjMzK5evzPawKxgIQerw=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113231207-0bbb7a3584f7/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200321225314-640175a69fe4/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200502203340-6aea10b45f4c h1:fQNBTLqL4u7yhl5AqW6dGG5RSxGuRhzXLnBVDR2uUuE=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200502203340-6aea10b45f4c/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516113213-42546383ce8f h1:WFrUfvt3uESgJ/NwPG/2Vjhp2uOE7X2wENldE+ch1yw=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516113213-42546383ce8f/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516122116-a45cc7cfd55e h1:tPHXVRs63sg0ajoZjdmMa5aZuyjnSAt3Anwh2F4XsJM=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516122116-a45cc7cfd55e/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516213102-7f6eb3d9f38c h1:92aud+9pN3bQjh/iw1+849uOBQfLuAcUC4LJwtfmRBo=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200516213102-7f6eb3d9f38c/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517080529-c9be4b30b064 h1:V7CH/kZImE6Lf27H4DS5PG7qzBkf774GIXUuM31vVNA=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517080529-c9be4b30b064/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200518001653-d0d0f14dea03 h1:r+aCxLEe6uGDC/NJCpA3WQJ+C7WJ0chzfHKgy173fug=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200518001653-d0d0f14dea03/go.mod h1:STKu28lNwOeoO0bieAKJ3zQYkUbZ2hivI6qjjGVW0sc=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200520183328-015129a9efd5 h1:iKMxnRjFqQQYKEpdsjFDMV2+VUAncTLT4ofcCiQpDvo=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200520183328-015129a9efd5/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527040709-fecb7e81f4be h1:iYHdwTUXN48h6wZd2QQHDyR4QsuWM08PX4wCJuzd7O0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527040709-fecb7e81f4be/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527042908-2a1e3f0fa19c h1:3uLJ1ub/I1sFM76IEzRi7RjqbhL1WfyPJeSko0tIYMI=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527042908-2a1e3f0fa19c/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527165002-1a62daf3052a h1:Xk487H/DyhmIgYAnbJ5gvOrwI/eJ+FVXIO9Y22m44VI=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200527165002-1a62daf3052a/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4 h1:Mg7pY7kxDQD2Bkvr1N+XW4BESSIQ7tTTR7Vv+Gi2CsM=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v3 v3.0.0-20200717053412-08f1b6708903/go.mod h1:0nsO1ce0mh5czxGeLo4+OCZ/C6Eo6ZlMWsz7rH/Gxv8=
+github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e h1:E4XTSQZF/JtOQWcSaJBJho7t+RNWfdO92W/5skg10Jk=
+github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e/go.mod h1:cg5SNYKHMmzxsr9X6ZeLh/nfBRHHp5PngtEPcujONtk=
+github.com/dsoprea/go-iptc v0.0.0-20200609062250-162ae6b44feb h1:gwjJjUr6FY7zAWVEueFPrcRHhd9+IK81TcItbqw2du4=
+github.com/dsoprea/go-iptc v0.0.0-20200609062250-162ae6b44feb/go.mod h1:kYIdx9N9NaOyD7U6D+YtExN7QhRm+5kq7//yOsRXQtM=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696 h1:VGFnZAcLwPpt1sHlAxml+pGLZz9A2s+K/s1YNhPC91Y=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696/go.mod h1:Nm/x2ZUNRW6Fe5C3LxdY1PyZY5wmDv/s5dkPJ/VB3iA=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f h1:FonKAuW3PmNtqk9tOR+Z7bnyQHytmnZBCmm5z1PQMss=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-logging v0.0.0-20200517222403-5742ce3fc1be h1:k3sHKay8cXGnGHeF8x6U7KtX8Lc7qAiQCNDRGEIPdnU=
+github.com/dsoprea/go-logging v0.0.0-20200517222403-5742ce3fc1be/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d h1:F/7L5wr/fP/SKeO5HuMlNEX9Ipyx2MbH2rV9G4zJRpk=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-photoshop-info-format v0.0.0-20200609050348-3db9b63b202c h1:7j5aWACOzROpr+dvMtu8GnI97g9ShLWD72XIELMgn+c=
+github.com/dsoprea/go-photoshop-info-format v0.0.0-20200609050348-3db9b63b202c/go.mod h1:pqKB+ijp27cEcrHxhXVgUUMlSDRuGJJp1E+20Lj5H0E=
+github.com/dsoprea/go-utility v0.0.0-20200322055224-4dc0f716e7d0 h1:zFSboMDWXX2UX7/k/mCHBjZhHlaFMx0HmtUE37HABsA=
+github.com/dsoprea/go-utility v0.0.0-20200322055224-4dc0f716e7d0/go.mod h1:xv8CVgDmI/Shx/X+EUXyXELVnH5lSRUYRija52OHq7E=
+github.com/dsoprea/go-utility v0.0.0-20200322154813-27f0b0d142d7 h1:DJhSHW0odJrW5wR9MU6ry5S+PsxuRXA165KFaiB+cZo=
+github.com/dsoprea/go-utility v0.0.0-20200322154813-27f0b0d142d7/go.mod h1:xv8CVgDmI/Shx/X+EUXyXELVnH5lSRUYRija52OHq7E=
+github.com/dsoprea/go-utility v0.0.0-20200512094054-1abbbc781176 h1:CfXezFYb2STGOd1+n1HshvE191zVx+QX3A1nML5xxME=
+github.com/dsoprea/go-utility v0.0.0-20200512094054-1abbbc781176/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf h1:/w4QxepU4AHh3AuO6/g8y/YIIHH5+aKP3Bj8sg5cqhU=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
+github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e h1:IxIbA7VbCNrwumIYjDoMOdf4KOSkMC6NJE4s8oRbE7E=
+github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e/go.mod h1:uAzdkPTub5Y9yQwXe8W4m2XuP0tK4a9Q/dantD0+uaU=
+github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
+github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+github.com/go-errors/errors v1.1.1 h1:ljK/pL5ltg3qoN+OtN6yCv9HWSfMwxSx90GJCZQxYNg=
+github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b h1:khEcpUM4yFcxg4/FHQWkvVRmgijNXRfzkIDHh23ggEo=
+github.com/go-xmlfmt/xmlfmt v0.0.0-20191208150333-d5b6f63a941b/go.mod h1:aUCEOzzezBEjDBbFBoSiya/gduyIiWYRP6CnSFIV8AM=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d h1:C/hKUcHT483btRbeGkrRjJz+Zbcj8audldIi9tRJDCc=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/jessevdk/go-flags v1.4.0 h1:4IU2WS7AumrZ/40jfhf4QVDMsQwqA7VEHozFRrGARJA=
+github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120 h1:EZ3cVSzKOlJxAd8e8YAJ7no8nNypTxexh/YE/xW3ZEY=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 h1:eDrdRpKgkcCqKZQwyZRyeFZgfqt37SL7Kv3tok06cKE=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
+gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/markers.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/markers.go
new file mode 100644
index 000000000..a12171bd8
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/markers.go
@@ -0,0 +1,212 @@
+package jpegstructure
+
+import (
+ "github.com/dsoprea/go-logging"
+)
+
+const (
+ // MARKER_SOI marker
+ MARKER_SOI = 0xd8
+
+ // MARKER_EOI marker
+ MARKER_EOI = 0xd9
+
+ // MARKER_SOS marker
+ MARKER_SOS = 0xda
+
+ // MARKER_SOD marker
+ MARKER_SOD = 0x93
+
+ // MARKER_DQT marker
+ MARKER_DQT = 0xdb
+
+ // MARKER_APP0 marker
+ MARKER_APP0 = 0xe0
+
+ // MARKER_APP1 marker
+ MARKER_APP1 = 0xe1
+
+ // MARKER_APP2 marker
+ MARKER_APP2 = 0xe2
+
+ // MARKER_APP3 marker
+ MARKER_APP3 = 0xe3
+
+ // MARKER_APP4 marker
+ MARKER_APP4 = 0xe4
+
+ // MARKER_APP5 marker
+ MARKER_APP5 = 0xe5
+
+ // MARKER_APP6 marker
+ MARKER_APP6 = 0xe6
+
+ // MARKER_APP7 marker
+ MARKER_APP7 = 0xe7
+
+ // MARKER_APP8 marker
+ MARKER_APP8 = 0xe8
+
+ // MARKER_APP10 marker
+ MARKER_APP10 = 0xea
+
+ // MARKER_APP12 marker
+ MARKER_APP12 = 0xec
+
+ // MARKER_APP13 marker
+ MARKER_APP13 = 0xed
+
+ // MARKER_APP14 marker
+ MARKER_APP14 = 0xee
+
+ // MARKER_APP15 marker
+ MARKER_APP15 = 0xef
+
+ // MARKER_COM marker
+ MARKER_COM = 0xfe
+
+ // MARKER_CME marker
+ MARKER_CME = 0x64
+
+ // MARKER_SIZ marker
+ MARKER_SIZ = 0x51
+
+ // MARKER_DHT marker
+ MARKER_DHT = 0xc4
+
+ // MARKER_JPG marker
+ MARKER_JPG = 0xc8
+
+ // MARKER_DAC marker
+ MARKER_DAC = 0xcc
+
+ // MARKER_SOF0 marker
+ MARKER_SOF0 = 0xc0
+
+ // MARKER_SOF1 marker
+ MARKER_SOF1 = 0xc1
+
+ // MARKER_SOF2 marker
+ MARKER_SOF2 = 0xc2
+
+ // MARKER_SOF3 marker
+ MARKER_SOF3 = 0xc3
+
+ // MARKER_SOF5 marker
+ MARKER_SOF5 = 0xc5
+
+ // MARKER_SOF6 marker
+ MARKER_SOF6 = 0xc6
+
+ // MARKER_SOF7 marker
+ MARKER_SOF7 = 0xc7
+
+ // MARKER_SOF9 marker
+ MARKER_SOF9 = 0xc9
+
+ // MARKER_SOF10 marker
+ MARKER_SOF10 = 0xca
+
+ // MARKER_SOF11 marker
+ MARKER_SOF11 = 0xcb
+
+ // MARKER_SOF13 marker
+ MARKER_SOF13 = 0xcd
+
+ // MARKER_SOF14 marker
+ MARKER_SOF14 = 0xce
+
+ // MARKER_SOF15 marker
+ MARKER_SOF15 = 0xcf
+)
+
+var (
+ jpegLogger = log.NewLogger("jpegstructure.jpeg")
+ jpegMagicStandard = []byte{0xff, MARKER_SOI, 0xff}
+ jpegMagic2000 = []byte{0xff, 0x4f, 0xff}
+
+ markerLen = map[byte]int{
+ 0x00: 0,
+ 0x01: 0,
+ 0xd0: 0,
+ 0xd1: 0,
+ 0xd2: 0,
+ 0xd3: 0,
+ 0xd4: 0,
+ 0xd5: 0,
+ 0xd6: 0,
+ 0xd7: 0,
+ 0xd8: 0,
+ 0xd9: 0,
+ 0xda: 0,
+
+ // J2C
+ 0x30: 0,
+ 0x31: 0,
+ 0x32: 0,
+ 0x33: 0,
+ 0x34: 0,
+ 0x35: 0,
+ 0x36: 0,
+ 0x37: 0,
+ 0x38: 0,
+ 0x39: 0,
+ 0x3a: 0,
+ 0x3b: 0,
+ 0x3c: 0,
+ 0x3d: 0,
+ 0x3e: 0,
+ 0x3f: 0,
+ 0x4f: 0,
+ 0x92: 0,
+ 0x93: 0,
+
+ // J2C extensions
+ 0x74: 4,
+ 0x75: 4,
+ 0x77: 4,
+ }
+
+ markerNames = map[byte]string{
+ MARKER_SOI: "SOI",
+ MARKER_EOI: "EOI",
+ MARKER_SOS: "SOS",
+ MARKER_SOD: "SOD",
+ MARKER_DQT: "DQT",
+ MARKER_APP0: "APP0",
+ MARKER_APP1: "APP1",
+ MARKER_APP2: "APP2",
+ MARKER_APP3: "APP3",
+ MARKER_APP4: "APP4",
+ MARKER_APP5: "APP5",
+ MARKER_APP6: "APP6",
+ MARKER_APP7: "APP7",
+ MARKER_APP8: "APP8",
+ MARKER_APP10: "APP10",
+ MARKER_APP12: "APP12",
+ MARKER_APP13: "APP13",
+ MARKER_APP14: "APP14",
+ MARKER_APP15: "APP15",
+ MARKER_COM: "COM",
+ MARKER_CME: "CME",
+ MARKER_SIZ: "SIZ",
+
+ MARKER_DHT: "DHT",
+ MARKER_JPG: "JPG",
+ MARKER_DAC: "DAC",
+
+ MARKER_SOF0: "SOF0",
+ MARKER_SOF1: "SOF1",
+ MARKER_SOF2: "SOF2",
+ MARKER_SOF3: "SOF3",
+ MARKER_SOF5: "SOF5",
+ MARKER_SOF6: "SOF6",
+ MARKER_SOF7: "SOF7",
+ MARKER_SOF9: "SOF9",
+ MARKER_SOF10: "SOF10",
+ MARKER_SOF11: "SOF11",
+ MARKER_SOF13: "SOF13",
+ MARKER_SOF14: "SOF14",
+ MARKER_SOF15: "SOF15",
+ }
+)
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/media_parser.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/media_parser.go
new file mode 100644
index 000000000..dd4c73af9
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/media_parser.go
@@ -0,0 +1,128 @@
+package jpegstructure
+
+import (
+ "bufio"
+ "bytes"
+ "io"
+ "os"
+
+ "github.com/dsoprea/go-logging"
+ "github.com/dsoprea/go-utility/image"
+)
+
+// JpegMediaParser is a `riimage.MediaParser` that knows how to parse JPEG
+// images.
+type JpegMediaParser struct {
+}
+
+// NewJpegMediaParser returns a new JpegMediaParser.
+func NewJpegMediaParser() *JpegMediaParser {
+
+ // TODO(dustin): Add test
+
+ return new(JpegMediaParser)
+}
+
+// Parse parses a JPEG uses an `io.ReadSeeker`. Even if it fails, it will return
+// the list of segments encountered prior to the failure.
+func (jmp *JpegMediaParser) Parse(rs io.ReadSeeker, size int) (ec riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ s := bufio.NewScanner(rs)
+
+ // Since each segment can be any size, our buffer must allowed to grow as
+ // large as the file.
+ buffer := []byte{}
+ s.Buffer(buffer, size)
+
+ js := NewJpegSplitter(nil)
+ s.Split(js.Split)
+
+ for s.Scan() != false {
+ }
+
+ // Always return the segments that were parsed, at least until there was an
+ // error.
+ ec = js.Segments()
+
+ log.PanicIf(s.Err())
+
+ return ec, nil
+}
+
+// ParseFile parses a JPEG file. Even if it fails, it will return the list of
+// segments encountered prior to the failure.
+func (jmp *JpegMediaParser) ParseFile(filepath string) (ec riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ f, err := os.Open(filepath)
+ log.PanicIf(err)
+
+ defer f.Close()
+
+ stat, err := f.Stat()
+ log.PanicIf(err)
+
+ size := stat.Size()
+
+ sl, err := jmp.Parse(f, int(size))
+
+ // Always return the segments that were parsed, at least until there was an
+ // error.
+ ec = sl
+
+ log.PanicIf(err)
+
+ return ec, nil
+}
+
+// ParseBytes parses a JPEG byte-slice. Even if it fails, it will return the
+// list of segments encountered prior to the failure.
+func (jmp *JpegMediaParser) ParseBytes(data []byte) (ec riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ br := bytes.NewReader(data)
+
+ sl, err := jmp.Parse(br, len(data))
+
+ // Always return the segments that were parsed, at least until there was an
+ // error.
+ ec = sl
+
+ log.PanicIf(err)
+
+ return ec, nil
+}
+
+// LooksLikeFormat indicates whether the data looks like a JPEG image.
+func (jmp *JpegMediaParser) LooksLikeFormat(data []byte) bool {
+ if len(data) < 4 {
+ return false
+ }
+
+ l := len(data)
+ if data[0] != 0xff || data[1] != MARKER_SOI || data[l-2] != 0xff || data[l-1] != MARKER_EOI {
+ return false
+ }
+
+ return true
+}
+
+var (
+ // Enforce interface conformance.
+ _ riimage.MediaParser = new(JpegMediaParser)
+)
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/segment.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/segment.go
new file mode 100644
index 000000000..d6a1c42bb
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/segment.go
@@ -0,0 +1,349 @@
+package jpegstructure
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+
+ "crypto/sha1"
+ "encoding/hex"
+
+ "github.com/dsoprea/go-exif/v2"
+ "github.com/dsoprea/go-iptc"
+ "github.com/dsoprea/go-logging"
+ "github.com/dsoprea/go-photoshop-info-format"
+ "github.com/dsoprea/go-utility/image"
+)
+
+const (
+ pirIptcImageResourceId = uint16(0x0404)
+)
+
+var (
+ // exifPrefix is the prefix found at the top of an EXIF slice. This is JPEG-
+ // specific.
+ exifPrefix = []byte{'E', 'x', 'i', 'f', 0, 0}
+
+ xmpPrefix = []byte("http://ns.adobe.com/xap/1.0/\000")
+
+ ps30Prefix = []byte("Photoshop 3.0\000")
+)
+
+var (
+ // ErrNoXmp is returned if XMP data was requested but not found.
+ ErrNoXmp = errors.New("no XMP data")
+
+ // ErrNoIptc is returned if IPTC data was requested but not found.
+ ErrNoIptc = errors.New("no IPTC data")
+
+ // ErrNoPhotoshopData is returned if Photoshop info was requested but not
+ // found.
+ ErrNoPhotoshopData = errors.New("no photoshop data")
+)
+
+// SofSegment has info read from a SOF segment.
+type SofSegment struct {
+ // BitsPerSample is the bits-per-sample.
+ BitsPerSample byte
+
+ // Width is the image width.
+ Width uint16
+
+ // Height is the image height.
+ Height uint16
+
+ // ComponentCount is the number of color components.
+ ComponentCount byte
+}
+
+// String returns a string representation of the SOF segment.
+func (ss SofSegment) String() string {
+
+ // TODO(dustin): Add test
+
+ return fmt.Sprintf("SOF", ss.BitsPerSample, ss.Width, ss.Height, ss.ComponentCount)
+}
+
+// SegmentVisitor describes a segment-visitor struct.
+type SegmentVisitor interface {
+ // HandleSegment is triggered for each segment encountered as well as the
+ // scan-data.
+ HandleSegment(markerId byte, markerName string, counter int, lastIsScanData bool) error
+}
+
+// SofSegmentVisitor describes a visitor that is only called for each SOF
+// segment.
+type SofSegmentVisitor interface {
+ // HandleSof is called for each encountered SOF segment.
+ HandleSof(sof *SofSegment) error
+}
+
+// Segment describes a single segment.
+type Segment struct {
+ MarkerId byte
+ MarkerName string
+ Offset int
+ Data []byte
+
+ photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord
+ iptcTags map[iptc.StreamTagKey][]iptc.TagData
+}
+
+// SetExif encodes and sets EXIF data into this segment.
+func (s *Segment) SetExif(ib *exif.IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ ibe := exif.NewIfdByteEncoder()
+
+ exifData, err := ibe.EncodeToExif(ib)
+ log.PanicIf(err)
+
+ l := len(exifPrefix)
+
+ s.Data = make([]byte, l+len(exifData))
+ copy(s.Data[0:], exifPrefix)
+ copy(s.Data[l:], exifData)
+
+ return nil
+}
+
+// Exif returns an `exif.Ifd` instance for the EXIF data we currently have.
+func (s *Segment) Exif() (rootIfd *exif.Ifd, data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ l := len(exifPrefix)
+
+ rawExif := s.Data[l:]
+
+ jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (Exif).", len(rawExif))
+
+ im := exif.NewIfdMappingWithStandard()
+ ti := exif.NewTagIndex()
+
+ _, index, err := exif.Collect(im, ti, rawExif)
+ log.PanicIf(err)
+
+ return index.RootIfd, rawExif, nil
+}
+
+// FlatExif parses the EXIF data and just returns a list of tags.
+func (s *Segment) FlatExif() (exifTags []exif.ExifTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ l := len(exifPrefix)
+
+ rawExif := s.Data[l:]
+
+ jpegLogger.Debugf(nil, "Attempting to parse (%d) byte EXIF blob (FlatExif).", len(rawExif))
+
+ exifTags, err = exif.GetFlatExifData(rawExif)
+ log.PanicIf(err)
+
+ return exifTags, nil
+}
+
+// EmbeddedString returns a string of properties that can be embedded into an
+// longer string of properties.
+func (s *Segment) EmbeddedString() string {
+ h := sha1.New()
+ h.Write(s.Data)
+
+ // TODO(dustin): Add test
+
+ digestString := hex.EncodeToString(h.Sum(nil))
+
+ return fmt.Sprintf("OFFSET=(0x%08x %10d) ID=(0x%02x) NAME=[%-5s] SIZE=(%10d) SHA1=[%s]", s.Offset, s.Offset, s.MarkerId, markerNames[s.MarkerId], len(s.Data), digestString)
+}
+
+// String returns a descriptive string.
+func (s *Segment) String() string {
+
+ // TODO(dustin): Add test
+
+ return fmt.Sprintf("Segment<%s>", s.EmbeddedString())
+}
+
+// IsExif returns true if EXIF data.
+func (s *Segment) IsExif() bool {
+ if s.MarkerId != MARKER_APP1 {
+ return false
+ }
+
+ // TODO(dustin): Add test
+
+ l := len(exifPrefix)
+
+ if len(s.Data) < l {
+ return false
+ }
+
+ if bytes.Equal(s.Data[:l], exifPrefix) == false {
+ return false
+ }
+
+ return true
+}
+
+// IsXmp returns true if XMP data.
+func (s *Segment) IsXmp() bool {
+ if s.MarkerId != MARKER_APP1 {
+ return false
+ }
+
+ // TODO(dustin): Add test
+
+ l := len(xmpPrefix)
+
+ if len(s.Data) < l {
+ return false
+ }
+
+ if bytes.Equal(s.Data[:l], xmpPrefix) == false {
+ return false
+ }
+
+ return true
+}
+
+// FormattedXmp returns a formatted XML string. This only makes sense for a
+// segment comprised of XML data (like XMP).
+func (s *Segment) FormattedXmp() (formatted string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ if s.IsXmp() != true {
+ log.Panicf("not an XMP segment")
+ }
+
+ l := len(xmpPrefix)
+
+ raw := string(s.Data[l:])
+
+ formatted, err = FormatXml(raw)
+ log.PanicIf(err)
+
+ return formatted, nil
+}
+
+func (s *Segment) parsePhotoshopInfo() (photoshopInfo map[uint16]photoshopinfo.Photoshop30InfoRecord, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if s.photoshopInfo != nil {
+ return s.photoshopInfo, nil
+ }
+
+ if s.MarkerId != MARKER_APP13 {
+ return nil, ErrNoPhotoshopData
+ }
+
+ l := len(ps30Prefix)
+
+ if len(s.Data) < l {
+ return nil, ErrNoPhotoshopData
+ }
+
+ if bytes.Equal(s.Data[:l], ps30Prefix) == false {
+ return nil, ErrNoPhotoshopData
+ }
+
+ data := s.Data[l:]
+ b := bytes.NewBuffer(data)
+
+ // Parse it.
+
+ pirIndex, err := photoshopinfo.ReadPhotoshop30Info(b)
+ log.PanicIf(err)
+
+ s.photoshopInfo = pirIndex
+
+ return s.photoshopInfo, nil
+}
+
+// IsIptc returns true if XMP data.
+func (s *Segment) IsIptc() bool {
+ // TODO(dustin): Add test
+
+ // There's a cost to determining if there's IPTC data, so we won't do it
+ // more than once.
+ if s.iptcTags != nil {
+ return true
+ }
+
+ photoshopInfo, err := s.parsePhotoshopInfo()
+ if err != nil {
+ if err == ErrNoPhotoshopData {
+ return false
+ }
+
+ log.Panic(err)
+ }
+
+ // Bail if the Photoshop info doesn't have IPTC data.
+
+ _, found := photoshopInfo[pirIptcImageResourceId]
+ if found == false {
+ return false
+ }
+
+ return true
+}
+
+// Iptc parses Photoshop info (if present) and then parses the IPTC info inside
+// it (if present).
+func (s *Segment) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Cache the parse.
+ if s.iptcTags != nil {
+ return s.iptcTags, nil
+ }
+
+ photoshopInfo, err := s.parsePhotoshopInfo()
+ log.PanicIf(err)
+
+ iptcPir, found := photoshopInfo[pirIptcImageResourceId]
+ if found == false {
+ return nil, ErrNoIptc
+ }
+
+ b := bytes.NewBuffer(iptcPir.Data)
+
+ tags, err = iptc.ParseStream(b)
+ log.PanicIf(err)
+
+ s.iptcTags = tags
+
+ return tags, nil
+}
+
+var (
+ // Enforce interface conformance.
+ _ riimage.MediaContext = new(Segment)
+)
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/segment_list.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/segment_list.go
new file mode 100644
index 000000000..1b5b06a3a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/segment_list.go
@@ -0,0 +1,395 @@
+package jpegstructure
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+
+ "crypto/sha1"
+ "encoding/binary"
+
+ "github.com/dsoprea/go-exif/v2"
+ "github.com/dsoprea/go-iptc"
+ "github.com/dsoprea/go-logging"
+)
+
+// SegmentList contains a slice of segments.
+type SegmentList struct {
+ segments []*Segment
+}
+
+// NewSegmentList returns a new SegmentList struct.
+func NewSegmentList(segments []*Segment) (sl *SegmentList) {
+ if segments == nil {
+ segments = make([]*Segment, 0)
+ }
+
+ return &SegmentList{
+ segments: segments,
+ }
+}
+
+// OffsetsEqual returns true is all segments have the same marker-IDs and were
+// found at the same offsets.
+func (sl *SegmentList) OffsetsEqual(o *SegmentList) bool {
+ if len(o.segments) != len(sl.segments) {
+ return false
+ }
+
+ for i, s := range o.segments {
+ if s.MarkerId != sl.segments[i].MarkerId || s.Offset != sl.segments[i].Offset {
+ return false
+ }
+ }
+
+ return true
+}
+
+// Segments returns the underlying slice of segments.
+func (sl *SegmentList) Segments() []*Segment {
+ return sl.segments
+}
+
+// Add adds another segment.
+func (sl *SegmentList) Add(s *Segment) {
+ sl.segments = append(sl.segments, s)
+}
+
+// Print prints segment info.
+func (sl *SegmentList) Print() {
+ if len(sl.segments) == 0 {
+ fmt.Printf("No segments.\n")
+ } else {
+ exifIndex, _, err := sl.FindExif()
+ if err != nil {
+ if err == exif.ErrNoExif {
+ exifIndex = -1
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ xmpIndex, _, err := sl.FindXmp()
+ if err != nil {
+ if err == ErrNoXmp {
+ xmpIndex = -1
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ iptcIndex, _, err := sl.FindIptc()
+ if err != nil {
+ if err == ErrNoIptc {
+ iptcIndex = -1
+ } else {
+ log.Panic(err)
+ }
+ }
+
+ for i, s := range sl.segments {
+ fmt.Printf("%2d: %s", i, s.EmbeddedString())
+
+ if i == exifIndex {
+ fmt.Printf(" [EXIF]")
+ } else if i == xmpIndex {
+ fmt.Printf(" [XMP]")
+ } else if i == iptcIndex {
+ fmt.Printf(" [IPTC]")
+ }
+
+ fmt.Printf("\n")
+ }
+ }
+}
+
+// Validate checks that all of the markers are actually located at all of the
+// recorded offsets.
+func (sl *SegmentList) Validate(data []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(sl.segments) < 2 {
+ log.Panicf("minimum segments not found")
+ }
+
+ if sl.segments[0].MarkerId != MARKER_SOI {
+ log.Panicf("first segment not SOI")
+ } else if sl.segments[len(sl.segments)-1].MarkerId != MARKER_EOI {
+ log.Panicf("last segment not EOI")
+ }
+
+ lastOffset := 0
+ for i, s := range sl.segments {
+ if lastOffset != 0 && s.Offset <= lastOffset {
+ log.Panicf("segment offset not greater than the last: SEGMENT=(%d) (0x%08x) <= (0x%08x)", i, s.Offset, lastOffset)
+ }
+
+ // The scan-data doesn't start with a marker.
+ if s.MarkerId == 0x0 {
+ continue
+ }
+
+ o := s.Offset
+ if bytes.Compare(data[o:o+2], []byte{0xff, s.MarkerId}) != 0 {
+ log.Panicf("segment offset does not point to the start of a segment: SEGMENT=(%d) (0x%08x)", i, s.Offset)
+ }
+
+ lastOffset = o
+ }
+
+ return nil
+}
+
+// FindExif returns the the segment that hosts the EXIF data (if present).
+func (sl *SegmentList) FindExif() (index int, segment *Segment, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for i, s := range sl.segments {
+ if s.IsExif() == true {
+ return i, s, nil
+ }
+ }
+
+ return -1, nil, exif.ErrNoExif
+}
+
+// FindXmp returns the the segment that hosts the XMP data (if present).
+func (sl *SegmentList) FindXmp() (index int, segment *Segment, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for i, s := range sl.segments {
+ if s.IsXmp() == true {
+ return i, s, nil
+ }
+ }
+
+ return -1, nil, ErrNoXmp
+}
+
+// FindIptc returns the the segment that hosts the IPTC data (if present).
+func (sl *SegmentList) FindIptc() (index int, segment *Segment, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for i, s := range sl.segments {
+ if s.IsIptc() == true {
+ return i, s, nil
+ }
+ }
+
+ return -1, nil, ErrNoIptc
+}
+
+// Exif returns an `exif.Ifd` instance for the EXIF data we currently have.
+func (sl *SegmentList) Exif() (rootIfd *exif.Ifd, rawExif []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ _, s, err := sl.FindExif()
+ log.PanicIf(err)
+
+ rootIfd, rawExif, err = s.Exif()
+ log.PanicIf(err)
+
+ return rootIfd, rawExif, nil
+}
+
+// Iptc returns embedded IPTC data if present.
+func (sl *SegmentList) Iptc() (tags map[iptc.StreamTagKey][]iptc.TagData, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add comment and return data.
+
+ _, s, err := sl.FindIptc()
+ log.PanicIf(err)
+
+ tags, err = s.Iptc()
+ log.PanicIf(err)
+
+ return tags, nil
+}
+
+// ConstructExifBuilder returns an `exif.IfdBuilder` instance (needed for
+// modifying) preloaded with all existing tags.
+func (sl *SegmentList) ConstructExifBuilder() (rootIb *exif.IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rootIfd, _, err := sl.Exif()
+ log.PanicIf(err)
+
+ ib := exif.NewIfdBuilderFromExistingChain(rootIfd)
+
+ return ib, nil
+}
+
+// DumpExif returns an unstructured list of tags (useful when just reviewing).
+func (sl *SegmentList) DumpExif() (segmentIndex int, segment *Segment, exifTags []exif.ExifTag, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ segmentIndex, s, err := sl.FindExif()
+ if err != nil {
+ if err == exif.ErrNoExif {
+ return 0, nil, nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ exifTags, err = s.FlatExif()
+ log.PanicIf(err)
+
+ return segmentIndex, s, exifTags, nil
+}
+
+func makeEmptyExifSegment() (s *Segment) {
+
+ // TODO(dustin): Add test
+
+ return &Segment{
+ MarkerId: MARKER_APP1,
+ }
+}
+
+// SetExif encodes and sets EXIF data into the given segment. If `index` is -1,
+// append a new segment.
+func (sl *SegmentList) SetExif(ib *exif.IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ _, s, err := sl.FindExif()
+ if err != nil {
+ if log.Is(err, exif.ErrNoExif) == false {
+ log.Panic(err)
+ }
+
+ s = makeEmptyExifSegment()
+
+ prefix := sl.segments[:1]
+
+ // Install it near the beginning where we know it's safe. We can't
+ // insert it after the EOI segment, and there might be more than one
+ // depending on implementation and/or lax adherence to the standard.
+ tail := append([]*Segment{s}, sl.segments[1:]...)
+
+ sl.segments = append(prefix, tail...)
+ }
+
+ err = s.SetExif(ib)
+ log.PanicIf(err)
+
+ return nil
+}
+
+// DropExif will drop the EXIF data if present.
+func (sl *SegmentList) DropExif() (wasDropped bool, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ i, _, err := sl.FindExif()
+ if err == nil {
+ // Found.
+ sl.segments = append(sl.segments[:i], sl.segments[i+1:]...)
+
+ return true, nil
+ } else if log.Is(err, exif.ErrNoExif) == false {
+ log.Panic(err)
+ }
+
+ // Not found.
+ return false, nil
+}
+
+// Write writes the segment data to the given `io.Writer`.
+func (sl *SegmentList) Write(w io.Writer) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ offset := 0
+
+ for i, s := range sl.segments {
+ h := sha1.New()
+ h.Write(s.Data)
+
+ // The scan-data will have a marker-ID of (0) because it doesn't have a
+ // marker-ID or length.
+ if s.MarkerId != 0 {
+ _, err := w.Write([]byte{0xff})
+ log.PanicIf(err)
+
+ offset++
+
+ _, err = w.Write([]byte{s.MarkerId})
+ log.PanicIf(err)
+
+ offset++
+
+ sizeLen, found := markerLen[s.MarkerId]
+ if found == false || sizeLen == 2 {
+ sizeLen = 2
+ l := uint16(len(s.Data) + sizeLen)
+
+ err = binary.Write(w, binary.BigEndian, &l)
+ log.PanicIf(err)
+
+ offset += 2
+ } else if sizeLen == 4 {
+ l := uint32(len(s.Data) + sizeLen)
+
+ err = binary.Write(w, binary.BigEndian, &l)
+ log.PanicIf(err)
+
+ offset += 4
+ } else if sizeLen != 0 {
+ log.Panicf("not a supported marker-size: SEGMENT-INDEX=(%d) MARKER-ID=(0x%02x) MARKER-SIZE-LEN=(%d)", i, s.MarkerId, sizeLen)
+ }
+ }
+
+ _, err := w.Write(s.Data)
+ log.PanicIf(err)
+
+ offset += len(s.Data)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/splitter.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/splitter.go
new file mode 100644
index 000000000..8e9c7c020
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/splitter.go
@@ -0,0 +1,437 @@
+package jpegstructure
+
+import (
+ "bufio"
+ "bytes"
+ "io"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+// JpegSplitter uses the Go stream splitter to divide the JPEG stream into
+// segments.
+type JpegSplitter struct {
+ lastMarkerId byte
+ lastMarkerName string
+ counter int
+ lastIsScanData bool
+ visitor interface{}
+
+ currentOffset int
+ segments *SegmentList
+
+ scandataOffset int
+}
+
+// NewJpegSplitter returns a new JpegSplitter.
+func NewJpegSplitter(visitor interface{}) *JpegSplitter {
+ return &JpegSplitter{
+ segments: NewSegmentList(nil),
+ visitor: visitor,
+ }
+}
+
+// Segments returns all found segments.
+func (js *JpegSplitter) Segments() *SegmentList {
+ return js.segments
+}
+
+// MarkerId returns the ID of the last processed marker.
+func (js *JpegSplitter) MarkerId() byte {
+ return js.lastMarkerId
+}
+
+// MarkerName returns the name of the last-processed marker.
+func (js *JpegSplitter) MarkerName() string {
+ return js.lastMarkerName
+}
+
+// Counter returns the number of processed segments.
+func (js *JpegSplitter) Counter() int {
+ return js.counter
+}
+
+// IsScanData returns whether the last processed segment was scan-data.
+func (js *JpegSplitter) IsScanData() bool {
+ return js.lastIsScanData
+}
+
+func (js *JpegSplitter) processScanData(data []byte) (advanceBytes int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Search through the segment, past all 0xff's therein, until we encounter
+ // the EOI segment.
+
+ dataLength := -1
+ for i := js.scandataOffset; i < len(data); i++ {
+ thisByte := data[i]
+
+ if i == 0 {
+ continue
+ }
+
+ lastByte := data[i-1]
+ if lastByte != 0xff {
+ continue
+ }
+
+ if thisByte == 0x00 || thisByte >= 0xd0 && thisByte <= 0xd8 {
+ continue
+ }
+
+ // After all of the other checks, this means that we're on the EOF
+ // segment.
+ if thisByte != MARKER_EOI {
+ continue
+ }
+
+ dataLength = i - 1
+ break
+ }
+
+ if dataLength == -1 {
+ // On the next pass, start on the last byte of this pass, just in case
+ // the first byte of the two-byte sequence is here.
+ js.scandataOffset = len(data) - 1
+
+ jpegLogger.Debugf(nil, "Scan-data not fully available (%d).", len(data))
+ return 0, nil
+ }
+
+ js.lastIsScanData = true
+ js.lastMarkerId = 0
+ js.lastMarkerName = ""
+
+ // Note that we don't increment the counter since this isn't an actual
+ // segment.
+
+ jpegLogger.Debugf(nil, "End of scan-data.")
+
+ err = js.handleSegment(0x0, "!SCANDATA", 0x0, data[:dataLength])
+ log.PanicIf(err)
+
+ return dataLength, nil
+}
+
+func (js *JpegSplitter) readSegment(data []byte) (count int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if js.counter == 0 {
+ // Verify magic bytes.
+
+ if len(data) < 3 {
+ jpegLogger.Debugf(nil, "Not enough (1)")
+ return 0, nil
+ }
+
+ if data[0] == jpegMagic2000[0] && data[1] == jpegMagic2000[1] && data[2] == jpegMagic2000[2] {
+ // TODO(dustin): Revisit JPEG2000 support.
+ log.Panicf("JPEG2000 not supported")
+ }
+
+ if data[0] != jpegMagicStandard[0] || data[1] != jpegMagicStandard[1] || data[2] != jpegMagicStandard[2] {
+ log.Panicf("file does not look like a JPEG: (%02x) (%02x) (%02x)", data[0], data[1], data[2])
+ }
+ }
+
+ chunkLength := len(data)
+
+ jpegLogger.Debugf(nil, "SPLIT: LEN=(%d) COUNTER=(%d)", chunkLength, js.counter)
+
+ if js.scanDataIsNext() == true {
+ // If the last segment was the SOS, we're currently sitting on scan data.
+ // Search for the EOI marker afterward in order to know how much data
+ // there is. Return this as its own token.
+ //
+ // REF: https://stackoverflow.com/questions/26715684/parsing-jpeg-sos-marker
+
+ advanceBytes, err := js.processScanData(data)
+ log.PanicIf(err)
+
+ // This will either return 0 and implicitly request that we need more
+ // data and then need to run again or will return an actual byte count
+ // to progress by.
+
+ return advanceBytes, nil
+ } else if js.lastMarkerId == MARKER_EOI {
+ // We have more data following the EOI, which is unexpected. There
+ // might be non-standard cruft at the end of the file. Terminate the
+ // parse because the file-structure is, technically, complete at this
+ // point.
+
+ return 0, io.EOF
+ } else {
+ js.lastIsScanData = false
+ }
+
+ // If we're here, we're supposed to be sitting on the 0xff bytes at the
+ // beginning of a segment (just before the marker).
+
+ if data[0] != 0xff {
+ log.Panicf("not on new segment marker @ (%d): (%02X)", js.currentOffset, data[0])
+ }
+
+ i := 0
+ found := false
+ for ; i < chunkLength; i++ {
+ jpegLogger.Debugf(nil, "Prefix check: (%d) %02X", i, data[i])
+
+ if data[i] != 0xff {
+ found = true
+ break
+ }
+ }
+
+ jpegLogger.Debugf(nil, "Skipped over leading 0xFF bytes: (%d)", i)
+
+ if found == false || i >= chunkLength {
+ jpegLogger.Debugf(nil, "Not enough (3)")
+ return 0, nil
+ }
+
+ markerId := data[i]
+
+ js.lastMarkerName = markerNames[markerId]
+
+ sizeLen, found := markerLen[markerId]
+ jpegLogger.Debugf(nil, "MARKER-ID=%x SIZELEN=%v FOUND=%v", markerId, sizeLen, found)
+
+ i++
+
+ b := bytes.NewBuffer(data[i:])
+ payloadLength := 0
+
+ // marker-ID + size => 2 +
+ headerSize := 2 + sizeLen
+
+ if found == false {
+
+ // It's not one of the static-length markers. Read the length.
+ //
+ // The length is an unsigned 16-bit network/big-endian.
+
+ // marker-ID + size => 2 + 2
+ headerSize = 2 + 2
+
+ if i+2 >= chunkLength {
+ jpegLogger.Debugf(nil, "Not enough (4)")
+ return 0, nil
+ }
+
+ l := uint16(0)
+ err = binary.Read(b, binary.BigEndian, &l)
+ log.PanicIf(err)
+
+ if l <= 2 {
+ log.Panicf("length of size read for non-special marker (%02x) is unexpectedly not more than two.", markerId)
+ }
+
+ // (l includes the bytes of the length itself.)
+ payloadLength = int(l) - 2
+ jpegLogger.Debugf(nil, "DataLength (dynamically-sized segment): (%d)", payloadLength)
+
+ i += 2
+ } else if sizeLen > 0 {
+
+ // Accommodates the non-zero markers in our marker index, which only
+ // represent J2C extensions.
+ //
+ // The length is an unsigned 32-bit network/big-endian.
+
+ // TODO(dustin): !! This needs to be tested, but we need an image.
+
+ if sizeLen != 4 {
+ log.Panicf("known non-zero marker is not four bytes, which is not currently handled: M=(%x)", markerId)
+ }
+
+ if i+4 >= chunkLength {
+ jpegLogger.Debugf(nil, "Not enough (5)")
+ return 0, nil
+ }
+
+ l := uint32(0)
+ err = binary.Read(b, binary.BigEndian, &l)
+ log.PanicIf(err)
+
+ payloadLength = int(l) - 4
+ jpegLogger.Debugf(nil, "DataLength (four-byte-length segment): (%u)", l)
+
+ i += 4
+ }
+
+ jpegLogger.Debugf(nil, "PAYLOAD-LENGTH: %d", payloadLength)
+
+ payload := data[i:]
+
+ if payloadLength < 0 {
+ log.Panicf("payload length less than zero: (%d)", payloadLength)
+ }
+
+ i += int(payloadLength)
+
+ if i > chunkLength {
+ jpegLogger.Debugf(nil, "Not enough (6)")
+ return 0, nil
+ }
+
+ jpegLogger.Debugf(nil, "Found whole segment.")
+
+ js.lastMarkerId = markerId
+
+ payloadWindow := payload[:payloadLength]
+ err = js.handleSegment(markerId, js.lastMarkerName, headerSize, payloadWindow)
+ log.PanicIf(err)
+
+ js.counter++
+
+ jpegLogger.Debugf(nil, "Returning advance of (%d)", i)
+
+ return i, nil
+}
+
+func (js *JpegSplitter) scanDataIsNext() bool {
+ return js.lastMarkerId == MARKER_SOS
+}
+
+// Split is the base splitting function that satisfies `bufio.SplitFunc`.
+func (js *JpegSplitter) Split(data []byte, atEOF bool) (advance int, token []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ for len(data) > 0 {
+ currentAdvance, err := js.readSegment(data)
+ if err != nil {
+ if err == io.EOF {
+ // We've encountered an EOI marker.
+ return 0, nil, err
+ }
+
+ log.Panic(err)
+ }
+
+ if currentAdvance == 0 {
+ if len(data) > 0 && atEOF == true {
+ // Provide a little context in the error message.
+
+ if js.scanDataIsNext() == true {
+ // Yes, we've ran into this.
+
+ log.Panicf("scan-data is unbounded; EOI not encountered before EOF")
+ } else {
+ log.Panicf("partial segment data encountered before scan-data")
+ }
+ }
+
+ // We don't have enough data for another segment.
+ break
+ }
+
+ data = data[currentAdvance:]
+ advance += currentAdvance
+ }
+
+ return advance, nil, nil
+}
+
+func (js *JpegSplitter) parseSof(data []byte) (sof *SofSegment, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ stream := bytes.NewBuffer(data)
+ buffer := bufio.NewReader(stream)
+
+ bitsPerSample, err := buffer.ReadByte()
+ log.PanicIf(err)
+
+ height := uint16(0)
+ err = binary.Read(buffer, binary.BigEndian, &height)
+ log.PanicIf(err)
+
+ width := uint16(0)
+ err = binary.Read(buffer, binary.BigEndian, &width)
+ log.PanicIf(err)
+
+ componentCount, err := buffer.ReadByte()
+ log.PanicIf(err)
+
+ sof = &SofSegment{
+ BitsPerSample: bitsPerSample,
+ Width: width,
+ Height: height,
+ ComponentCount: componentCount,
+ }
+
+ return sof, nil
+}
+
+func (js *JpegSplitter) parseAppData(markerId byte, data []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ return nil
+}
+
+func (js *JpegSplitter) handleSegment(markerId byte, markerName string, headerSize int, payload []byte) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ cloned := make([]byte, len(payload))
+ copy(cloned, payload)
+
+ s := &Segment{
+ MarkerId: markerId,
+ MarkerName: markerName,
+ Offset: js.currentOffset,
+ Data: cloned,
+ }
+
+ jpegLogger.Debugf(nil, "Encountered marker (0x%02x) [%s] at offset (%d)", markerId, markerName, js.currentOffset)
+
+ js.currentOffset += headerSize + len(payload)
+
+ js.segments.Add(s)
+
+ sv, ok := js.visitor.(SegmentVisitor)
+ if ok == true {
+ err = sv.HandleSegment(js.lastMarkerId, js.lastMarkerName, js.counter, js.lastIsScanData)
+ log.PanicIf(err)
+ }
+
+ if markerId >= MARKER_SOF0 && markerId <= MARKER_SOF15 {
+ ssv, ok := js.visitor.(SofSegmentVisitor)
+ if ok == true {
+ sof, err := js.parseSof(payload)
+ log.PanicIf(err)
+
+ err = ssv.HandleSof(sof)
+ log.PanicIf(err)
+ }
+ } else if markerId >= MARKER_APP0 && markerId <= MARKER_APP15 {
+ err := js.parseAppData(markerId, payload)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/testing_common.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/testing_common.go
new file mode 100644
index 000000000..e7169c2f0
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/testing_common.go
@@ -0,0 +1,73 @@
+package jpegstructure
+
+import (
+ "os"
+ "path"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ testImageRelFilepath = "NDM_8901.jpg"
+)
+
+var (
+ moduleRootPath = ""
+ assetsPath = ""
+)
+
+// GetModuleRootPath returns the root-path of the module.
+func GetModuleRootPath() string {
+ if moduleRootPath == "" {
+ moduleRootPath = os.Getenv("JPEG_MODULE_ROOT_PATH")
+ if moduleRootPath != "" {
+ return moduleRootPath
+ }
+
+ currentWd, err := os.Getwd()
+ log.PanicIf(err)
+
+ currentPath := currentWd
+ visited := make([]string, 0)
+
+ for {
+ tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT")
+
+ _, err := os.Stat(tryStampFilepath)
+ if err != nil && os.IsNotExist(err) != true {
+ log.Panic(err)
+ } else if err == nil {
+ break
+ }
+
+ visited = append(visited, tryStampFilepath)
+
+ currentPath = path.Dir(currentPath)
+ if currentPath == "/" {
+ log.Panicf("could not find module-root: %v", visited)
+ }
+ }
+
+ moduleRootPath = currentPath
+ }
+
+ return moduleRootPath
+}
+
+// GetTestAssetsPath returns the path of the test-assets.
+func GetTestAssetsPath() string {
+ if assetsPath == "" {
+ moduleRootPath := GetModuleRootPath()
+ assetsPath = path.Join(moduleRootPath, "assets")
+ }
+
+ return assetsPath
+}
+
+// GetTestImageFilepath returns the file-path of the common test-image.
+func GetTestImageFilepath() string {
+ assetsPath := GetTestAssetsPath()
+ filepath := path.Join(assetsPath, testImageRelFilepath)
+
+ return filepath
+}
diff --git a/vendor/github.com/dsoprea/go-jpeg-image-structure/utility.go b/vendor/github.com/dsoprea/go-jpeg-image-structure/utility.go
new file mode 100644
index 000000000..1c618ba6d
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-jpeg-image-structure/utility.go
@@ -0,0 +1,110 @@
+package jpegstructure
+
+import (
+ "bytes"
+ "fmt"
+ "sort"
+ "strings"
+
+ "github.com/dsoprea/go-logging"
+ "github.com/go-xmlfmt/xmlfmt"
+)
+
+// DumpBytes prints the hex for a given byte-slice.
+func DumpBytes(data []byte) {
+ fmt.Printf("DUMP: ")
+ for _, x := range data {
+ fmt.Printf("%02x ", x)
+ }
+
+ fmt.Printf("\n")
+}
+
+// DumpBytesClause prints a Go-formatted byte-slice expression.
+func DumpBytesClause(data []byte) {
+ fmt.Printf("DUMP: ")
+
+ fmt.Printf("[]byte { ")
+
+ for i, x := range data {
+ fmt.Printf("0x%02x", x)
+
+ if i < len(data)-1 {
+ fmt.Printf(", ")
+ }
+ }
+
+ fmt.Printf(" }\n")
+}
+
+// DumpBytesToString returns a string of hex-encoded bytes.
+func DumpBytesToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteRune(' ')
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+// DumpBytesClauseToString returns a string of Go-formatted byte values.
+func DumpBytesClauseToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("0x%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data)-1 {
+ _, err := b.WriteString(", ")
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+// FormatXml prettifies XML data.
+func FormatXml(raw string) (formatted string, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ formatted = xmlfmt.FormatXML(raw, " ", " ")
+ formatted = strings.TrimSpace(formatted)
+
+ return formatted, nil
+}
+
+// SortStringStringMap sorts a string-string dictionary and returns it as a list
+// of 2-tuples.
+func SortStringStringMap(data map[string]string) (sorted [][2]string) {
+ // Sort keys.
+
+ sortedKeys := make([]string, len(data))
+ i := 0
+ for key := range data {
+ sortedKeys[i] = key
+ i++
+ }
+
+ sort.Strings(sortedKeys)
+
+ // Build result.
+
+ sorted = make([][2]string, len(sortedKeys))
+ for i, key := range sortedKeys {
+ sorted[i] = [2]string{key, data[key]}
+ }
+
+ return sorted
+}
diff --git a/vendor/github.com/dsoprea/go-logging/.travis.yml b/vendor/github.com/dsoprea/go-logging/.travis.yml
new file mode 100644
index 000000000..e37da4ba8
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/.travis.yml
@@ -0,0 +1,12 @@
+language: go
+go:
+ - tip
+install:
+ - go get -t ./...
+ - go get github.com/mattn/goveralls
+script:
+# v1
+ - go test -v .
+# v2
+ - cd v2
+ - goveralls -v -service=travis-ci
diff --git a/vendor/github.com/dsoprea/go-logging/LICENSE b/vendor/github.com/dsoprea/go-logging/LICENSE
new file mode 100644
index 000000000..163291ed6
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/LICENSE
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright 2020 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-logging/README.md b/vendor/github.com/dsoprea/go-logging/README.md
new file mode 100644
index 000000000..820cd9dc0
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/README.md
@@ -0,0 +1,223 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-logging.svg?branch=master)](https://travis-ci.org/dsoprea/go-logging)
+[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-logging/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-logging?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-logging/v2)](https://goreportcard.com/report/github.com/dsoprea/go-logging/v2)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-logging/v2?status.svg)](https://godoc.org/github.com/dsoprea/go-logging/v2)
+
+## Introduction
+
+This project bridges several gaps that are present in the standard logging support in Go:
+
+- Equips errors with stacktraces and provides a facility for printing them
+- Inherently supports the ability for each Go file to print its messages with a prefix representing that file/package
+- Adds some functions to specifically log messages of different levels (e.g. debug, error)
+- Adds a `PanicIf()` function that can be used to conditionally manage errors depending on whether an error variable is `nil` or actually has an error
+- Adds support for pluggable logging adapters (so the output can be sent somewhere other than the console)
+- Adds configuration (such as the logging level or adapter) that can be driven from the environment
+- Supports filtering to show/hide the logging of certain places of the application
+- The loggers can be definded at the package level, so you can determine which Go file any log message came from.
+
+When used with the Panic-Defer-Recover pattern in Go, even panics rising from the Go runtime will be caught and wrapped with a stacktrace. This compartmentalizes which function they could have originated from, which is, otherwise, potentially non-trivial to figure out.
+
+## AppEngine
+
+Go under AppEngine is very stripped down, such as there being no logging type (e.g. `Logger` in native Go) and there is no support for prefixing. As each logging call from this project takes a `Context`, this works cooperatively to bridge the additional gaps in AppEngine's logging support.
+
+With standard console logging outside of this context, that parameter will take a`nil`.
+
+
+## Getting Started
+
+The simplest, possible example:
+
+```go
+package thispackage
+
+import (
+ "context"
+ "errors"
+
+ "github.com/dsoprea/go-logging/v2"
+)
+
+var (
+ thisfileLog = log.NewLogger("thispackage.thisfile")
+)
+
+func a_cry_for_help(ctx context.Context) {
+ err := errors.New("a big error")
+ thisfileLog.Errorf(ctx, err, "How big is my problem: %s", "pretty big")
+}
+
+func init() {
+ cla := log.NewConsoleLogAdapter()
+ log.AddAdapter("console", cla)
+}
+```
+
+Notice two things:
+
+1. We register the "console" adapter at the bottom. The first adapter registered will be used by default.
+2. We pass-in a prefix (what we refer to as a "noun") to `log.NewLogger()`. This is a simple, descriptive name that represents the subject of the file. By convention, we construct this by dot-separating the current package and the name of the file. We recommend that you define a different log for every file at the package level, but it is your choice whether you want to do this or share the same logger over the entire package, define one in each struct, etc..
+
+
+### Example Output
+
+Example output from a real application (not from the above):
+
+```
+2016/09/09 12:57:44 DEBUG: user: User revisiting: [test@example.com]
+2016/09/09 12:57:44 DEBUG: context: Session already inited: [DCRBDGRY6RMWANCSJXVLD7GULDH4NZEB6SBAQ3KSFIGA2LP45IIQ]
+2016/09/09 12:57:44 DEBUG: session_data: Session save not necessary: [DCRBDGRY6RMWANCSJXVLD7GULDH4NZEB6SBAQ3KSFIGA2LP45IIQ]
+2016/09/09 12:57:44 DEBUG: context: Got session: [DCRBDGRY6RMWANCSJXVLD7GULDH4NZEB6SBAQ3KSFIGA2LP45IIQ]
+2016/09/09 12:57:44 DEBUG: session_data: Found user in session.
+2016/09/09 12:57:44 DEBUG: cache: Cache miss: [geo.geocode.reverse:dhxp15x]
+```
+
+
+## Adapters
+
+This project provides one built-in logging adapter, "console", which prints to the screen. To register it:
+
+```go
+cla := log.NewConsoleLogAdapter()
+log.AddAdapter("console", cla)
+```
+
+### Custom Adapters
+
+If you would like to implement your own logger, just create a struct type that satisfies the LogAdapter interface.
+
+```go
+type LogAdapter interface {
+ Debugf(lc *LogContext, message *string) error
+ Infof(lc *LogContext, message *string) error
+ Warningf(lc *LogContext, message *string) error
+ Errorf(lc *LogContext, message *string) error
+}
+```
+
+The *LogContext* struct passed in provides additional information that you may need in order to do what you need to do:
+
+```go
+type LogContext struct {
+ Logger *Logger
+ Ctx context.Context
+}
+```
+
+`Logger` represents your Logger instance.
+
+Adapter example:
+
+```go
+type DummyLogAdapter struct {
+
+}
+
+func (dla *DummyLogAdapter) Debugf(lc *LogContext, message *string) error {
+
+}
+
+func (dla *DummyLogAdapter) Infof(lc *LogContext, message *string) error {
+
+}
+
+func (dla *DummyLogAdapter) Warningf(lc *LogContext, message *string) error {
+
+}
+
+func (dla *DummyLogAdapter) Errorf(lc *LogContext, message *string) error {
+
+}
+```
+
+Then, register it:
+
+```go
+func init() {
+ log.AddAdapter("dummy", new(DummyLogAdapter))
+}
+```
+
+If this is a task-specific implementation, just register it from the `init()` of the file that defines it.
+
+If this is the first adapter you've registered, it will be the default one used. Otherwise, you'll have to deliberately specify it when you are creating a logger: Instead of calling `log.NewLogger(noun string)`, call `log.NewLoggerWithAdapterName(noun string, adapterName string)`.
+
+We discuss how to configure the adapter from configuration in the "Configuration" section below.
+
+
+### Adapter Notes
+
+- The `Logger` instance exports `Noun()` in the event you want to discriminate where your log entries go in your adapter. It also exports `Adapter()` for if you need to access the adapter instance from your application.
+- If no adapter is registered (specifically, the default adapter-name remains empty), logging calls will be a no-op. This allows libraries to implement *go-logging* where the larger application doesn't.
+
+
+## Filters
+
+We support the ability to exclusively log for a specific set of nouns (we'll exclude any not specified):
+
+```go
+log.AddIncludeFilter("nountoshow1")
+log.AddIncludeFilter("nountoshow2")
+```
+
+Depending on your needs, you might just want to exclude a couple and include the rest:
+
+```go
+log.AddExcludeFilter("nountohide1")
+log.AddExcludeFilter("nountohide2")
+```
+
+We'll first hit the include-filters. If it's in there, we'll forward the log item to the adapter. If not, and there is at least one include filter in the list, we won't do anything. If the list of include filters is empty but the noun appears in the exclude list, we won't do anything.
+
+It is a good convention to exclude the nouns of any library you are writing whose logging you do not want to generally be aware of unless you are debugging. You might call `AddExcludeFilter()` from the `init()` function at the bottom of those files unless there is some configuration variable, such as "(LibraryNameHere)DoShowLogging", that has been defined and set to TRUE.
+
+
+## Configuration
+
+The following configuration items are available:
+
+- *Format*: The default format used to build the message that gets sent to the adapter. It is assumed that the adapter already prefixes the message with time and log-level (since the default AppEngine logger does). The default value is: `{{.Noun}}: [{{.Level}}] {{if eq .ExcludeBypass true}} [BYPASS]{{end}} {{.Message}}`. The available tokens are "Level", "Noun", "ExcludeBypass", and "Message".
+- *DefaultAdapterName*: The default name of the adapter to use when NewLogger() is called (if this isn't defined then the name of the first registered adapter will be used).
+- *LevelName*: The priority-level of messages permitted to be logged (all others will be discarded). By default, it is "info". Other levels are: "debug", "warning", "error", "critical"
+- *IncludeNouns*: Comma-separated list of nouns to log for. All others will be ignored.
+- *ExcludeNouns*: Comma-separated list on nouns to exclude from logging.
+- *ExcludeBypassLevelName*: The log-level at which we will show logging for nouns that have been excluded. Allows you to hide excessive, unimportant logging for nouns but to still see their warnings, errors, etc...
+
+
+### Configuration Providers
+
+You provide the configuration by setting a configuration-provider. Configuration providers must satisfy the `ConfigurationProvider` interface. The following are provided with the project:
+
+- `EnvironmentConfigurationProvider`: Read values from the environment.
+- `StaticConfigurationProvider`: Set values directly on the struct.
+
+**The configuration provider must be applied before doing any logging (otherwise it will have no effect).**
+
+Environments such as AppEngine work best with `EnvironmentConfigurationProvider` as this is generally how configuration is exposed *by* AppEngine *to* the application. You can define this configuration directly in *that* configuration.
+
+By default, no configuration-provider is applied, the level is defaulted to INFO and the format is defaulted to "{{.Noun}}:{{if eq .ExcludeBypass true}} [BYPASS]{{end}} {{.Message}}".
+
+Again, if a configuration-provider does not provide a log-level or format, they will be defaulted (or left alone, if already set). If it does not provide an adapter-name, the adapter-name of the first registered adapter will be used.
+
+Usage instructions of both follow.
+
+
+### Environment-Based Configuration
+
+```go
+ecp := log.NewEnvironmentConfigurationProvider()
+log.LoadConfiguration(ecp)
+```
+
+Each of the items listed at the top of the "Configuration" section can be specified in the environment using a prefix of "Log" (e.g. LogDefaultAdapterName).
+
+
+### Static Configuration
+
+```go
+scp := log.NewStaticConfigurationProvider()
+scp.SetLevelName(log.LevelNameWarning)
+
+log.LoadConfiguration(scp)
+```
diff --git a/vendor/github.com/dsoprea/go-logging/config.go b/vendor/github.com/dsoprea/go-logging/config.go
new file mode 100644
index 000000000..20896e342
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/config.go
@@ -0,0 +1,246 @@
+package log
+
+import (
+ "fmt"
+ "os"
+)
+
+// Config keys.
+const (
+ ckFormat = "LogFormat"
+ ckDefaultAdapterName = "LogDefaultAdapterName"
+ ckLevelName = "LogLevelName"
+ ckIncludeNouns = "LogIncludeNouns"
+ ckExcludeNouns = "LogExcludeNouns"
+ ckExcludeBypassLevelName = "LogExcludeBypassLevelName"
+)
+
+// Other constants
+const (
+ defaultFormat = "{{.Noun}}: [{{.Level}}] {{if eq .ExcludeBypass true}} [BYPASS]{{end}} {{.Message}}"
+ defaultLevelName = LevelNameInfo
+)
+
+// Config
+var (
+ // Alternative format.
+ format = defaultFormat
+
+ // Alternative adapter.
+ defaultAdapterName = ""
+
+ // Alternative level at which to display log-items
+ levelName = defaultLevelName
+
+ // Configuration-driven comma-separated list of nouns to include.
+ includeNouns = ""
+
+ // Configuration-driven comma-separated list of nouns to exclude.
+ excludeNouns = ""
+
+ // Level at which to disregard exclusion (if the severity of a message
+ // meets or exceed this, always display).
+ excludeBypassLevelName = ""
+)
+
+// Other
+var (
+ configurationLoaded = false
+)
+
+// Return the current default adapter name.
+func GetDefaultAdapterName() string {
+ return defaultAdapterName
+}
+
+// The adapter will automatically be the first one registered. This overrides
+// that.
+func SetDefaultAdapterName(name string) {
+ defaultAdapterName = name
+}
+
+func LoadConfiguration(cp ConfigurationProvider) {
+ configuredDefaultAdapterName := cp.DefaultAdapterName()
+
+ if configuredDefaultAdapterName != "" {
+ defaultAdapterName = configuredDefaultAdapterName
+ }
+
+ includeNouns = cp.IncludeNouns()
+ excludeNouns = cp.ExcludeNouns()
+ excludeBypassLevelName = cp.ExcludeBypassLevelName()
+
+ f := cp.Format()
+ if f != "" {
+ format = f
+ }
+
+ ln := cp.LevelName()
+ if ln != "" {
+ levelName = ln
+ }
+
+ configurationLoaded = true
+}
+
+func getConfigState() map[string]interface{} {
+ return map[string]interface{}{
+ "format": format,
+ "defaultAdapterName": defaultAdapterName,
+ "levelName": levelName,
+ "includeNouns": includeNouns,
+ "excludeNouns": excludeNouns,
+ "excludeBypassLevelName": excludeBypassLevelName,
+ }
+}
+
+func setConfigState(config map[string]interface{}) {
+ format = config["format"].(string)
+
+ defaultAdapterName = config["defaultAdapterName"].(string)
+ levelName = config["levelName"].(string)
+ includeNouns = config["includeNouns"].(string)
+ excludeNouns = config["excludeNouns"].(string)
+ excludeBypassLevelName = config["excludeBypassLevelName"].(string)
+}
+
+func getConfigDump() string {
+ return fmt.Sprintf(
+ "Current configuration:\n"+
+ " FORMAT=[%s]\n"+
+ " DEFAULT-ADAPTER-NAME=[%s]\n"+
+ " LEVEL-NAME=[%s]\n"+
+ " INCLUDE-NOUNS=[%s]\n"+
+ " EXCLUDE-NOUNS=[%s]\n"+
+ " EXCLUDE-BYPASS-LEVEL-NAME=[%s]",
+ format, defaultAdapterName, levelName, includeNouns, excludeNouns, excludeBypassLevelName)
+}
+
+func IsConfigurationLoaded() bool {
+ return configurationLoaded
+}
+
+type ConfigurationProvider interface {
+ // Alternative format (defaults to .
+ Format() string
+
+ // Alternative adapter (defaults to "appengine").
+ DefaultAdapterName() string
+
+ // Alternative level at which to display log-items (defaults to
+ // "info").
+ LevelName() string
+
+ // Configuration-driven comma-separated list of nouns to include. Defaults
+ // to empty.
+ IncludeNouns() string
+
+ // Configuration-driven comma-separated list of nouns to exclude. Defaults
+ // to empty.
+ ExcludeNouns() string
+
+ // Level at which to disregard exclusion (if the severity of a message
+ // meets or exceed this, always display). Defaults to empty.
+ ExcludeBypassLevelName() string
+}
+
+// Environment configuration-provider.
+type EnvironmentConfigurationProvider struct {
+}
+
+func NewEnvironmentConfigurationProvider() *EnvironmentConfigurationProvider {
+ return new(EnvironmentConfigurationProvider)
+}
+
+func (ecp *EnvironmentConfigurationProvider) Format() string {
+ return os.Getenv(ckFormat)
+}
+
+func (ecp *EnvironmentConfigurationProvider) DefaultAdapterName() string {
+ return os.Getenv(ckDefaultAdapterName)
+}
+
+func (ecp *EnvironmentConfigurationProvider) LevelName() string {
+ return os.Getenv(ckLevelName)
+}
+
+func (ecp *EnvironmentConfigurationProvider) IncludeNouns() string {
+ return os.Getenv(ckIncludeNouns)
+}
+
+func (ecp *EnvironmentConfigurationProvider) ExcludeNouns() string {
+ return os.Getenv(ckExcludeNouns)
+}
+
+func (ecp *EnvironmentConfigurationProvider) ExcludeBypassLevelName() string {
+ return os.Getenv(ckExcludeBypassLevelName)
+}
+
+// Static configuration-provider.
+type StaticConfigurationProvider struct {
+ format string
+ defaultAdapterName string
+ levelName string
+ includeNouns string
+ excludeNouns string
+ excludeBypassLevelName string
+}
+
+func NewStaticConfigurationProvider() *StaticConfigurationProvider {
+ return new(StaticConfigurationProvider)
+}
+
+func (scp *StaticConfigurationProvider) SetFormat(format string) {
+ scp.format = format
+}
+
+func (scp *StaticConfigurationProvider) SetDefaultAdapterName(adapterName string) {
+ scp.defaultAdapterName = adapterName
+}
+
+func (scp *StaticConfigurationProvider) SetLevelName(levelName string) {
+ scp.levelName = levelName
+}
+
+func (scp *StaticConfigurationProvider) SetIncludeNouns(includeNouns string) {
+ scp.includeNouns = includeNouns
+}
+
+func (scp *StaticConfigurationProvider) SetExcludeNouns(excludeNouns string) {
+ scp.excludeNouns = excludeNouns
+}
+
+func (scp *StaticConfigurationProvider) SetExcludeBypassLevelName(excludeBypassLevelName string) {
+ scp.excludeBypassLevelName = excludeBypassLevelName
+}
+
+func (scp *StaticConfigurationProvider) Format() string {
+ return scp.format
+}
+
+func (scp *StaticConfigurationProvider) DefaultAdapterName() string {
+ return scp.defaultAdapterName
+}
+
+func (scp *StaticConfigurationProvider) LevelName() string {
+ return scp.levelName
+}
+
+func (scp *StaticConfigurationProvider) IncludeNouns() string {
+ return scp.includeNouns
+}
+
+func (scp *StaticConfigurationProvider) ExcludeNouns() string {
+ return scp.excludeNouns
+}
+
+func (scp *StaticConfigurationProvider) ExcludeBypassLevelName() string {
+ return scp.excludeBypassLevelName
+}
+
+func init() {
+ // Do the initial configuration-load from the environment. We gotta seed it
+ // with something for simplicity's sake.
+ ecp := NewEnvironmentConfigurationProvider()
+ LoadConfiguration(ecp)
+}
diff --git a/vendor/github.com/dsoprea/go-logging/console_adapter.go b/vendor/github.com/dsoprea/go-logging/console_adapter.go
new file mode 100644
index 000000000..c63a2911c
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/console_adapter.go
@@ -0,0 +1,36 @@
+package log
+
+import (
+ golog "log"
+)
+
+type ConsoleLogAdapter struct {
+}
+
+func NewConsoleLogAdapter() LogAdapter {
+ return new(ConsoleLogAdapter)
+}
+
+func (cla *ConsoleLogAdapter) Debugf(lc *LogContext, message *string) error {
+ golog.Println(*message)
+
+ return nil
+}
+
+func (cla *ConsoleLogAdapter) Infof(lc *LogContext, message *string) error {
+ golog.Println(*message)
+
+ return nil
+}
+
+func (cla *ConsoleLogAdapter) Warningf(lc *LogContext, message *string) error {
+ golog.Println(*message)
+
+ return nil
+}
+
+func (cla *ConsoleLogAdapter) Errorf(lc *LogContext, message *string) error {
+ golog.Println(*message)
+
+ return nil
+}
diff --git a/vendor/github.com/dsoprea/go-logging/go.mod b/vendor/github.com/dsoprea/go-logging/go.mod
new file mode 100644
index 000000000..1d421c210
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/go.mod
@@ -0,0 +1,8 @@
+module github.com/dsoprea/go-logging
+
+go 1.13
+
+require (
+ github.com/go-errors/errors v1.0.2
+ golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5
+)
diff --git a/vendor/github.com/dsoprea/go-logging/go.sum b/vendor/github.com/dsoprea/go-logging/go.sum
new file mode 100644
index 000000000..737781b31
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/go.sum
@@ -0,0 +1,8 @@
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/dsoprea/go-logging/log.go b/vendor/github.com/dsoprea/go-logging/log.go
new file mode 100644
index 000000000..84117a92e
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-logging/log.go
@@ -0,0 +1,537 @@
+package log
+
+import (
+ "bytes"
+ e "errors"
+ "fmt"
+ "strings"
+ "sync"
+
+ "text/template"
+
+ "github.com/go-errors/errors"
+ "golang.org/x/net/context"
+)
+
+// TODO(dustin): Finish symbol documentation
+
+// Config severity integers.
+const (
+ LevelDebug = iota
+ LevelInfo = iota
+ LevelWarning = iota
+ LevelError = iota
+)
+
+// Config severity names.
+const (
+ LevelNameDebug = "debug"
+ LevelNameInfo = "info"
+ LevelNameWarning = "warning"
+ LevelNameError = "error"
+)
+
+// Seveirty name->integer map.
+var (
+ LevelNameMap = map[string]int{
+ LevelNameDebug: LevelDebug,
+ LevelNameInfo: LevelInfo,
+ LevelNameWarning: LevelWarning,
+ LevelNameError: LevelError,
+ }
+
+ LevelNameMapR = map[int]string{
+ LevelDebug: LevelNameDebug,
+ LevelInfo: LevelNameInfo,
+ LevelWarning: LevelNameWarning,
+ LevelError: LevelNameError,
+ }
+)
+
+// Errors
+var (
+ ErrAdapterAlreadyRegistered = e.New("adapter already registered")
+ ErrFormatEmpty = e.New("format is empty")
+ ErrExcludeLevelNameInvalid = e.New("exclude bypass-level is invalid")
+ ErrNoAdapterConfigured = e.New("no default adapter configured")
+ ErrAdapterIsNil = e.New("adapter is nil")
+ ErrConfigurationNotLoaded = e.New("can not configure because configuration is not loaded")
+)
+
+// Other
+var (
+ includeFilters = make(map[string]bool)
+ useIncludeFilters = false
+ excludeFilters = make(map[string]bool)
+ useExcludeFilters = false
+
+ adapters = make(map[string]LogAdapter)
+
+ // TODO(dustin): !! Finish implementing this.
+ excludeBypassLevel = -1
+)
+
+// Add global include filter.
+func AddIncludeFilter(noun string) {
+ includeFilters[noun] = true
+ useIncludeFilters = true
+}
+
+// Remove global include filter.
+func RemoveIncludeFilter(noun string) {
+ delete(includeFilters, noun)
+ if len(includeFilters) == 0 {
+ useIncludeFilters = false
+ }
+}
+
+// Add global exclude filter.
+func AddExcludeFilter(noun string) {
+ excludeFilters[noun] = true
+ useExcludeFilters = true
+}
+
+// Remove global exclude filter.
+func RemoveExcludeFilter(noun string) {
+ delete(excludeFilters, noun)
+ if len(excludeFilters) == 0 {
+ useExcludeFilters = false
+ }
+}
+
+func AddAdapter(name string, la LogAdapter) {
+ if _, found := adapters[name]; found == true {
+ Panic(ErrAdapterAlreadyRegistered)
+ }
+
+ if la == nil {
+ Panic(ErrAdapterIsNil)
+ }
+
+ adapters[name] = la
+
+ if GetDefaultAdapterName() == "" {
+ SetDefaultAdapterName(name)
+ }
+}
+
+func ClearAdapters() {
+ adapters = make(map[string]LogAdapter)
+ SetDefaultAdapterName("")
+}
+
+type LogAdapter interface {
+ Debugf(lc *LogContext, message *string) error
+ Infof(lc *LogContext, message *string) error
+ Warningf(lc *LogContext, message *string) error
+ Errorf(lc *LogContext, message *string) error
+}
+
+// TODO(dustin): !! Also populate whether we've bypassed an exception so that
+// we can add a template macro to prefix an exclamation of
+// some sort.
+type MessageContext struct {
+ Level *string
+ Noun *string
+ Message *string
+ ExcludeBypass bool
+}
+
+type LogContext struct {
+ Logger *Logger
+ Ctx context.Context
+}
+
+type Logger struct {
+ isConfigured bool
+ an string
+ la LogAdapter
+ t *template.Template
+ systemLevel int
+ noun string
+}
+
+func NewLoggerWithAdapterName(noun string, adapterName string) (l *Logger) {
+ l = &Logger{
+ noun: noun,
+ an: adapterName,
+ }
+
+ return l
+}
+
+func NewLogger(noun string) (l *Logger) {
+ l = NewLoggerWithAdapterName(noun, "")
+
+ return l
+}
+
+func (l *Logger) Noun() string {
+ return l.noun
+}
+
+func (l *Logger) Adapter() LogAdapter {
+ return l.la
+}
+
+var (
+ configureMutex sync.Mutex
+)
+
+func (l *Logger) doConfigure(force bool) {
+ configureMutex.Lock()
+ defer configureMutex.Unlock()
+
+ if l.isConfigured == true && force == false {
+ return
+ }
+
+ if IsConfigurationLoaded() == false {
+ Panic(ErrConfigurationNotLoaded)
+ }
+
+ if l.an == "" {
+ l.an = GetDefaultAdapterName()
+ }
+
+ // If this is empty, then no specific adapter was given or no system
+ // default was configured (which implies that no adapters were registered).
+ // All of our logging will be skipped.
+ if l.an != "" {
+ la, found := adapters[l.an]
+ if found == false {
+ Panic(fmt.Errorf("adapter is not valid: %s", l.an))
+ }
+
+ l.la = la
+ }
+
+ // Set the level.
+
+ systemLevel, found := LevelNameMap[levelName]
+ if found == false {
+ Panic(fmt.Errorf("log-level not valid: [%s]", levelName))
+ }
+
+ l.systemLevel = systemLevel
+
+ // Set the form.
+
+ if format == "" {
+ Panic(ErrFormatEmpty)
+ }
+
+ if t, err := template.New("logItem").Parse(format); err != nil {
+ Panic(err)
+ } else {
+ l.t = t
+ }
+
+ l.isConfigured = true
+}
+
+func (l *Logger) flattenMessage(lc *MessageContext, format *string, args []interface{}) (string, error) {
+ m := fmt.Sprintf(*format, args...)
+
+ lc.Message = &m
+
+ var b bytes.Buffer
+ if err := l.t.Execute(&b, *lc); err != nil {
+ return "", err
+ }
+
+ return b.String(), nil
+}
+
+func (l *Logger) allowMessage(noun string, level int) bool {
+ if _, found := includeFilters[noun]; found == true {
+ return true
+ }
+
+ // If we didn't hit an include filter and we *had* include filters, filter
+ // it out.
+ if useIncludeFilters == true {
+ return false
+ }
+
+ if _, found := excludeFilters[noun]; found == true {
+ return false
+ }
+
+ return true
+}
+
+func (l *Logger) makeLogContext(ctx context.Context) *LogContext {
+ return &LogContext{
+ Ctx: ctx,
+ Logger: l,
+ }
+}
+
+type LogMethod func(lc *LogContext, message *string) error
+
+func (l *Logger) log(ctx context.Context, level int, lm LogMethod, format string, args []interface{}) error {
+ if l.systemLevel > level {
+ return nil
+ }
+
+ // Preempt the normal filter checks if we can unconditionally allow at a
+ // certain level and we've hit that level.
+ //
+ // Notice that this is only relevant if the system-log level is letting
+ // *anything* show logs at the level we came in with.
+ canExcludeBypass := level >= excludeBypassLevel && excludeBypassLevel != -1
+ didExcludeBypass := false
+
+ n := l.Noun()
+
+ if l.allowMessage(n, level) == false {
+ if canExcludeBypass == false {
+ return nil
+ } else {
+ didExcludeBypass = true
+ }
+ }
+
+ levelName, found := LevelNameMapR[level]
+ if found == false {
+ Panic(fmt.Errorf("level not valid: (%d)", level))
+ }
+
+ levelName = strings.ToUpper(levelName)
+
+ lc := &MessageContext{
+ Level: &levelName,
+ Noun: &n,
+ ExcludeBypass: didExcludeBypass,
+ }
+
+ if s, err := l.flattenMessage(lc, &format, args); err != nil {
+ return err
+ } else {
+ lc := l.makeLogContext(ctx)
+ if err := lm(lc, &s); err != nil {
+ panic(err)
+ }
+
+ return e.New(s)
+ }
+}
+
+func (l *Logger) Debugf(ctx context.Context, format string, args ...interface{}) {
+ l.doConfigure(false)
+
+ if l.la != nil {
+ l.log(ctx, LevelDebug, l.la.Debugf, format, args)
+ }
+}
+
+func (l *Logger) Infof(ctx context.Context, format string, args ...interface{}) {
+ l.doConfigure(false)
+
+ if l.la != nil {
+ l.log(ctx, LevelInfo, l.la.Infof, format, args)
+ }
+}
+
+func (l *Logger) Warningf(ctx context.Context, format string, args ...interface{}) {
+ l.doConfigure(false)
+
+ if l.la != nil {
+ l.log(ctx, LevelWarning, l.la.Warningf, format, args)
+ }
+}
+
+func (l *Logger) mergeStack(err interface{}, format string, args []interface{}) (string, []interface{}) {
+ if format != "" {
+ format += "\n%s"
+ } else {
+ format = "%s"
+ }
+
+ var stackified *errors.Error
+ stackified, ok := err.(*errors.Error)
+ if ok == false {
+ stackified = errors.Wrap(err, 2)
+ }
+
+ args = append(args, stackified.ErrorStack())
+
+ return format, args
+}
+
+func (l *Logger) Errorf(ctx context.Context, errRaw interface{}, format string, args ...interface{}) {
+ l.doConfigure(false)
+
+ var err interface{}
+
+ if errRaw != nil {
+ _, ok := errRaw.(*errors.Error)
+ if ok == true {
+ err = errRaw
+ } else {
+ err = errors.Wrap(errRaw, 1)
+ }
+ }
+
+ if l.la != nil {
+ if errRaw != nil {
+ format, args = l.mergeStack(err, format, args)
+ }
+
+ l.log(ctx, LevelError, l.la.Errorf, format, args)
+ }
+}
+
+func (l *Logger) ErrorIff(ctx context.Context, errRaw interface{}, format string, args ...interface{}) {
+ if errRaw == nil {
+ return
+ }
+
+ var err interface{}
+
+ _, ok := errRaw.(*errors.Error)
+ if ok == true {
+ err = errRaw
+ } else {
+ err = errors.Wrap(errRaw, 1)
+ }
+
+ l.Errorf(ctx, err, format, args...)
+}
+
+func (l *Logger) Panicf(ctx context.Context, errRaw interface{}, format string, args ...interface{}) {
+ l.doConfigure(false)
+
+ var err interface{}
+
+ _, ok := errRaw.(*errors.Error)
+ if ok == true {
+ err = errRaw
+ } else {
+ err = errors.Wrap(errRaw, 1)
+ }
+
+ if l.la != nil {
+ format, args = l.mergeStack(err, format, args)
+ err = l.log(ctx, LevelError, l.la.Errorf, format, args)
+ }
+
+ Panic(err.(error))
+}
+
+func (l *Logger) PanicIff(ctx context.Context, errRaw interface{}, format string, args ...interface{}) {
+ if errRaw == nil {
+ return
+ }
+
+ var err interface{}
+
+ _, ok := errRaw.(*errors.Error)
+ if ok == true {
+ err = errRaw
+ } else {
+ err = errors.Wrap(errRaw, 1)
+ }
+
+ l.Panicf(ctx, err.(error), format, args...)
+}
+
+func Wrap(err interface{}) *errors.Error {
+ es, ok := err.(*errors.Error)
+ if ok == true {
+ return es
+ } else {
+ return errors.Wrap(err, 1)
+ }
+}
+
+func Errorf(message string, args ...interface{}) *errors.Error {
+ err := fmt.Errorf(message, args...)
+ return errors.Wrap(err, 1)
+}
+
+func Panic(err interface{}) {
+ _, ok := err.(*errors.Error)
+ if ok == true {
+ panic(err)
+ } else {
+ panic(errors.Wrap(err, 1))
+ }
+}
+
+func Panicf(message string, args ...interface{}) {
+ err := Errorf(message, args...)
+ Panic(err)
+}
+
+func PanicIf(err interface{}) {
+ if err == nil {
+ return
+ }
+
+ _, ok := err.(*errors.Error)
+ if ok == true {
+ panic(err)
+ } else {
+ panic(errors.Wrap(err, 1))
+ }
+}
+
+// Is checks if the left ("actual") error equals the right ("against") error.
+// The right must be an unwrapped error (the kind that you'd initialize as a
+// global variable). The left can be a wrapped or unwrapped error.
+func Is(actual, against error) bool {
+ // If it's an unwrapped error.
+ if _, ok := actual.(*errors.Error); ok == false {
+ return actual == against
+ }
+
+ return errors.Is(actual, against)
+}
+
+// Print is a utility function to prevent the caller from having to import the
+// third-party library.
+func PrintError(err error) {
+ wrapped := Wrap(err)
+ fmt.Printf("Stack:\n\n%s\n", wrapped.ErrorStack())
+}
+
+// PrintErrorf is a utility function to prevent the caller from having to
+// import the third-party library.
+func PrintErrorf(err error, format string, args ...interface{}) {
+ wrapped := Wrap(err)
+
+ fmt.Printf(format, args...)
+ fmt.Printf("\n")
+ fmt.Printf("Stack:\n\n%s\n", wrapped.ErrorStack())
+}
+
+func init() {
+ if format == "" {
+ format = defaultFormat
+ }
+
+ if levelName == "" {
+ levelName = defaultLevelName
+ }
+
+ if includeNouns != "" {
+ for _, noun := range strings.Split(includeNouns, ",") {
+ AddIncludeFilter(noun)
+ }
+ }
+
+ if excludeNouns != "" {
+ for _, noun := range strings.Split(excludeNouns, ",") {
+ AddExcludeFilter(noun)
+ }
+ }
+
+ if excludeBypassLevelName != "" {
+ var found bool
+ if excludeBypassLevel, found = LevelNameMap[excludeBypassLevelName]; found == false {
+ panic(ErrExcludeLevelNameInvalid)
+ }
+ }
+}
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/.MODULE_ROOT b/vendor/github.com/dsoprea/go-photoshop-info-format/.MODULE_ROOT
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/.travis.yml b/vendor/github.com/dsoprea/go-photoshop-info-format/.travis.yml
new file mode 100644
index 000000000..710e46b39
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/.travis.yml
@@ -0,0 +1,14 @@
+language: go
+go:
+ - master
+ - stable
+ - "1.13"
+ - "1.12"
+env:
+ - GO111MODULE=on
+install:
+ - go get -t ./...
+ - go get github.com/mattn/goveralls
+script:
+ - go test -v ./...
+ - goveralls -v -service=travis-ci
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/LICENSE b/vendor/github.com/dsoprea/go-photoshop-info-format/LICENSE
new file mode 100644
index 000000000..d92c04268
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2020 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/README.md b/vendor/github.com/dsoprea/go-photoshop-info-format/README.md
new file mode 100644
index 000000000..abbfca67a
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/README.md
@@ -0,0 +1,8 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-photoshop-info-format.svg?branch=master)](https://travis-ci.org/dsoprea/go-photoshop-info-format)
+[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-photoshop-info-format/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-photoshop-info-format?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-photoshop-info-format)](https://goreportcard.com/report/github.com/dsoprea/go-photoshop-info-format)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-photoshop-info-format?status.svg)](https://godoc.org/github.com/dsoprea/go-photoshop-info-format)
+
+# Overview
+
+This is a minimal Photoshop format implementation to allow IPTC data to be extracted from a JPEG image. This project primarily services [go-jpeg-image-structure](https://github.com/dsoprea/go-jpeg-image-structure).
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/go.mod b/vendor/github.com/dsoprea/go-photoshop-info-format/go.mod
new file mode 100644
index 000000000..02736b552
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/go.mod
@@ -0,0 +1,5 @@
+module github.com/dsoprea/go-photoshop-info-format
+
+go 1.13
+
+require github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/go.sum b/vendor/github.com/dsoprea/go-photoshop-info-format/go.sum
new file mode 100644
index 000000000..9d20e12fd
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/go.sum
@@ -0,0 +1,10 @@
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d h1:F/7L5wr/fP/SKeO5HuMlNEX9Ipyx2MbH2rV9G4zJRpk=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/info.go b/vendor/github.com/dsoprea/go-photoshop-info-format/info.go
new file mode 100644
index 000000000..7f17fa6c0
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/info.go
@@ -0,0 +1,119 @@
+package photoshopinfo
+
+import (
+ "fmt"
+ "io"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ defaultByteOrder = binary.BigEndian
+)
+
+// Photoshop30InfoRecord is the data for one parsed Photoshop-info record.
+type Photoshop30InfoRecord struct {
+ // RecordType is the record-type.
+ RecordType string
+
+ // ImageResourceId is the image resource-ID.
+ ImageResourceId uint16
+
+ // Name is the name of the record. It is optional and will be an empty-
+ // string if not present.
+ Name string
+
+ // Data is the raw record data.
+ Data []byte
+}
+
+// String returns a descriptive string.
+func (pir Photoshop30InfoRecord) String() string {
+ return fmt.Sprintf("RECORD-TYPE=[%s] IMAGE-RESOURCE-ID=[0x%04x] NAME=[%s] DATA-SIZE=(%d)", pir.RecordType, pir.ImageResourceId, pir.Name, len(pir.Data))
+}
+
+// ReadPhotoshop30InfoRecord parses a single photoshop-info record.
+func ReadPhotoshop30InfoRecord(r io.Reader) (pir Photoshop30InfoRecord, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ recordType := make([]byte, 4)
+ _, err = io.ReadFull(r, recordType)
+ if err != nil {
+ if err == io.EOF {
+ return pir, err
+ }
+
+ log.Panic(err)
+ }
+
+ // TODO(dustin): Move BigEndian to constant/config.
+
+ irId := uint16(0)
+ err = binary.Read(r, defaultByteOrder, &irId)
+ log.PanicIf(err)
+
+ nameSize := uint8(0)
+ err = binary.Read(r, defaultByteOrder, &nameSize)
+ log.PanicIf(err)
+
+ // Add an extra byte if the two length+data size is odd to make the total
+ // bytes read even.
+ doAddPadding := (1+nameSize)%2 == 1
+ if doAddPadding == true {
+ nameSize++
+ }
+
+ name := make([]byte, nameSize)
+ _, err = io.ReadFull(r, name)
+ log.PanicIf(err)
+
+ // If the last byte is padding, truncate it.
+ if doAddPadding == true {
+ name = name[:nameSize-1]
+ }
+
+ dataSize := uint32(0)
+ err = binary.Read(r, defaultByteOrder, &dataSize)
+ log.PanicIf(err)
+
+ data := make([]byte, dataSize+dataSize%2)
+ _, err = io.ReadFull(r, data)
+ log.PanicIf(err)
+
+ data = data[:dataSize]
+
+ pir = Photoshop30InfoRecord{
+ RecordType: string(recordType),
+ ImageResourceId: irId,
+ Name: string(name),
+ Data: data,
+ }
+
+ return pir, nil
+}
+
+// ReadPhotoshop30Info parses a sequence of photoship-info records from the stream.
+func ReadPhotoshop30Info(r io.Reader) (pirIndex map[uint16]Photoshop30InfoRecord, err error) {
+ pirIndex = make(map[uint16]Photoshop30InfoRecord)
+
+ for {
+ pir, err := ReadPhotoshop30InfoRecord(r)
+ if err != nil {
+ if err == io.EOF {
+ break
+ }
+
+ log.Panic(err)
+ }
+
+ pirIndex[pir.ImageResourceId] = pir
+ }
+
+ return pirIndex, nil
+}
diff --git a/vendor/github.com/dsoprea/go-photoshop-info-format/testing_common.go b/vendor/github.com/dsoprea/go-photoshop-info-format/testing_common.go
new file mode 100644
index 000000000..681b117ec
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-photoshop-info-format/testing_common.go
@@ -0,0 +1,73 @@
+package photoshopinfo
+
+import (
+ "os"
+ "path"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ testDataRelFilepath = "photoshop.data"
+)
+
+var (
+ moduleRootPath = ""
+ assetsPath = ""
+)
+
+// GetModuleRootPath returns the root-path of the module.
+func GetModuleRootPath() string {
+ if moduleRootPath == "" {
+ moduleRootPath = os.Getenv("PHOTOSHOPINFO_MODULE_ROOT_PATH")
+ if moduleRootPath != "" {
+ return moduleRootPath
+ }
+
+ currentWd, err := os.Getwd()
+ log.PanicIf(err)
+
+ currentPath := currentWd
+ visited := make([]string, 0)
+
+ for {
+ tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT")
+
+ _, err := os.Stat(tryStampFilepath)
+ if err != nil && os.IsNotExist(err) != true {
+ log.Panic(err)
+ } else if err == nil {
+ break
+ }
+
+ visited = append(visited, tryStampFilepath)
+
+ currentPath = path.Dir(currentPath)
+ if currentPath == "/" {
+ log.Panicf("could not find module-root: %v", visited)
+ }
+ }
+
+ moduleRootPath = currentPath
+ }
+
+ return moduleRootPath
+}
+
+// GetTestAssetsPath returns the path of the test-assets.
+func GetTestAssetsPath() string {
+ if assetsPath == "" {
+ moduleRootPath := GetModuleRootPath()
+ assetsPath = path.Join(moduleRootPath, "assets")
+ }
+
+ return assetsPath
+}
+
+// GetTestDataFilepath returns the file-path of the common test-data.
+func GetTestDataFilepath() string {
+ assetsPath := GetTestAssetsPath()
+ filepath := path.Join(assetsPath, testDataRelFilepath)
+
+ return filepath
+}
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/.MODULE_ROOT b/vendor/github.com/dsoprea/go-png-image-structure/.MODULE_ROOT
new file mode 100644
index 000000000..e69de29bb
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/.travis.yml b/vendor/github.com/dsoprea/go-png-image-structure/.travis.yml
new file mode 100644
index 000000000..fdeab54e1
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/.travis.yml
@@ -0,0 +1,21 @@
+language: go
+go:
+ - master
+ - stable
+ - "1.14"
+ - "1.13"
+ - "1.12"
+env:
+ - GO111MODULE=on
+install:
+ - go get -t ./...
+script:
+# v1
+ - go test -v .
+# v2
+ - cd v2
+ - go test -v .
+ - cd ..
+after_success:
+ - cd v2
+ - curl -s https://codecov.io/bash | bash
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/LICENSE b/vendor/github.com/dsoprea/go-png-image-structure/LICENSE
new file mode 100644
index 000000000..163291ed6
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/LICENSE
@@ -0,0 +1,9 @@
+MIT LICENSE
+
+Copyright 2020 Dustin Oprea
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/README.md b/vendor/github.com/dsoprea/go-png-image-structure/README.md
new file mode 100644
index 000000000..46297a2a7
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/README.md
@@ -0,0 +1,8 @@
+[![Build Status](https://travis-ci.org/dsoprea/go-png-image-structure.svg?branch=master)](https://travis-ci.org/dsoprea/go-png-image-structure)
+[![codecov](https://codecov.io/gh/dsoprea/go-png-image-structure/branch/master/graph/badge.svg)](https://codecov.io/gh/dsoprea/go-png-image-structure)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-png-image-structure/v2)](https://goreportcard.com/report/github.com/dsoprea/go-png-image-structure/v2)
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-png-image-structure/v2?status.svg)](https://godoc.org/github.com/dsoprea/go-png-image-structure/v2)
+
+## Overview
+
+Parse raw PNG data into individual chunks. Parse/modify EXIF data and write an updated image.
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/chunk_decoder.go b/vendor/github.com/dsoprea/go-png-image-structure/chunk_decoder.go
new file mode 100644
index 000000000..1358c3df2
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/chunk_decoder.go
@@ -0,0 +1,89 @@
+package pngstructure
+
+import (
+ "fmt"
+ "bytes"
+
+ "encoding/binary"
+
+ "github.com/dsoprea/go-logging"
+)
+
+type ChunkDecoder struct {
+
+}
+
+func NewChunkDecoder() *ChunkDecoder {
+ return new(ChunkDecoder)
+}
+
+func (cd *ChunkDecoder) Decode(c *Chunk) (decoded interface{}, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ switch c.Type {
+ case "IHDR":
+ ihdr, err := cd.decodeIHDR(c)
+ log.PanicIf(err)
+
+ return ihdr, nil
+ }
+
+ // We don't decode this particular type.
+ return nil, nil
+}
+
+
+type ChunkIHDR struct {
+ Width uint32
+ Height uint32
+ BitDepth uint8
+ ColorType uint8
+ CompressionMethod uint8
+ FilterMethod uint8
+ InterlaceMethod uint8
+}
+
+func (ihdr *ChunkIHDR) String() string {
+ return fmt.Sprintf("IHDR", ihdr.Width, ihdr.Height, ihdr.BitDepth, ihdr.ColorType, ihdr.CompressionMethod, ihdr.FilterMethod, ihdr.InterlaceMethod)
+}
+
+func (cd *ChunkDecoder) decodeIHDR(c *Chunk) (ihdr *ChunkIHDR, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ b := bytes.NewBuffer(c.Data)
+
+ ihdr = new(ChunkIHDR)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.Width)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.Height)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.BitDepth)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.ColorType)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.CompressionMethod)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.FilterMethod)
+ log.PanicIf(err)
+
+ err = binary.Read(b, binary.BigEndian, &ihdr.InterlaceMethod)
+ log.PanicIf(err)
+
+ return ihdr, nil
+}
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/go.mod b/vendor/github.com/dsoprea/go-png-image-structure/go.mod
new file mode 100644
index 000000000..8ea213667
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/go.mod
@@ -0,0 +1,15 @@
+module github.com/dsoprea/go-png-image-structure
+
+go 1.13
+
+// Development only
+// replace github.com/dsoprea/go-utility => ../go-utility
+// replace github.com/dsoprea/go-exif/v2 => ../go-exif/v2
+
+require (
+ github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4
+ github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e // indirect
+ github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d
+ github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf
+ golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 // indirect
+)
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/go.sum b/vendor/github.com/dsoprea/go-png-image-structure/go.sum
new file mode 100644
index 000000000..e92059ffe
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/go.sum
@@ -0,0 +1,67 @@
+github.com/dsoprea/go-exif v0.0.0-20200502203340-6aea10b45f4c h1:PoW4xOq3wUrX8ghNGiJFzem7mwd+mY/Xkgo0Z8AwcNY=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113184400-90b66e3d1158 h1:DzXu3hw2xqwfd/R0QflKY/ixfrLDbMFk30D/CyJMTAM=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113184400-90b66e3d1158/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113231207-0bbb7a3584f7 h1:+koSu4BOaLu+dy50WEj+ltzEjMzK5evzPawKxgIQerw=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200113231207-0bbb7a3584f7/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200321225314-640175a69fe4 h1:bVaiYo8amn7Lu93sz6mTlYB3EtLG9aRcMnM1Eps8fmM=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200321225314-640175a69fe4/go.mod h1:Lm2lMM2zx8p4a34ZemkaUV95AnMl4ZvLbCUbwOvLC2E=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200502203340-6aea10b45f4c h1:fQNBTLqL4u7yhl5AqW6dGG5RSxGuRhzXLnBVDR2uUuE=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200502203340-6aea10b45f4c/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517080529-c9be4b30b064 h1:V7CH/kZImE6Lf27H4DS5PG7qzBkf774GIXUuM31vVNA=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517080529-c9be4b30b064/go.mod h1:YXOyDqCYjBuHHRw4JIGPgOgMit0IDvVSjjhsqOAFTYQ=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517234148-29b0ff22564b h1:Uvnq5XTzlscGvQl3IwysBUVdSb1VUmqIvHrOv4x4UCE=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200517234148-29b0ff22564b/go.mod h1:STKu28lNwOeoO0bieAKJ3zQYkUbZ2hivI6qjjGVW0sc=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200518001653-d0d0f14dea03 h1:r+aCxLEe6uGDC/NJCpA3WQJ+C7WJ0chzfHKgy173fug=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200518001653-d0d0f14dea03/go.mod h1:STKu28lNwOeoO0bieAKJ3zQYkUbZ2hivI6qjjGVW0sc=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200520183328-015129a9efd5 h1:iKMxnRjFqQQYKEpdsjFDMV2+VUAncTLT4ofcCiQpDvo=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200520183328-015129a9efd5/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4 h1:Mg7pY7kxDQD2Bkvr1N+XW4BESSIQ7tTTR7Vv+Gi2CsM=
+github.com/dsoprea/go-exif/v2 v2.0.0-20200604193436-ca8584a0e1c4/go.mod h1:9EXlPeHfblFFnwu5UOqmP2eoZfJyAZ2Ri/Vki33ajO0=
+github.com/dsoprea/go-exif/v3 v3.0.0-20200717053412-08f1b6708903/go.mod h1:0nsO1ce0mh5czxGeLo4+OCZ/C6Eo6ZlMWsz7rH/Gxv8=
+github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e h1:E4XTSQZF/JtOQWcSaJBJho7t+RNWfdO92W/5skg10Jk=
+github.com/dsoprea/go-exif/v3 v3.0.0-20210512043655-120bcdb2a55e/go.mod h1:cg5SNYKHMmzxsr9X6ZeLh/nfBRHHp5PngtEPcujONtk=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696 h1:VGFnZAcLwPpt1sHlAxml+pGLZz9A2s+K/s1YNhPC91Y=
+github.com/dsoprea/go-logging v0.0.0-20190624164917-c4f10aab7696/go.mod h1:Nm/x2ZUNRW6Fe5C3LxdY1PyZY5wmDv/s5dkPJ/VB3iA=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f h1:FonKAuW3PmNtqk9tOR+Z7bnyQHytmnZBCmm5z1PQMss=
+github.com/dsoprea/go-logging v0.0.0-20200502201358-170ff607885f/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d h1:F/7L5wr/fP/SKeO5HuMlNEX9Ipyx2MbH2rV9G4zJRpk=
+github.com/dsoprea/go-logging v0.0.0-20200517223158-a10564966e9d/go.mod h1:7I+3Pe2o/YSU88W0hWlm9S22W7XI1JFNJ86U0zPKMf8=
+github.com/dsoprea/go-utility v0.0.0-20200322055224-4dc0f716e7d0 h1:zFSboMDWXX2UX7/k/mCHBjZhHlaFMx0HmtUE37HABsA=
+github.com/dsoprea/go-utility v0.0.0-20200322055224-4dc0f716e7d0/go.mod h1:xv8CVgDmI/Shx/X+EUXyXELVnH5lSRUYRija52OHq7E=
+github.com/dsoprea/go-utility v0.0.0-20200322154813-27f0b0d142d7 h1:DJhSHW0odJrW5wR9MU6ry5S+PsxuRXA165KFaiB+cZo=
+github.com/dsoprea/go-utility v0.0.0-20200322154813-27f0b0d142d7/go.mod h1:xv8CVgDmI/Shx/X+EUXyXELVnH5lSRUYRija52OHq7E=
+github.com/dsoprea/go-utility v0.0.0-20200512094054-1abbbc781176 h1:CfXezFYb2STGOd1+n1HshvE191zVx+QX3A1nML5xxME=
+github.com/dsoprea/go-utility v0.0.0-20200512094054-1abbbc781176/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf h1:/w4QxepU4AHh3AuO6/g8y/YIIHH5+aKP3Bj8sg5cqhU=
+github.com/dsoprea/go-utility v0.0.0-20200711062821-fab8125e9bdf/go.mod h1:95+K3z2L0mqsVYd6yveIv1lmtT3tcQQ3dVakPySffW8=
+github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e h1:IxIbA7VbCNrwumIYjDoMOdf4KOSkMC6NJE4s8oRbE7E=
+github.com/dsoprea/go-utility/v2 v2.0.0-20200717064901-2fccff4aa15e/go.mod h1:uAzdkPTub5Y9yQwXe8W4m2XuP0tK4a9Q/dantD0+uaU=
+github.com/go-errors/errors v1.0.1 h1:LUHzmkK3GUKUrL/1gfBUxAHzcev3apQlezX/+O7ma6w=
+github.com/go-errors/errors v1.0.1/go.mod h1:f4zRHt4oKfwPJE5k8C9vpYG+aDHdBFUsgrm6/TyX73Q=
+github.com/go-errors/errors v1.0.2 h1:xMxH9j2fNg/L4hLn/4y3M0IUsn0M6Wbu/Uh9QlOfBh4=
+github.com/go-errors/errors v1.0.2/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+github.com/go-errors/errors v1.1.1 h1:ljK/pL5ltg3qoN+OtN6yCv9HWSfMwxSx90GJCZQxYNg=
+github.com/go-errors/errors v1.1.1/go.mod h1:psDX2osz5VnTOnFWbDeWwS7yejl+uV3FEWEp4lssFEs=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec h1:lJwO/92dFXWeXOZdoGXgptLmNLwynMSHUmU6besqtiw=
+github.com/golang/geo v0.0.0-20190916061304-5b978397cfec/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d h1:C/hKUcHT483btRbeGkrRjJz+Zbcj8audldIi9tRJDCc=
+github.com/golang/geo v0.0.0-20200319012246-673a6f80352d/go.mod h1:QZ0nwyI2jOfgRAoBvP+ab5aRr7c9x7lhGEJrKvBwjWI=
+github.com/jessevdk/go-flags v1.4.0/go.mod h1:4FA24M0QyGHXBuZZK/XkWh8h0e1EYbRYJSGM75WSRxI=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553 h1:efeOvDhwQ29Dj3SdAV/MJf8oukgn+8D8WgaCaRMchF8=
+golang.org/x/net v0.0.0-20191209160850-c0dbc17a3553/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200320220750-118fecf932d8/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5 h1:WQ8q63x+f/zpC8Ac1s9wLElVoHhm32p6tudrU72n1QA=
+golang.org/x/net v0.0.0-20200501053045-e0ff5e5a1de5/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120 h1:EZ3cVSzKOlJxAd8e8YAJ7no8nNypTxexh/YE/xW3ZEY=
+golang.org/x/net v0.0.0-20200513185701-a91f0712d120/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2 h1:eDrdRpKgkcCqKZQwyZRyeFZgfqt37SL7Kv3tok06cKE=
+golang.org/x/net v0.0.0-20200520182314-0ba52f642ac2/go.mod h1:qpuaurCH72eLCgpAm/N6yyVIVM9cpaDIP3A8BGJEC5A=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20200323222414-85ca7c5b95cd/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.7 h1:VUgggvou5XRW9mHwD/yXxIYSMtY0zoKQf/v226p2nyo=
+gopkg.in/yaml.v2 v2.2.7/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.3.0 h1:clyUAQHOM3G0M3f5vQj7LuJrETvjVot3Z5el9nffUtU=
+gopkg.in/yaml.v2 v2.3.0/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/media_parser.go b/vendor/github.com/dsoprea/go-png-image-structure/media_parser.go
new file mode 100644
index 000000000..f7467593f
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/media_parser.go
@@ -0,0 +1,106 @@
+package pngstructure
+
+import (
+ "bufio"
+ "bytes"
+ "io"
+ "os"
+
+ "github.com/dsoprea/go-logging"
+ "github.com/dsoprea/go-utility/image"
+)
+
+// PngMediaParser knows how to parse a PNG stream.
+type PngMediaParser struct {
+}
+
+// NewPngMediaParser returns a new `PngMediaParser` struct.
+func NewPngMediaParser() *PngMediaParser {
+
+ // TODO(dustin): Add test
+
+ return new(PngMediaParser)
+}
+
+// Parse parses a PNG stream given a `io.ReadSeeker`.
+func (pmp *PngMediaParser) Parse(rs io.ReadSeeker, size int) (mc riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ ps := NewPngSplitter()
+
+ err = ps.readHeader(rs)
+ log.PanicIf(err)
+
+ s := bufio.NewScanner(rs)
+
+ // Since each segment can be any size, our buffer must be allowed to grow
+ // as large as the file.
+ buffer := []byte{}
+ s.Buffer(buffer, size)
+ s.Split(ps.Split)
+
+ for s.Scan() != false {
+ }
+ log.PanicIf(s.Err())
+
+ return ps.Chunks(), nil
+}
+
+// ParseFile parses a PNG stream given a file-path.
+func (pmp *PngMediaParser) ParseFile(filepath string) (mc riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ f, err := os.Open(filepath)
+ log.PanicIf(err)
+
+ defer f.Close()
+
+ stat, err := f.Stat()
+ log.PanicIf(err)
+
+ size := stat.Size()
+
+ chunks, err := pmp.Parse(f, int(size))
+ log.PanicIf(err)
+
+ return chunks, nil
+}
+
+// ParseBytes parses a PNG stream given a byte-slice.
+func (pmp *PngMediaParser) ParseBytes(data []byte) (mc riimage.MediaContext, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // TODO(dustin): Add test
+
+ br := bytes.NewReader(data)
+
+ chunks, err := pmp.Parse(br, len(data))
+ log.PanicIf(err)
+
+ return chunks, nil
+}
+
+// LooksLikeFormat returns a boolean indicating whether the stream looks like a
+// PNG image.
+func (pmp *PngMediaParser) LooksLikeFormat(data []byte) bool {
+ return bytes.Compare(data[:len(PngSignature)], PngSignature[:]) == 0
+}
+
+var (
+ // Enforce interface conformance.
+ _ riimage.MediaParser = new(PngMediaParser)
+)
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/png.go b/vendor/github.com/dsoprea/go-png-image-structure/png.go
new file mode 100644
index 000000000..203bbf562
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/png.go
@@ -0,0 +1,414 @@
+package pngstructure
+
+import (
+ "bytes"
+ "errors"
+ "fmt"
+ "io"
+
+ "encoding/binary"
+ "hash/crc32"
+
+ "github.com/dsoprea/go-exif/v2"
+ "github.com/dsoprea/go-logging"
+ "github.com/dsoprea/go-utility/image"
+)
+
+var (
+ PngSignature = [8]byte{137, 'P', 'N', 'G', '\r', '\n', 26, '\n'}
+ EXifChunkType = "eXIf"
+ IHDRChunkType = "IHDR"
+)
+
+var (
+ ErrNotPng = errors.New("not png data")
+ ErrNoExif = errors.New("file does not have EXIF")
+ ErrCrcFailure = errors.New("crc failure")
+)
+
+// ChunkSlice encapsulates a slice of chunks.
+type ChunkSlice struct {
+ chunks []*Chunk
+}
+
+func NewChunkSlice(chunks []*Chunk) *ChunkSlice {
+ if len(chunks) == 0 {
+ log.Panicf("ChunkSlice must be initialized with at least one chunk (IHDR)")
+ } else if chunks[0].Type != IHDRChunkType {
+ log.Panicf("first chunk in any ChunkSlice must be an IHDR")
+ }
+
+ return &ChunkSlice{
+ chunks: chunks,
+ }
+}
+
+func NewPngChunkSlice() *ChunkSlice {
+
+ ihdrChunk := &Chunk{
+ Type: IHDRChunkType,
+ }
+
+ ihdrChunk.UpdateCrc32()
+
+ return NewChunkSlice([]*Chunk{ihdrChunk})
+}
+
+func (cs *ChunkSlice) String() string {
+ return fmt.Sprintf("ChunkSlize", len(cs.chunks))
+}
+
+// Chunks exposes the actual slice.
+func (cs *ChunkSlice) Chunks() []*Chunk {
+ return cs.chunks
+}
+
+// Write encodes and writes all chunks.
+func (cs *ChunkSlice) WriteTo(w io.Writer) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ _, err = w.Write(PngSignature[:])
+ log.PanicIf(err)
+
+ // TODO(dustin): !! This should respect the safe-to-copy characteristic.
+ for _, c := range cs.chunks {
+ _, err := c.WriteTo(w)
+ log.PanicIf(err)
+ }
+
+ return nil
+}
+
+// Index returns a map of chunk types to chunk slices, grouping all like chunks.
+func (cs *ChunkSlice) Index() (index map[string][]*Chunk) {
+ index = make(map[string][]*Chunk)
+ for _, c := range cs.chunks {
+ if grouped, found := index[c.Type]; found == true {
+ index[c.Type] = append(grouped, c)
+ } else {
+ index[c.Type] = []*Chunk{c}
+ }
+ }
+
+ return index
+}
+
+// FindExif returns the the segment that hosts the EXIF data.
+func (cs *ChunkSlice) FindExif() (chunk *Chunk, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ index := cs.Index()
+
+ if chunks, found := index[EXifChunkType]; found == true {
+ return chunks[0], nil
+ }
+
+ log.Panic(ErrNoExif)
+
+ // Never called.
+ return nil, nil
+}
+
+// Exif returns an `exif.Ifd` instance with the existing tags.
+func (cs *ChunkSlice) Exif() (rootIfd *exif.Ifd, data []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ chunk, err := cs.FindExif()
+ log.PanicIf(err)
+
+ im := exif.NewIfdMappingWithStandard()
+ ti := exif.NewTagIndex()
+
+ // TODO(dustin): Refactor and support `exif.GetExifData()`.
+
+ _, index, err := exif.Collect(im, ti, chunk.Data)
+ log.PanicIf(err)
+
+ return index.RootIfd, chunk.Data, nil
+}
+
+// ConstructExifBuilder returns an `exif.IfdBuilder` instance (needed for
+// modifying) preloaded with all existing tags.
+func (cs *ChunkSlice) ConstructExifBuilder() (rootIb *exif.IfdBuilder, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ rootIfd, _, err := cs.Exif()
+ log.PanicIf(err)
+
+ ib := exif.NewIfdBuilderFromExistingChain(rootIfd)
+
+ return ib, nil
+}
+
+// SetExif encodes and sets EXIF data into this segment.
+func (cs *ChunkSlice) SetExif(ib *exif.IfdBuilder) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // Encode.
+
+ ibe := exif.NewIfdByteEncoder()
+
+ exifData, err := ibe.EncodeToExif(ib)
+ log.PanicIf(err)
+
+ // Set.
+
+ exifChunk, err := cs.FindExif()
+ if err == nil {
+ // EXIF chunk already exists.
+
+ exifChunk.Data = exifData
+ exifChunk.Length = uint32(len(exifData))
+ } else {
+ if log.Is(err, ErrNoExif) != true {
+ log.Panic(err)
+ }
+
+ // Add a EXIF chunk for the first time.
+
+ exifChunk = &Chunk{
+ Type: EXifChunkType,
+ Data: exifData,
+ Length: uint32(len(exifData)),
+ }
+
+ // Insert it after the IHDR chunk (it's a reliably appropriate place to
+ // put it).
+ cs.chunks = append(cs.chunks[:1], append([]*Chunk{exifChunk}, cs.chunks[1:]...)...)
+ }
+
+ exifChunk.UpdateCrc32()
+
+ return nil
+}
+
+// PngSplitter hosts the princpal `Split()` method uses by `bufio.Scanner`.
+type PngSplitter struct {
+ chunks []*Chunk
+ currentOffset int
+
+ doCheckCrc bool
+ crcErrors []string
+}
+
+func (ps *PngSplitter) Chunks() *ChunkSlice {
+ return NewChunkSlice(ps.chunks)
+}
+
+func (ps *PngSplitter) DoCheckCrc(doCheck bool) {
+ ps.doCheckCrc = doCheck
+}
+
+func (ps *PngSplitter) CrcErrors() []string {
+ return ps.crcErrors
+}
+
+func NewPngSplitter() *PngSplitter {
+ return &PngSplitter{
+ chunks: make([]*Chunk, 0),
+ doCheckCrc: true,
+ crcErrors: make([]string, 0),
+ }
+}
+
+// Chunk describes a single chunk.
+type Chunk struct {
+ Offset int
+ Length uint32
+ Type string
+ Data []byte
+ Crc uint32
+}
+
+func (c *Chunk) String() string {
+ return fmt.Sprintf("Chunk", c.Offset, c.Length, c.Type, c.Crc)
+}
+
+func calculateCrc32(chunk *Chunk) uint32 {
+ c := crc32.NewIEEE()
+
+ c.Write([]byte(chunk.Type))
+ c.Write(chunk.Data)
+
+ return c.Sum32()
+}
+
+func (c *Chunk) UpdateCrc32() {
+ c.Crc = calculateCrc32(c)
+}
+
+func (c *Chunk) CheckCrc32() bool {
+ expected := calculateCrc32(c)
+ return c.Crc == expected
+}
+
+// Bytes encodes and returns the bytes for this chunk.
+func (c *Chunk) Bytes() []byte {
+ defer func() {
+ if state := recover(); state != nil {
+ err := log.Wrap(state.(error))
+ log.Panic(err)
+ }
+ }()
+
+ if len(c.Data) != int(c.Length) {
+ log.Panicf("length of data not correct")
+ }
+
+ preallocated := make([]byte, 0, 4+4+c.Length+4)
+ b := bytes.NewBuffer(preallocated)
+
+ err := binary.Write(b, binary.BigEndian, c.Length)
+ log.PanicIf(err)
+
+ _, err = b.Write([]byte(c.Type))
+ log.PanicIf(err)
+
+ if c.Data != nil {
+ _, err = b.Write(c.Data)
+ log.PanicIf(err)
+ }
+
+ err = binary.Write(b, binary.BigEndian, c.Crc)
+ log.PanicIf(err)
+
+ return b.Bytes()
+}
+
+// Write encodes and writes the bytes for this chunk.
+func (c *Chunk) WriteTo(w io.Writer) (count int, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ if len(c.Data) != int(c.Length) {
+ log.Panicf("length of data not correct")
+ }
+
+ err = binary.Write(w, binary.BigEndian, c.Length)
+ log.PanicIf(err)
+
+ _, err = w.Write([]byte(c.Type))
+ log.PanicIf(err)
+
+ _, err = w.Write(c.Data)
+ log.PanicIf(err)
+
+ err = binary.Write(w, binary.BigEndian, c.Crc)
+ log.PanicIf(err)
+
+ return 4 + len(c.Type) + len(c.Data) + 4, nil
+}
+
+// readHeader verifies that the PNG header bytes appear next.
+func (ps *PngSplitter) readHeader(r io.Reader) (err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ len_ := len(PngSignature)
+ header := make([]byte, len_)
+
+ _, err = r.Read(header)
+ log.PanicIf(err)
+
+ ps.currentOffset += len_
+
+ if bytes.Compare(header, PngSignature[:]) != 0 {
+ log.Panic(ErrNotPng)
+ }
+
+ return nil
+}
+
+// Split fulfills the `bufio.SplitFunc` function definition for
+// `bufio.Scanner`.
+func (ps *PngSplitter) Split(data []byte, atEOF bool) (advance int, token []byte, err error) {
+ defer func() {
+ if state := recover(); state != nil {
+ err = log.Wrap(state.(error))
+ }
+ }()
+
+ // We might have more than one chunk's worth, and, if `atEOF` is true, we
+ // won't be called again. We'll repeatedly try to read additional chunks,
+ // but, when we run out of the data we were given then we'll return the
+ // number of bytes fo rthe chunks we've already completely read. Then,
+ // we'll be called again from theend ofthose bytes, at which point we'll
+ // indicate that we don't yet have enough for another chunk, and we should
+ // be then called with more.
+ for {
+ len_ := len(data)
+ if len_ < 8 {
+ return advance, nil, nil
+ }
+
+ length := binary.BigEndian.Uint32(data[:4])
+ type_ := string(data[4:8])
+ chunkSize := (8 + int(length) + 4)
+
+ if len_ < chunkSize {
+ return advance, nil, nil
+ }
+
+ crcIndex := 8 + length
+ crc := binary.BigEndian.Uint32(data[crcIndex : crcIndex+4])
+
+ content := make([]byte, length)
+ copy(content, data[8:8+length])
+
+ c := &Chunk{
+ Length: length,
+ Type: type_,
+ Data: content,
+ Crc: crc,
+ Offset: ps.currentOffset,
+ }
+
+ ps.chunks = append(ps.chunks, c)
+
+ if c.CheckCrc32() == false {
+ ps.crcErrors = append(ps.crcErrors, type_)
+
+ if ps.doCheckCrc == true {
+ log.Panic(ErrCrcFailure)
+ }
+ }
+
+ advance += chunkSize
+ ps.currentOffset += chunkSize
+
+ data = data[chunkSize:]
+ }
+
+ return advance, nil, nil
+}
+
+var (
+ // Enforce interface conformance.
+ _ riimage.MediaContext = new(ChunkSlice)
+)
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/testing_common.go b/vendor/github.com/dsoprea/go-png-image-structure/testing_common.go
new file mode 100644
index 000000000..e7dad11af
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/testing_common.go
@@ -0,0 +1,64 @@
+package pngstructure
+
+import (
+ "os"
+ "path"
+
+ "github.com/dsoprea/go-logging"
+)
+
+var (
+ assetsPath = ""
+)
+
+func getModuleRootPath() string {
+ moduleRootPath := os.Getenv("PNG_MODULE_ROOT_PATH")
+ if moduleRootPath != "" {
+ return moduleRootPath
+ }
+
+ currentWd, err := os.Getwd()
+ log.PanicIf(err)
+
+ currentPath := currentWd
+ visited := make([]string, 0)
+
+ for {
+ tryStampFilepath := path.Join(currentPath, ".MODULE_ROOT")
+
+ _, err := os.Stat(tryStampFilepath)
+ if err != nil && os.IsNotExist(err) != true {
+ log.Panic(err)
+ } else if err == nil {
+ break
+ }
+
+ visited = append(visited, tryStampFilepath)
+
+ currentPath = path.Dir(currentPath)
+ if currentPath == "/" {
+ log.Panicf("could not find module-root: %v", visited)
+ }
+ }
+
+ return currentPath
+}
+
+func getTestAssetsPath() string {
+ if assetsPath == "" {
+ moduleRootPath := getModuleRootPath()
+ assetsPath = path.Join(moduleRootPath, "assets")
+ }
+
+ return assetsPath
+}
+
+func getTestBasicImageFilepath() string {
+ assetsPath := getTestAssetsPath()
+ return path.Join(assetsPath, "libpng.png")
+}
+
+func getTestExifImageFilepath() string {
+ assetsPath := getTestAssetsPath()
+ return path.Join(assetsPath, "exif.png")
+}
diff --git a/vendor/github.com/dsoprea/go-png-image-structure/utility.go b/vendor/github.com/dsoprea/go-png-image-structure/utility.go
new file mode 100644
index 000000000..9bfab14a4
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-png-image-structure/utility.go
@@ -0,0 +1,65 @@
+package pngstructure
+
+import (
+ "fmt"
+ "bytes"
+
+ "github.com/dsoprea/go-logging"
+)
+
+func DumpBytes(data []byte) {
+ fmt.Printf("DUMP: ")
+ for _, x := range data {
+ fmt.Printf("%02x ", x)
+ }
+
+ fmt.Printf("\n")
+}
+
+func DumpBytesClause(data []byte) {
+ fmt.Printf("DUMP: ")
+
+ fmt.Printf("[]byte { ")
+
+ for i, x := range data {
+ fmt.Printf("0x%02x", x)
+
+ if i < len(data) - 1 {
+ fmt.Printf(", ")
+ }
+ }
+
+ fmt.Printf(" }\n")
+}
+
+func DumpBytesToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data) - 1 {
+ _, err := b.WriteRune(' ')
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
+
+func DumpBytesClauseToString(data []byte) string {
+ b := new(bytes.Buffer)
+
+ for i, x := range data {
+ _, err := b.WriteString(fmt.Sprintf("0x%02x", x))
+ log.PanicIf(err)
+
+ if i < len(data) - 1 {
+ _, err := b.WriteString(", ")
+ log.PanicIf(err)
+ }
+ }
+
+ return b.String()
+}
diff --git a/vendor/github.com/dsoprea/go-utility/LICENSE b/vendor/github.com/dsoprea/go-utility/LICENSE
new file mode 100644
index 000000000..8941063e1
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-utility/LICENSE
@@ -0,0 +1,7 @@
+Copyright 2019 Random Ingenuity InformationWorks
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/dsoprea/go-utility/image/README.md b/vendor/github.com/dsoprea/go-utility/image/README.md
new file mode 100644
index 000000000..1509ff666
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-utility/image/README.md
@@ -0,0 +1,9 @@
+[![GoDoc](https://godoc.org/github.com/dsoprea/go-utility/image?status.svg)](https://godoc.org/github.com/dsoprea/go-utility/image)
+[![Build Status](https://travis-ci.org/dsoprea/go-utility.svg?branch=master)](https://travis-ci.org/dsoprea/go-utility)
+[![Coverage Status](https://coveralls.io/repos/github/dsoprea/go-utility/badge.svg?branch=master)](https://coveralls.io/github/dsoprea/go-utility?branch=master)
+[![Go Report Card](https://goreportcard.com/badge/github.com/dsoprea/go-utility)](https://goreportcard.com/report/github.com/dsoprea/go-utility)
+
+# media_parser_type
+
+Common image-parsing interfaces. Used for JPEG, PNG, and HEIC parsers used by
+go-exif-knife.
diff --git a/vendor/github.com/dsoprea/go-utility/image/media_parser_type.go b/vendor/github.com/dsoprea/go-utility/image/media_parser_type.go
new file mode 100644
index 000000000..b7956ea17
--- /dev/null
+++ b/vendor/github.com/dsoprea/go-utility/image/media_parser_type.go
@@ -0,0 +1,34 @@
+package riimage
+
+import (
+ "io"
+
+ "github.com/dsoprea/go-exif/v2"
+)
+
+// MediaContext is an accessor that knows how to extract specific metadata from
+// the media.
+type MediaContext interface {
+ // Exif returns the EXIF's root IFD.
+ Exif() (rootIfd *exif.Ifd, data []byte, err error)
+}
+
+// MediaParser prescribes a specific structure for the parser types that are
+// imported from other projects. We don't use it directly, but we use this to
+// impose structure.
+type MediaParser interface {
+ // Parse parses a stream using an `io.ReadSeeker`. `mc` should *actually* be
+ // a `ExifContext`.
+ Parse(r io.ReadSeeker, size int) (mc MediaContext, err error)
+
+ // ParseFile parses a stream using a file. `mc` should *actually* be a
+ // `ExifContext`.
+ ParseFile(filepath string) (mc MediaContext, err error)
+
+ // ParseBytes parses a stream direct from bytes. `mc` should *actually* be
+ // a `ExifContext`.
+ ParseBytes(data []byte) (mc MediaContext, err error)
+
+ // Parses the data to determine if it's a compatible format.
+ LooksLikeFormat(data []byte) bool
+}
diff --git a/vendor/github.com/gin-contrib/cors/.gitignore b/vendor/github.com/gin-contrib/cors/.gitignore
new file mode 100644
index 000000000..b4ecae3ad
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/.gitignore
@@ -0,0 +1,23 @@
+*.o
+*.a
+*.so
+
+_obj
+_test
+
+*.[568vq]
+[568vq].out
+
+*.cgo1.go
+*.cgo2.c
+_cgo_defun.c
+_cgo_gotypes.go
+_cgo_export.*
+
+_testmain.go
+
+*.exe
+*.test
+*.prof
+
+coverage.out
diff --git a/vendor/github.com/gin-contrib/cors/.travis.yml b/vendor/github.com/gin-contrib/cors/.travis.yml
new file mode 100644
index 000000000..e5308a10d
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/.travis.yml
@@ -0,0 +1,31 @@
+language: go
+sudo: false
+
+go:
+ - 1.11.x
+ - 1.12.x
+ - 1.13.x
+ - 1.14.x
+ - master
+
+matrix:
+ fast_finish: true
+ include:
+ - go: 1.11.x
+ env: GO111MODULE=on
+ - go: 1.12.x
+ env: GO111MODULE=on
+
+script:
+ - go test -v -covermode=atomic -coverprofile=coverage.out
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+
+notifications:
+ webhooks:
+ urls:
+ - https://webhooks.gitter.im/e/acc2c57482e94b44f557
+ on_success: change
+ on_failure: always
+ on_start: false
diff --git a/vendor/github.com/gin-contrib/cors/LICENSE b/vendor/github.com/gin-contrib/cors/LICENSE
new file mode 100644
index 000000000..4e2cfb015
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016 Gin-Gonic
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/gin-contrib/cors/README.md b/vendor/github.com/gin-contrib/cors/README.md
new file mode 100644
index 000000000..bd567b10b
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/README.md
@@ -0,0 +1,91 @@
+# CORS gin's middleware
+
+[![Build Status](https://travis-ci.org/gin-contrib/cors.svg)](https://travis-ci.org/gin-contrib/cors)
+[![codecov](https://codecov.io/gh/gin-contrib/cors/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/cors)
+[![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/cors)](https://goreportcard.com/report/github.com/gin-contrib/cors)
+[![GoDoc](https://godoc.org/github.com/gin-contrib/cors?status.svg)](https://godoc.org/github.com/gin-contrib/cors)
+[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin)
+
+Gin middleware/handler to enable CORS support.
+
+## Usage
+
+### Start using it
+
+Download and install it:
+
+```sh
+$ go get github.com/gin-contrib/cors
+```
+
+Import it in your code:
+
+```go
+import "github.com/gin-contrib/cors"
+```
+
+### Canonical example:
+
+```go
+package main
+
+import (
+ "time"
+
+ "github.com/gin-contrib/cors"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ router := gin.Default()
+ // CORS for https://foo.com and https://github.com origins, allowing:
+ // - PUT and PATCH methods
+ // - Origin header
+ // - Credentials share
+ // - Preflight requests cached for 12 hours
+ router.Use(cors.New(cors.Config{
+ AllowOrigins: []string{"https://foo.com"},
+ AllowMethods: []string{"PUT", "PATCH"},
+ AllowHeaders: []string{"Origin"},
+ ExposeHeaders: []string{"Content-Length"},
+ AllowCredentials: true,
+ AllowOriginFunc: func(origin string) bool {
+ return origin == "https://github.com"
+ },
+ MaxAge: 12 * time.Hour,
+ }))
+ router.Run()
+}
+```
+
+### Using DefaultConfig as start point
+
+```go
+func main() {
+ router := gin.Default()
+ // - No origin allowed by default
+ // - GET,POST, PUT, HEAD methods
+ // - Credentials share disabled
+ // - Preflight requests cached for 12 hours
+ config := cors.DefaultConfig()
+ config.AllowOrigins = []string{"http://google.com"}
+ // config.AllowOrigins == []string{"http://google.com", "http://facebook.com"}
+
+ router.Use(cors.New(config))
+ router.Run()
+}
+```
+
+### Default() allows all origins
+
+```go
+func main() {
+ router := gin.Default()
+ // same as
+ // config := cors.DefaultConfig()
+ // config.AllowAllOrigins = true
+ // router.Use(cors.New(config))
+ router.Use(cors.Default())
+ router.Run()
+}
+```
diff --git a/vendor/github.com/gin-contrib/cors/config.go b/vendor/github.com/gin-contrib/cors/config.go
new file mode 100644
index 000000000..d4fc11801
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/config.go
@@ -0,0 +1,134 @@
+package cors
+
+import (
+ "net/http"
+ "strings"
+
+ "github.com/gin-gonic/gin"
+)
+
+type cors struct {
+ allowAllOrigins bool
+ allowCredentials bool
+ allowOriginFunc func(string) bool
+ allowOrigins []string
+ exposeHeaders []string
+ normalHeaders http.Header
+ preflightHeaders http.Header
+ wildcardOrigins [][]string
+}
+
+var (
+ DefaultSchemas = []string{
+ "http://",
+ "https://",
+ }
+ ExtensionSchemas = []string{
+ "chrome-extension://",
+ "safari-extension://",
+ "moz-extension://",
+ "ms-browser-extension://",
+ }
+ FileSchemas = []string{
+ "file://",
+ }
+ WebSocketSchemas = []string{
+ "ws://",
+ "wss://",
+ }
+)
+
+func newCors(config Config) *cors {
+ if err := config.Validate(); err != nil {
+ panic(err.Error())
+ }
+
+ return &cors{
+ allowOriginFunc: config.AllowOriginFunc,
+ allowAllOrigins: config.AllowAllOrigins,
+ allowCredentials: config.AllowCredentials,
+ allowOrigins: normalize(config.AllowOrigins),
+ normalHeaders: generateNormalHeaders(config),
+ preflightHeaders: generatePreflightHeaders(config),
+ wildcardOrigins: config.parseWildcardRules(),
+ }
+}
+
+func (cors *cors) applyCors(c *gin.Context) {
+ origin := c.Request.Header.Get("Origin")
+ if len(origin) == 0 {
+ // request is not a CORS request
+ return
+ }
+ host := c.Request.Host
+
+ if origin == "http://"+host || origin == "https://"+host {
+ // request is not a CORS request but have origin header.
+ // for example, use fetch api
+ return
+ }
+
+ if !cors.validateOrigin(origin) {
+ c.AbortWithStatus(http.StatusForbidden)
+ return
+ }
+
+ if c.Request.Method == "OPTIONS" {
+ cors.handlePreflight(c)
+ defer c.AbortWithStatus(http.StatusNoContent) // Using 204 is better than 200 when the request status is OPTIONS
+ } else {
+ cors.handleNormal(c)
+ }
+
+ if !cors.allowAllOrigins {
+ c.Header("Access-Control-Allow-Origin", origin)
+ }
+}
+
+func (cors *cors) validateWildcardOrigin(origin string) bool {
+ for _, w := range cors.wildcardOrigins {
+ if w[0] == "*" && strings.HasSuffix(origin, w[1]) {
+ return true
+ }
+ if w[1] == "*" && strings.HasPrefix(origin, w[0]) {
+ return true
+ }
+ if strings.HasPrefix(origin, w[0]) && strings.HasSuffix(origin, w[1]) {
+ return true
+ }
+ }
+
+ return false
+}
+
+func (cors *cors) validateOrigin(origin string) bool {
+ if cors.allowAllOrigins {
+ return true
+ }
+ for _, value := range cors.allowOrigins {
+ if value == origin {
+ return true
+ }
+ }
+ if len(cors.wildcardOrigins) > 0 && cors.validateWildcardOrigin(origin) {
+ return true
+ }
+ if cors.allowOriginFunc != nil {
+ return cors.allowOriginFunc(origin)
+ }
+ return false
+}
+
+func (cors *cors) handlePreflight(c *gin.Context) {
+ header := c.Writer.Header()
+ for key, value := range cors.preflightHeaders {
+ header[key] = value
+ }
+}
+
+func (cors *cors) handleNormal(c *gin.Context) {
+ header := c.Writer.Header()
+ for key, value := range cors.normalHeaders {
+ header[key] = value
+ }
+}
diff --git a/vendor/github.com/gin-contrib/cors/cors.go b/vendor/github.com/gin-contrib/cors/cors.go
new file mode 100644
index 000000000..d6d06de03
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/cors.go
@@ -0,0 +1,171 @@
+package cors
+
+import (
+ "errors"
+ "strings"
+ "time"
+
+ "github.com/gin-gonic/gin"
+)
+
+// Config represents all available options for the middleware.
+type Config struct {
+ AllowAllOrigins bool
+
+ // AllowOrigins is a list of origins a cross-domain request can be executed from.
+ // If the special "*" value is present in the list, all origins will be allowed.
+ // Default value is []
+ AllowOrigins []string
+
+ // AllowOriginFunc is a custom function to validate the origin. It take the origin
+ // as argument and returns true if allowed or false otherwise. If this option is
+ // set, the content of AllowOrigins is ignored.
+ AllowOriginFunc func(origin string) bool
+
+ // AllowMethods is a list of methods the client is allowed to use with
+ // cross-domain requests. Default value is simple methods (GET and POST)
+ AllowMethods []string
+
+ // AllowHeaders is list of non simple headers the client is allowed to use with
+ // cross-domain requests.
+ AllowHeaders []string
+
+ // AllowCredentials indicates whether the request can include user credentials like
+ // cookies, HTTP authentication or client side SSL certificates.
+ AllowCredentials bool
+
+ // ExposedHeaders indicates which headers are safe to expose to the API of a CORS
+ // API specification
+ ExposeHeaders []string
+
+ // MaxAge indicates how long (in seconds) the results of a preflight request
+ // can be cached
+ MaxAge time.Duration
+
+ // Allows to add origins like http://some-domain/*, https://api.* or http://some.*.subdomain.com
+ AllowWildcard bool
+
+ // Allows usage of popular browser extensions schemas
+ AllowBrowserExtensions bool
+
+ // Allows usage of WebSocket protocol
+ AllowWebSockets bool
+
+ // Allows usage of file:// schema (dangerous!) use it only when you 100% sure it's needed
+ AllowFiles bool
+}
+
+// AddAllowMethods is allowed to add custom methods
+func (c *Config) AddAllowMethods(methods ...string) {
+ c.AllowMethods = append(c.AllowMethods, methods...)
+}
+
+// AddAllowHeaders is allowed to add custom headers
+func (c *Config) AddAllowHeaders(headers ...string) {
+ c.AllowHeaders = append(c.AllowHeaders, headers...)
+}
+
+// AddExposeHeaders is allowed to add custom expose headers
+func (c *Config) AddExposeHeaders(headers ...string) {
+ c.ExposeHeaders = append(c.ExposeHeaders, headers...)
+}
+
+func (c Config) getAllowedSchemas() []string {
+ allowedSchemas := DefaultSchemas
+ if c.AllowBrowserExtensions {
+ allowedSchemas = append(allowedSchemas, ExtensionSchemas...)
+ }
+ if c.AllowWebSockets {
+ allowedSchemas = append(allowedSchemas, WebSocketSchemas...)
+ }
+ if c.AllowFiles {
+ allowedSchemas = append(allowedSchemas, FileSchemas...)
+ }
+ return allowedSchemas
+}
+
+func (c Config) validateAllowedSchemas(origin string) bool {
+ allowedSchemas := c.getAllowedSchemas()
+ for _, schema := range allowedSchemas {
+ if strings.HasPrefix(origin, schema) {
+ return true
+ }
+ }
+ return false
+}
+
+// Validate is check configuration of user defined.
+func (c *Config) Validate() error {
+ if c.AllowAllOrigins && (c.AllowOriginFunc != nil || len(c.AllowOrigins) > 0) {
+ return errors.New("conflict settings: all origins are allowed. AllowOriginFunc or AllowOrigins is not needed")
+ }
+ if !c.AllowAllOrigins && c.AllowOriginFunc == nil && len(c.AllowOrigins) == 0 {
+ return errors.New("conflict settings: all origins disabled")
+ }
+ for _, origin := range c.AllowOrigins {
+ if origin == "*" {
+ c.AllowAllOrigins = true
+ return nil
+ } else if !strings.Contains(origin, "*") && !c.validateAllowedSchemas(origin) {
+ return errors.New("bad origin: origins must contain '*' or include " + strings.Join(c.getAllowedSchemas(), ","))
+ }
+ }
+ return nil
+}
+
+func (c Config) parseWildcardRules() [][]string {
+ var wRules [][]string
+
+ if !c.AllowWildcard {
+ return wRules
+ }
+
+ for _, o := range c.AllowOrigins {
+ if !strings.Contains(o, "*") {
+ continue
+ }
+
+ if c := strings.Count(o, "*"); c > 1 {
+ panic(errors.New("only one * is allowed").Error())
+ }
+
+ i := strings.Index(o, "*")
+ if i == 0 {
+ wRules = append(wRules, []string{"*", o[1:]})
+ continue
+ }
+ if i == (len(o) - 1) {
+ wRules = append(wRules, []string{o[:i-1], "*"})
+ continue
+ }
+
+ wRules = append(wRules, []string{o[:i], o[i+1:]})
+ }
+
+ return wRules
+}
+
+// DefaultConfig returns a generic default configuration mapped to localhost.
+func DefaultConfig() Config {
+ return Config{
+ AllowMethods: []string{"GET", "POST", "PUT", "PATCH", "DELETE", "HEAD"},
+ AllowHeaders: []string{"Origin", "Content-Length", "Content-Type"},
+ AllowCredentials: false,
+ MaxAge: 12 * time.Hour,
+ }
+}
+
+// Default returns the location middleware with default configuration.
+func Default() gin.HandlerFunc {
+ config := DefaultConfig()
+ config.AllowAllOrigins = true
+ return New(config)
+}
+
+// New returns the location middleware with user-defined custom configuration.
+func New(config Config) gin.HandlerFunc {
+ cors := newCors(config)
+ return func(c *gin.Context) {
+ cors.applyCors(c)
+ }
+}
diff --git a/vendor/github.com/gin-contrib/cors/go.mod b/vendor/github.com/gin-contrib/cors/go.mod
new file mode 100644
index 000000000..9981c4576
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/go.mod
@@ -0,0 +1,10 @@
+module github.com/gin-contrib/cors
+
+go 1.13
+
+require (
+ github.com/gin-gonic/gin v1.5.0
+ github.com/kr/pretty v0.1.0 // indirect
+ github.com/stretchr/testify v1.4.0
+ gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
+)
diff --git a/vendor/github.com/gin-contrib/cors/go.sum b/vendor/github.com/gin-contrib/cors/go.sum
new file mode 100644
index 000000000..8da9e75db
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/go.sum
@@ -0,0 +1,52 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
+github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
+github.com/gin-gonic/gin v1.5.0 h1:fi+bqFAx/oLK54somfCtEZs9HeH1LHVoEPUgARpTqyc=
+github.com/gin-gonic/gin v1.5.0/go.mod h1:Nd6IXA8m5kNZdNEHMBd93KT+mdY3+bewLgRvmCsR2Do=
+github.com/go-playground/locales v0.12.1 h1:2FITxuFt/xuCNP1Acdhv62OzaCiviiE4kotfhkmOqEc=
+github.com/go-playground/locales v0.12.1/go.mod h1:IUMDtCfWo/w/mtMfIE/IG2K+Ey3ygWanZIBtBW0W2TM=
+github.com/go-playground/universal-translator v0.16.0 h1:X++omBR/4cE2MNg91AoC3rmGrCjJ8eAeUP/K/EKx4DM=
+github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY=
+github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/json-iterator/go v1.1.7 h1:KfgG9LzI+pYjr4xvmz/5H4FXjokeP+rlHLhv3iH62Fo=
+github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/kr/pretty v0.1.0 h1:L/CwN0zerZDmRFUapSPitk6f+Q3+0za1rQkzVuMiMFI=
+github.com/kr/pretty v0.1.0/go.mod h1:dAy3ld7l9f0ibDNOQOHHMYYIIbhfbHSm3C4ZsoJORNo=
+github.com/kr/pty v1.1.1/go.mod h1:pFQYn66WHrOpPYNljwOMqo10TkYh1fy3cYio2l3bCsQ=
+github.com/kr/text v0.1.0 h1:45sCR5RtlFHMR4UwH9sdQ5TC8v0qDQCHnXt+kaKSTVE=
+github.com/kr/text v0.1.0/go.mod h1:4Jbv+DJW3UT/LiOwJeYQe1efqtUx/iVham/4vfdArNI=
+github.com/leodido/go-urn v1.1.0 h1:Sm1gr51B1kKyfD2BlRcLSiEkffoG96g6TPv6eRoEiB8=
+github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw=
+github.com/mattn/go-isatty v0.0.9 h1:d5US/mDsogSGW37IV293h//ZFaeajb69h+EHFsv2xGg=
+github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
+github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
+github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
+github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
+golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
+golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 h1:qIbj1fsPNlZgppZ+VLlY7N33q108Sa+fhmuc+sWQYwY=
+gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
+gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
+gopkg.in/go-playground/validator.v9 v9.29.1 h1:SvGtYmN60a5CVKTOzMSyfzWDeZRxRuGvRQyEAKbw1xc=
+gopkg.in/go-playground/validator.v9 v9.29.1/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWdVbfP1avr/N00E2vyQ=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/gin-contrib/cors/utils.go b/vendor/github.com/gin-contrib/cors/utils.go
new file mode 100644
index 000000000..460ef1780
--- /dev/null
+++ b/vendor/github.com/gin-contrib/cors/utils.go
@@ -0,0 +1,85 @@
+package cors
+
+import (
+ "net/http"
+ "strconv"
+ "strings"
+ "time"
+)
+
+type converter func(string) string
+
+func generateNormalHeaders(c Config) http.Header {
+ headers := make(http.Header)
+ if c.AllowCredentials {
+ headers.Set("Access-Control-Allow-Credentials", "true")
+ }
+ if len(c.ExposeHeaders) > 0 {
+ exposeHeaders := convert(normalize(c.ExposeHeaders), http.CanonicalHeaderKey)
+ headers.Set("Access-Control-Expose-Headers", strings.Join(exposeHeaders, ","))
+ }
+ if c.AllowAllOrigins {
+ headers.Set("Access-Control-Allow-Origin", "*")
+ } else {
+ headers.Set("Vary", "Origin")
+ }
+ return headers
+}
+
+func generatePreflightHeaders(c Config) http.Header {
+ headers := make(http.Header)
+ if c.AllowCredentials {
+ headers.Set("Access-Control-Allow-Credentials", "true")
+ }
+ if len(c.AllowMethods) > 0 {
+ allowMethods := convert(normalize(c.AllowMethods), strings.ToUpper)
+ value := strings.Join(allowMethods, ",")
+ headers.Set("Access-Control-Allow-Methods", value)
+ }
+ if len(c.AllowHeaders) > 0 {
+ allowHeaders := convert(normalize(c.AllowHeaders), http.CanonicalHeaderKey)
+ value := strings.Join(allowHeaders, ",")
+ headers.Set("Access-Control-Allow-Headers", value)
+ }
+ if c.MaxAge > time.Duration(0) {
+ value := strconv.FormatInt(int64(c.MaxAge/time.Second), 10)
+ headers.Set("Access-Control-Max-Age", value)
+ }
+ if c.AllowAllOrigins {
+ headers.Set("Access-Control-Allow-Origin", "*")
+ } else {
+ // Always set Vary headers
+ // see https://github.com/rs/cors/issues/10,
+ // https://github.com/rs/cors/commit/dbdca4d95feaa7511a46e6f1efb3b3aa505bc43f#commitcomment-12352001
+
+ headers.Add("Vary", "Origin")
+ headers.Add("Vary", "Access-Control-Request-Method")
+ headers.Add("Vary", "Access-Control-Request-Headers")
+ }
+ return headers
+}
+
+func normalize(values []string) []string {
+ if values == nil {
+ return nil
+ }
+ distinctMap := make(map[string]bool, len(values))
+ normalized := make([]string, 0, len(values))
+ for _, value := range values {
+ value = strings.TrimSpace(value)
+ value = strings.ToLower(value)
+ if _, seen := distinctMap[value]; !seen {
+ normalized = append(normalized, value)
+ distinctMap[value] = true
+ }
+ }
+ return normalized
+}
+
+func convert(s []string, c converter) []string {
+ var out []string
+ for _, i := range s {
+ out = append(out, c(i))
+ }
+ return out
+}
diff --git a/vendor/github.com/gin-contrib/sessions/.gitignore b/vendor/github.com/gin-contrib/sessions/.gitignore
new file mode 100644
index 000000000..5d32c7593
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/.gitignore
@@ -0,0 +1,3 @@
+coverage.out
+vendor/*
+!/vendor/vendor.json
diff --git a/vendor/github.com/gin-contrib/sessions/.travis.yml b/vendor/github.com/gin-contrib/sessions/.travis.yml
new file mode 100644
index 000000000..85e4724e9
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/.travis.yml
@@ -0,0 +1,44 @@
+language: go
+sudo: false
+
+matrix:
+ fast_finish: true
+ include:
+ - go: 1.10.x
+ - go: 1.11.x
+ env: GO111MODULE=on
+ - go: 1.12.x
+ env: GO111MODULE=on
+ - go: 1.13.x
+ - go: master
+ env: GO111MODULE=on
+
+git:
+ depth: 10
+
+services:
+ - redis
+ - memcached
+ - mongodb
+
+before_install:
+ - go get github.com/campoy/embedmd
+
+install:
+ - if [[ "${GO111MODULE}" = "on" ]]; then go mod download; else go get -t -v .; fi
+ - if [[ "${GO111MODULE}" = "on" ]]; then export PATH="${GOPATH}/bin:${GOROOT}/bin:${PATH}"; fi
+
+script:
+ - embedmd -d *.md
+ - go test -v -covermode=atomic -coverprofile=coverage.out ./...
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
+
+notifications:
+ webhooks:
+ urls:
+ - https://webhooks.gitter.im/e/acc2c57482e94b44f557
+ on_success: change
+ on_failure: always
+ on_start: false
diff --git a/vendor/github.com/gin-contrib/sessions/LICENSE b/vendor/github.com/gin-contrib/sessions/LICENSE
new file mode 100644
index 000000000..4e2cfb015
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2016 Gin-Gonic
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/vendor/github.com/gin-contrib/sessions/README.md b/vendor/github.com/gin-contrib/sessions/README.md
new file mode 100644
index 000000000..94e445250
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/README.md
@@ -0,0 +1,329 @@
+# sessions
+
+[![Build Status](https://travis-ci.org/gin-contrib/sessions.svg)](https://travis-ci.org/gin-contrib/sessions)
+[![codecov](https://codecov.io/gh/gin-contrib/sessions/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/sessions)
+[![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/sessions)](https://goreportcard.com/report/github.com/gin-contrib/sessions)
+[![GoDoc](https://godoc.org/github.com/gin-contrib/sessions?status.svg)](https://godoc.org/github.com/gin-contrib/sessions)
+[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin)
+
+Gin middleware for session management with multi-backend support:
+
+- [cookie-based](#cookie-based)
+- [Redis](#redis)
+- [memcached](#memcached)
+- [MongoDB](#mongodb)
+- [memstore](#memstore)
+
+## Usage
+
+### Start using it
+
+Download and install it:
+
+```bash
+$ go get github.com/gin-contrib/sessions
+```
+
+Import it in your code:
+
+```go
+import "github.com/gin-contrib/sessions"
+```
+
+## Basic Examples
+
+### single session
+
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/cookie"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store := cookie.NewStore([]byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/hello", func(c *gin.Context) {
+ session := sessions.Default(c)
+
+ if session.Get("hello") != "world" {
+ session.Set("hello", "world")
+ session.Save()
+ }
+
+ c.JSON(200, gin.H{"hello": session.Get("hello")})
+ })
+ r.Run(":8000")
+}
+```
+
+### multiple sessions
+
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/cookie"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store := cookie.NewStore([]byte("secret"))
+ sessionNames := []string{"a", "b"}
+ r.Use(sessions.SessionsMany(sessionNames, store))
+
+ r.GET("/hello", func(c *gin.Context) {
+ sessionA := sessions.DefaultMany(c, "a")
+ sessionB := sessions.DefaultMany(c, "b")
+
+ if sessionA.Get("hello") != "world!" {
+ sessionA.Set("hello", "world!")
+ sessionA.Save()
+ }
+
+ if sessionB.Get("hello") != "world?" {
+ sessionB.Set("hello", "world?")
+ sessionB.Save()
+ }
+
+ c.JSON(200, gin.H{
+ "a": sessionA.Get("hello"),
+ "b": sessionB.Get("hello"),
+ })
+ })
+ r.Run(":8000")
+}
+```
+
+## Backend examples
+
+### cookie-based
+
+[embedmd]:# (example/cookie/main.go go)
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/cookie"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store := cookie.NewStore([]byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+### Redis
+
+[embedmd]:# (example/redis/main.go go)
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/redis"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store, _ := redis.NewStore(10, "tcp", "localhost:6379", "", []byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+### Memcached
+
+#### ASCII Protocol
+
+[embedmd]:# (example/memcached/ascii.go go)
+```go
+package main
+
+import (
+ "github.com/bradfitz/gomemcache/memcache"
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/memcached"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store := memcached.NewStore(memcache.New("localhost:11211"), "", []byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+#### Binary protocol (with optional SASL authentication)
+
+[embedmd]:# (example/memcached/binary.go go)
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/memcached"
+ "github.com/gin-gonic/gin"
+ "github.com/memcachier/mc"
+)
+
+func main() {
+ r := gin.Default()
+ client := mc.NewMC("localhost:11211", "username", "password")
+ store := memcached.NewMemcacheStore(client, "", []byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+### MongoDB
+
+[embedmd]:# (example/mongo/main.go go)
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/mongo"
+ "github.com/gin-gonic/gin"
+ "github.com/globalsign/mgo"
+)
+
+func main() {
+ r := gin.Default()
+ session, err := mgo.Dial("localhost:27017/test")
+ if err != nil {
+ // handle err
+ }
+
+ c := session.DB("").C("sessions")
+ store := mongo.NewStore(c, 3600, true, []byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+### memstore
+
+[embedmd]:# (example/memstore/main.go go)
+```go
+package main
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/gin-contrib/sessions/memstore"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ store := memstore.NewStore([]byte("secret"))
+ r.Use(sessions.Sessions("mysession", store))
+
+ r.GET("/incr", func(c *gin.Context) {
+ session := sessions.Default(c)
+ var count int
+ v := session.Get("count")
+ if v == nil {
+ count = 0
+ } else {
+ count = v.(int)
+ count++
+ }
+ session.Set("count", count)
+ session.Save()
+ c.JSON(200, gin.H{"count": count})
+ })
+ r.Run(":8000")
+}
+```
+
+
diff --git a/vendor/github.com/gin-contrib/sessions/go.mod b/vendor/github.com/gin-contrib/sessions/go.mod
new file mode 100644
index 000000000..095ed991b
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/go.mod
@@ -0,0 +1,17 @@
+module github.com/gin-contrib/sessions
+
+go 1.12
+
+require (
+ github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff
+ github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668
+ github.com/bradleypeabody/gorilla-sessions-memcache v0.0.0-20181103040241-659414f458e1
+ github.com/gin-gonic/gin v1.5.0
+ github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
+ github.com/gomodule/redigo v2.0.0+incompatible
+ github.com/gorilla/context v1.1.1
+ github.com/gorilla/sessions v1.1.3
+ github.com/kidstuff/mongostore v0.0.0-20181113001930-e650cd85ee4b
+ github.com/memcachier/mc v2.0.1+incompatible
+ github.com/quasoft/memstore v0.0.0-20180925164028-84a050167438
+)
diff --git a/vendor/github.com/gin-contrib/sessions/go.sum b/vendor/github.com/gin-contrib/sessions/go.sum
new file mode 100644
index 000000000..204ae181c
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/go.sum
@@ -0,0 +1,69 @@
+github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff h1:RmdPFa+slIr4SCBg4st/l/vZWVe9QJKMXGO60Bxbe04=
+github.com/boj/redistore v0.0.0-20180917114910-cd5dcc76aeff/go.mod h1:+RTT1BOk5P97fT2CiHkbFQwkK3mjsFAP6zCYV2aXtjw=
+github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668 h1:U/lr3Dgy4WK+hNk4tyD+nuGjpVLPEHuJSFXMw11/HPA=
+github.com/bradfitz/gomemcache v0.0.0-20190329173943-551aad21a668/go.mod h1:H0wQNHz2YrLsuXOZozoeDmnHXkNCRmMW0gwFWDfEZDA=
+github.com/bradleypeabody/gorilla-sessions-memcache v0.0.0-20181103040241-659414f458e1 h1:4QHxgr7hM4gVD8uOwrk8T1fjkKRLwaLjmTkU0ibhZKU=
+github.com/bradleypeabody/gorilla-sessions-memcache v0.0.0-20181103040241-659414f458e1/go.mod h1:dkChI7Tbtx7H1Tj7TqGSZMOeGpMP5gLHtjroHd4agiI=
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
+github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
+github.com/gin-gonic/gin v1.5.0 h1:fi+bqFAx/oLK54somfCtEZs9HeH1LHVoEPUgARpTqyc=
+github.com/gin-gonic/gin v1.5.0/go.mod h1:Nd6IXA8m5kNZdNEHMBd93KT+mdY3+bewLgRvmCsR2Do=
+github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8 h1:DujepqpGd1hyOd7aW59XpK7Qymp8iy83xq74fLr21is=
+github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8/go.mod h1:xkRDCp4j0OGD1HRkm4kmhM+pmpv3AKq5SU7GMg4oO/Q=
+github.com/go-playground/locales v0.12.1 h1:2FITxuFt/xuCNP1Acdhv62OzaCiviiE4kotfhkmOqEc=
+github.com/go-playground/locales v0.12.1/go.mod h1:IUMDtCfWo/w/mtMfIE/IG2K+Ey3ygWanZIBtBW0W2TM=
+github.com/go-playground/universal-translator v0.16.0 h1:X++omBR/4cE2MNg91AoC3rmGrCjJ8eAeUP/K/EKx4DM=
+github.com/go-playground/universal-translator v0.16.0/go.mod h1:1AnU7NaIRDWWzGEKwgtJRd2xk99HeFyHw3yid4rvQIY=
+github.com/golang/protobuf v1.3.2 h1:6nsPYzhq5kReh6QImI3k5qWzO4PEbvbIW2cwSfR/6xs=
+github.com/golang/protobuf v1.3.2/go.mod h1:6lQm79b+lXiMfvg/cZm0SGofjICqVBUtrP5yJMmIC1U=
+github.com/gomodule/redigo v2.0.0+incompatible h1:K/R+8tc58AaqLkqG2Ol3Qk+DR/TlNuhuh457pBFPtt0=
+github.com/gomodule/redigo v2.0.0+incompatible/go.mod h1:B4C85qUVwatsJoIUNIfCRsp7qO0iAmpGFZ4EELWSbC4=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/gorilla/context v1.1.1 h1:AWwleXJkX/nhcU9bZSnZoi3h/qGYqQAGhq6zZe/aQW8=
+github.com/gorilla/context v1.1.1/go.mod h1:kBGZzfjB9CEq2AlWe17Uuf7NDRt0dE0s8S51q0aT7Yg=
+github.com/gorilla/securecookie v1.1.1 h1:miw7JPhV+b/lAHSXz4qd/nN9jRiAFV5FwjeKyCS8BvQ=
+github.com/gorilla/securecookie v1.1.1/go.mod h1:ra0sb63/xPlUeL+yeDciTfxMRAA+MP+HVt/4epWDjd4=
+github.com/gorilla/sessions v1.1.1/go.mod h1:8KCfur6+4Mqcc6S0FEfKuN15Vl5MgXW92AE8ovaJD0w=
+github.com/gorilla/sessions v1.1.3 h1:uXoZdcdA5XdXF3QzuSlheVRUvjl+1rKY7zBXL68L9RU=
+github.com/gorilla/sessions v1.1.3/go.mod h1:8KCfur6+4Mqcc6S0FEfKuN15Vl5MgXW92AE8ovaJD0w=
+github.com/json-iterator/go v1.1.7 h1:KfgG9LzI+pYjr4xvmz/5H4FXjokeP+rlHLhv3iH62Fo=
+github.com/json-iterator/go v1.1.7/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/kidstuff/mongostore v0.0.0-20181113001930-e650cd85ee4b h1:TLCm7HR+P9HM2NXaAJaIiHerOUMedtFJeAfaYwZ8YhY=
+github.com/kidstuff/mongostore v0.0.0-20181113001930-e650cd85ee4b/go.mod h1:g2nVr8KZVXJSS97Jo8pJ0jgq29P6H7dG0oplUA86MQw=
+github.com/leodido/go-urn v1.1.0 h1:Sm1gr51B1kKyfD2BlRcLSiEkffoG96g6TPv6eRoEiB8=
+github.com/leodido/go-urn v1.1.0/go.mod h1:+cyI34gQWZcE1eQU7NVgKkkzdXDQHr1dBMtdAPozLkw=
+github.com/mattn/go-isatty v0.0.9 h1:d5US/mDsogSGW37IV293h//ZFaeajb69h+EHFsv2xGg=
+github.com/mattn/go-isatty v0.0.9/go.mod h1:YNRxwqDuOph6SZLI9vUUz6OYw3QyUt7WiY2yME+cCiQ=
+github.com/memcachier/mc v2.0.1+incompatible h1:s8EDz0xrJLP8goitwZOoq1vA/sm0fPS4X3KAF0nyhWQ=
+github.com/memcachier/mc v2.0.1+incompatible/go.mod h1:7bkvFE61leUBvXz+yxsOnGBQSZpBSPIMUQSmmSHvuXc=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/quasoft/memstore v0.0.0-20180925164028-84a050167438 h1:jnz/4VenymvySjE+Ez511s0pqVzkUOmr1fwCVytNNWk=
+github.com/quasoft/memstore v0.0.0-20180925164028-84a050167438/go.mod h1:wTPjTepVu7uJBYgZ0SdWHQlIas582j6cn2jgk4DDdlg=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/ugorji/go v1.1.7 h1:/68gy2h+1mWMrwZFeD1kQialdSzAb432dtpeJ42ovdo=
+github.com/ugorji/go v1.1.7/go.mod h1:kZn38zHttfInRq0xu/PH0az30d+z6vm202qpg1oXVMw=
+github.com/ugorji/go/codec v1.1.7 h1:2SvQaVZ1ouYrrKKwoSk2pzd4A9evlKJb9oTL+OaLUSs=
+github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLYF3GoBXY=
+golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a h1:aYOabOQFp6Vj6W1F80affTUvO9UxmJRx8K0gsfABByQ=
+golang.org/x/sys v0.0.0-20190813064441-fde4db37ae7a/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/go-playground/assert.v1 v1.2.1 h1:xoYuJVE7KT85PYWrN730RguIQO0ePzVRfFMXadIrXTM=
+gopkg.in/go-playground/assert.v1 v1.2.1/go.mod h1:9RXL0bg/zibRAgZUYszZSwO/z8Y/a8bDuhia5mkpMnE=
+gopkg.in/go-playground/validator.v9 v9.29.1 h1:SvGtYmN60a5CVKTOzMSyfzWDeZRxRuGvRQyEAKbw1xc=
+gopkg.in/go-playground/validator.v9 v9.29.1/go.mod h1:+c9/zcJMFNgbLvly1L1V+PpxWdVbfP1avr/N00E2vyQ=
+gopkg.in/yaml.v2 v2.2.2 h1:ZCJp+EgiOT7lHqUV2J862kp8Qj64Jo6az82+3Td9dZw=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/gin-contrib/sessions/memstore/memstore.go b/vendor/github.com/gin-contrib/sessions/memstore/memstore.go
new file mode 100644
index 000000000..8826d6dd4
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/memstore/memstore.go
@@ -0,0 +1,31 @@
+package memstore
+
+import (
+ "github.com/gin-contrib/sessions"
+ "github.com/quasoft/memstore"
+)
+
+type Store interface {
+ sessions.Store
+}
+
+// Keys are defined in pairs to allow key rotation, but the common case is to set a single
+// authentication key and optionally an encryption key.
+//
+// The first key in a pair is used for authentication and the second for encryption. The
+// encryption key can be set to nil or omitted in the last pair, but the authentication key
+// is required in all pairs.
+//
+// It is recommended to use an authentication key with 32 or 64 bytes. The encryption key,
+// if set, must be either 16, 24, or 32 bytes to select AES-128, AES-192, or AES-256 modes.
+func NewStore(keyPairs ...[]byte) Store {
+ return &store{memstore.NewMemStore(keyPairs...)}
+}
+
+type store struct {
+ *memstore.MemStore
+}
+
+func (c *store) Options(options sessions.Options) {
+ c.MemStore.Options = options.ToGorillaOptions()
+}
diff --git a/vendor/github.com/gin-contrib/sessions/session_options_go1.10.go b/vendor/github.com/gin-contrib/sessions/session_options_go1.10.go
new file mode 100644
index 000000000..623473e8a
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/session_options_go1.10.go
@@ -0,0 +1,30 @@
+// +build !go1.11
+
+package sessions
+
+import (
+ gsessions "github.com/gorilla/sessions"
+)
+
+// Options stores configuration for a session or session store.
+// Fields are a subset of http.Cookie fields.
+type Options struct {
+ Path string
+ Domain string
+ // MaxAge=0 means no 'Max-Age' attribute specified.
+ // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
+ // MaxAge>0 means Max-Age attribute present and given in seconds.
+ MaxAge int
+ Secure bool
+ HttpOnly bool
+}
+
+func (options Options) ToGorillaOptions() *gsessions.Options {
+ return &gsessions.Options{
+ Path: options.Path,
+ Domain: options.Domain,
+ MaxAge: options.MaxAge,
+ Secure: options.Secure,
+ HttpOnly: options.HttpOnly,
+ }
+}
diff --git a/vendor/github.com/gin-contrib/sessions/session_options_go1.11.go b/vendor/github.com/gin-contrib/sessions/session_options_go1.11.go
new file mode 100644
index 000000000..02b2e5e72
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/session_options_go1.11.go
@@ -0,0 +1,36 @@
+// +build go1.11
+
+package sessions
+
+import (
+ gsessions "github.com/gorilla/sessions"
+ "net/http"
+)
+
+// Options stores configuration for a session or session store.
+// Fields are a subset of http.Cookie fields.
+type Options struct {
+ Path string
+ Domain string
+ // MaxAge=0 means no 'Max-Age' attribute specified.
+ // MaxAge<0 means delete cookie now, equivalently 'Max-Age: 0'.
+ // MaxAge>0 means Max-Age attribute present and given in seconds.
+ MaxAge int
+ Secure bool
+ HttpOnly bool
+ // rfc-draft to preventing CSRF: https://tools.ietf.org/html/draft-west-first-party-cookies-07
+ // refer: https://godoc.org/net/http
+ // https://www.sjoerdlangkemper.nl/2016/04/14/preventing-csrf-with-samesite-cookie-attribute/
+ SameSite http.SameSite
+}
+
+func (options Options) ToGorillaOptions() *gsessions.Options {
+ return &gsessions.Options{
+ Path: options.Path,
+ Domain: options.Domain,
+ MaxAge: options.MaxAge,
+ Secure: options.Secure,
+ HttpOnly: options.HttpOnly,
+ SameSite: options.SameSite,
+ }
+}
diff --git a/vendor/github.com/gin-contrib/sessions/sessions.go b/vendor/github.com/gin-contrib/sessions/sessions.go
new file mode 100644
index 000000000..8972e2321
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sessions/sessions.go
@@ -0,0 +1,145 @@
+package sessions
+
+import (
+ "log"
+ "net/http"
+
+ "github.com/gin-gonic/gin"
+ "github.com/gorilla/context"
+ "github.com/gorilla/sessions"
+)
+
+const (
+ DefaultKey = "github.com/gin-contrib/sessions"
+ errorFormat = "[sessions] ERROR! %s\n"
+)
+
+type Store interface {
+ sessions.Store
+ Options(Options)
+}
+
+// Wraps thinly gorilla-session methods.
+// Session stores the values and optional configuration for a session.
+type Session interface {
+ // Get returns the session value associated to the given key.
+ Get(key interface{}) interface{}
+ // Set sets the session value associated to the given key.
+ Set(key interface{}, val interface{})
+ // Delete removes the session value associated to the given key.
+ Delete(key interface{})
+ // Clear deletes all values in the session.
+ Clear()
+ // AddFlash adds a flash message to the session.
+ // A single variadic argument is accepted, and it is optional: it defines the flash key.
+ // If not defined "_flash" is used by default.
+ AddFlash(value interface{}, vars ...string)
+ // Flashes returns a slice of flash messages from the session.
+ // A single variadic argument is accepted, and it is optional: it defines the flash key.
+ // If not defined "_flash" is used by default.
+ Flashes(vars ...string) []interface{}
+ // Options sets configuration for a session.
+ Options(Options)
+ // Save saves all sessions used during the current request.
+ Save() error
+}
+
+func Sessions(name string, store Store) gin.HandlerFunc {
+ return func(c *gin.Context) {
+ s := &session{name, c.Request, store, nil, false, c.Writer}
+ c.Set(DefaultKey, s)
+ defer context.Clear(c.Request)
+ c.Next()
+ }
+}
+
+func SessionsMany(names []string, store Store) gin.HandlerFunc {
+ return func(c *gin.Context) {
+ sessions := make(map[string]Session, len(names))
+ for _, name := range names {
+ sessions[name] = &session{name, c.Request, store, nil, false, c.Writer}
+ }
+ c.Set(DefaultKey, sessions)
+ defer context.Clear(c.Request)
+ c.Next()
+ }
+}
+
+type session struct {
+ name string
+ request *http.Request
+ store Store
+ session *sessions.Session
+ written bool
+ writer http.ResponseWriter
+}
+
+func (s *session) Get(key interface{}) interface{} {
+ return s.Session().Values[key]
+}
+
+func (s *session) Set(key interface{}, val interface{}) {
+ s.Session().Values[key] = val
+ s.written = true
+}
+
+func (s *session) Delete(key interface{}) {
+ delete(s.Session().Values, key)
+ s.written = true
+}
+
+func (s *session) Clear() {
+ for key := range s.Session().Values {
+ s.Delete(key)
+ }
+}
+
+func (s *session) AddFlash(value interface{}, vars ...string) {
+ s.Session().AddFlash(value, vars...)
+ s.written = true
+}
+
+func (s *session) Flashes(vars ...string) []interface{} {
+ s.written = true
+ return s.Session().Flashes(vars...)
+}
+
+func (s *session) Options(options Options) {
+ s.Session().Options = options.ToGorillaOptions()
+}
+
+func (s *session) Save() error {
+ if s.Written() {
+ e := s.Session().Save(s.request, s.writer)
+ if e == nil {
+ s.written = false
+ }
+ return e
+ }
+ return nil
+}
+
+func (s *session) Session() *sessions.Session {
+ if s.session == nil {
+ var err error
+ s.session, err = s.store.Get(s.request, s.name)
+ if err != nil {
+ log.Printf(errorFormat, err)
+ }
+ }
+ return s.session
+}
+
+func (s *session) Written() bool {
+ return s.written
+}
+
+// shortcut to get session
+func Default(c *gin.Context) Session {
+ return c.MustGet(DefaultKey).(Session)
+}
+
+// shortcut to get session with given name
+func DefaultMany(c *gin.Context, name string) Session {
+ return c.MustGet(DefaultKey).(map[string]Session)[name]
+}
diff --git a/vendor/github.com/gin-contrib/sse/.travis.yml b/vendor/github.com/gin-contrib/sse/.travis.yml
new file mode 100644
index 000000000..d0e8fcf99
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/.travis.yml
@@ -0,0 +1,26 @@
+language: go
+sudo: false
+go:
+ - 1.8.x
+ - 1.9.x
+ - 1.10.x
+ - 1.11.x
+ - 1.12.x
+ - master
+
+git:
+ depth: 10
+
+matrix:
+ fast_finish: true
+ include:
+ - go: 1.11.x
+ env: GO111MODULE=on
+ - go: 1.12.x
+ env: GO111MODULE=on
+
+script:
+ - go test -v -covermode=count -coverprofile=coverage.out
+
+after_success:
+ - bash <(curl -s https://codecov.io/bash)
diff --git a/vendor/github.com/gin-contrib/sse/LICENSE b/vendor/github.com/gin-contrib/sse/LICENSE
new file mode 100644
index 000000000..1ff7f3706
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Manuel Martínez-Almeida
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/vendor/github.com/gin-contrib/sse/README.md b/vendor/github.com/gin-contrib/sse/README.md
new file mode 100644
index 000000000..c9c49cf94
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/README.md
@@ -0,0 +1,58 @@
+# Server-Sent Events
+
+[![GoDoc](https://godoc.org/github.com/gin-contrib/sse?status.svg)](https://godoc.org/github.com/gin-contrib/sse)
+[![Build Status](https://travis-ci.org/gin-contrib/sse.svg)](https://travis-ci.org/gin-contrib/sse)
+[![codecov](https://codecov.io/gh/gin-contrib/sse/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-contrib/sse)
+[![Go Report Card](https://goreportcard.com/badge/github.com/gin-contrib/sse)](https://goreportcard.com/report/github.com/gin-contrib/sse)
+
+Server-sent events (SSE) is a technology where a browser receives automatic updates from a server via HTTP connection. The Server-Sent Events EventSource API is [standardized as part of HTML5[1] by the W3C](http://www.w3.org/TR/2009/WD-eventsource-20091029/).
+
+- [Read this great SSE introduction by the HTML5Rocks guys](http://www.html5rocks.com/en/tutorials/eventsource/basics/)
+- [Browser support](http://caniuse.com/#feat=eventsource)
+
+## Sample code
+
+```go
+import "github.com/gin-contrib/sse"
+
+func httpHandler(w http.ResponseWriter, req *http.Request) {
+ // data can be a primitive like a string, an integer or a float
+ sse.Encode(w, sse.Event{
+ Event: "message",
+ Data: "some data\nmore data",
+ })
+
+ // also a complex type, like a map, a struct or a slice
+ sse.Encode(w, sse.Event{
+ Id: "124",
+ Event: "message",
+ Data: map[string]interface{}{
+ "user": "manu",
+ "date": time.Now().Unix(),
+ "content": "hi!",
+ },
+ })
+}
+```
+```
+event: message
+data: some data\\nmore data
+
+id: 124
+event: message
+data: {"content":"hi!","date":1431540810,"user":"manu"}
+
+```
+
+## Content-Type
+
+```go
+fmt.Println(sse.ContentType)
+```
+```
+text/event-stream
+```
+
+## Decoding support
+
+There is a client-side implementation of SSE coming soon.
diff --git a/vendor/github.com/gin-contrib/sse/go.mod b/vendor/github.com/gin-contrib/sse/go.mod
new file mode 100644
index 000000000..b9c03f47d
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/go.mod
@@ -0,0 +1,5 @@
+module github.com/gin-contrib/sse
+
+go 1.12
+
+require github.com/stretchr/testify v1.3.0
diff --git a/vendor/github.com/gin-contrib/sse/go.sum b/vendor/github.com/gin-contrib/sse/go.sum
new file mode 100644
index 000000000..4347755af
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/go.sum
@@ -0,0 +1,7 @@
+github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
diff --git a/vendor/github.com/gin-contrib/sse/sse-decoder.go b/vendor/github.com/gin-contrib/sse/sse-decoder.go
new file mode 100644
index 000000000..fd49b9c37
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/sse-decoder.go
@@ -0,0 +1,116 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package sse
+
+import (
+ "bytes"
+ "io"
+ "io/ioutil"
+)
+
+type decoder struct {
+ events []Event
+}
+
+func Decode(r io.Reader) ([]Event, error) {
+ var dec decoder
+ return dec.decode(r)
+}
+
+func (d *decoder) dispatchEvent(event Event, data string) {
+ dataLength := len(data)
+ if dataLength > 0 {
+ //If the data buffer's last character is a U+000A LINE FEED (LF) character, then remove the last character from the data buffer.
+ data = data[:dataLength-1]
+ dataLength--
+ }
+ if dataLength == 0 && event.Event == "" {
+ return
+ }
+ if event.Event == "" {
+ event.Event = "message"
+ }
+ event.Data = data
+ d.events = append(d.events, event)
+}
+
+func (d *decoder) decode(r io.Reader) ([]Event, error) {
+ buf, err := ioutil.ReadAll(r)
+ if err != nil {
+ return nil, err
+ }
+
+ var currentEvent Event
+ var dataBuffer *bytes.Buffer = new(bytes.Buffer)
+ // TODO (and unit tests)
+ // Lines must be separated by either a U+000D CARRIAGE RETURN U+000A LINE FEED (CRLF) character pair,
+ // a single U+000A LINE FEED (LF) character,
+ // or a single U+000D CARRIAGE RETURN (CR) character.
+ lines := bytes.Split(buf, []byte{'\n'})
+ for _, line := range lines {
+ if len(line) == 0 {
+ // If the line is empty (a blank line). Dispatch the event.
+ d.dispatchEvent(currentEvent, dataBuffer.String())
+
+ // reset current event and data buffer
+ currentEvent = Event{}
+ dataBuffer.Reset()
+ continue
+ }
+ if line[0] == byte(':') {
+ // If the line starts with a U+003A COLON character (:), ignore the line.
+ continue
+ }
+
+ var field, value []byte
+ colonIndex := bytes.IndexRune(line, ':')
+ if colonIndex != -1 {
+ // If the line contains a U+003A COLON character character (:)
+ // Collect the characters on the line before the first U+003A COLON character (:),
+ // and let field be that string.
+ field = line[:colonIndex]
+ // Collect the characters on the line after the first U+003A COLON character (:),
+ // and let value be that string.
+ value = line[colonIndex+1:]
+ // If value starts with a single U+0020 SPACE character, remove it from value.
+ if len(value) > 0 && value[0] == ' ' {
+ value = value[1:]
+ }
+ } else {
+ // Otherwise, the string is not empty but does not contain a U+003A COLON character character (:)
+ // Use the whole line as the field name, and the empty string as the field value.
+ field = line
+ value = []byte{}
+ }
+ // The steps to process the field given a field name and a field value depend on the field name,
+ // as given in the following list. Field names must be compared literally,
+ // with no case folding performed.
+ switch string(field) {
+ case "event":
+ // Set the event name buffer to field value.
+ currentEvent.Event = string(value)
+ case "id":
+ // Set the event stream's last event ID to the field value.
+ currentEvent.Id = string(value)
+ case "retry":
+ // If the field value consists of only characters in the range U+0030 DIGIT ZERO (0) to U+0039 DIGIT NINE (9),
+ // then interpret the field value as an integer in base ten, and set the event stream's reconnection time to that integer.
+ // Otherwise, ignore the field.
+ currentEvent.Id = string(value)
+ case "data":
+ // Append the field value to the data buffer,
+ dataBuffer.Write(value)
+ // then append a single U+000A LINE FEED (LF) character to the data buffer.
+ dataBuffer.WriteString("\n")
+ default:
+ //Otherwise. The field is ignored.
+ continue
+ }
+ }
+ // Once the end of the file is reached, the user agent must dispatch the event one final time.
+ d.dispatchEvent(currentEvent, dataBuffer.String())
+
+ return d.events, nil
+}
diff --git a/vendor/github.com/gin-contrib/sse/sse-encoder.go b/vendor/github.com/gin-contrib/sse/sse-encoder.go
new file mode 100644
index 000000000..f9c808750
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/sse-encoder.go
@@ -0,0 +1,110 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package sse
+
+import (
+ "encoding/json"
+ "fmt"
+ "io"
+ "net/http"
+ "reflect"
+ "strconv"
+ "strings"
+)
+
+// Server-Sent Events
+// W3C Working Draft 29 October 2009
+// http://www.w3.org/TR/2009/WD-eventsource-20091029/
+
+const ContentType = "text/event-stream"
+
+var contentType = []string{ContentType}
+var noCache = []string{"no-cache"}
+
+var fieldReplacer = strings.NewReplacer(
+ "\n", "\\n",
+ "\r", "\\r")
+
+var dataReplacer = strings.NewReplacer(
+ "\n", "\ndata:",
+ "\r", "\\r")
+
+type Event struct {
+ Event string
+ Id string
+ Retry uint
+ Data interface{}
+}
+
+func Encode(writer io.Writer, event Event) error {
+ w := checkWriter(writer)
+ writeId(w, event.Id)
+ writeEvent(w, event.Event)
+ writeRetry(w, event.Retry)
+ return writeData(w, event.Data)
+}
+
+func writeId(w stringWriter, id string) {
+ if len(id) > 0 {
+ w.WriteString("id:")
+ fieldReplacer.WriteString(w, id)
+ w.WriteString("\n")
+ }
+}
+
+func writeEvent(w stringWriter, event string) {
+ if len(event) > 0 {
+ w.WriteString("event:")
+ fieldReplacer.WriteString(w, event)
+ w.WriteString("\n")
+ }
+}
+
+func writeRetry(w stringWriter, retry uint) {
+ if retry > 0 {
+ w.WriteString("retry:")
+ w.WriteString(strconv.FormatUint(uint64(retry), 10))
+ w.WriteString("\n")
+ }
+}
+
+func writeData(w stringWriter, data interface{}) error {
+ w.WriteString("data:")
+ switch kindOfData(data) {
+ case reflect.Struct, reflect.Slice, reflect.Map:
+ err := json.NewEncoder(w).Encode(data)
+ if err != nil {
+ return err
+ }
+ w.WriteString("\n")
+ default:
+ dataReplacer.WriteString(w, fmt.Sprint(data))
+ w.WriteString("\n\n")
+ }
+ return nil
+}
+
+func (r Event) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+ return Encode(w, r)
+}
+
+func (r Event) WriteContentType(w http.ResponseWriter) {
+ header := w.Header()
+ header["Content-Type"] = contentType
+
+ if _, exist := header["Cache-Control"]; !exist {
+ header["Cache-Control"] = noCache
+ }
+}
+
+func kindOfData(data interface{}) reflect.Kind {
+ value := reflect.ValueOf(data)
+ valueType := value.Kind()
+ if valueType == reflect.Ptr {
+ valueType = value.Elem().Kind()
+ }
+ return valueType
+}
diff --git a/vendor/github.com/gin-contrib/sse/writer.go b/vendor/github.com/gin-contrib/sse/writer.go
new file mode 100644
index 000000000..6f9806c55
--- /dev/null
+++ b/vendor/github.com/gin-contrib/sse/writer.go
@@ -0,0 +1,24 @@
+package sse
+
+import "io"
+
+type stringWriter interface {
+ io.Writer
+ WriteString(string) (int, error)
+}
+
+type stringWrapper struct {
+ io.Writer
+}
+
+func (w stringWrapper) WriteString(str string) (int, error) {
+ return w.Writer.Write([]byte(str))
+}
+
+func checkWriter(writer io.Writer) stringWriter {
+ if w, ok := writer.(stringWriter); ok {
+ return w
+ } else {
+ return stringWrapper{writer}
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/.gitignore b/vendor/github.com/gin-gonic/gin/.gitignore
new file mode 100644
index 000000000..bdd50c95c
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/.gitignore
@@ -0,0 +1,7 @@
+vendor/*
+!vendor/vendor.json
+coverage.out
+count.out
+test
+profile.out
+tmp.out
diff --git a/vendor/github.com/gin-gonic/gin/AUTHORS.md b/vendor/github.com/gin-gonic/gin/AUTHORS.md
new file mode 100644
index 000000000..c634e6be0
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/AUTHORS.md
@@ -0,0 +1,233 @@
+List of all the awesome people working to make Gin the best Web Framework in Go.
+
+## gin 1.x series authors
+
+**Gin Core Team:** Bo-Yi Wu (@appleboy), 田欧 (@thinkerou), Javier Provecho (@javierprovecho)
+
+## gin 0.x series authors
+
+**Maintainers:** Manu Martinez-Almeida (@manucorporat), Javier Provecho (@javierprovecho)
+
+People and companies, who have contributed, in alphabetical order.
+
+**@858806258 (杰哥)**
+- Fix typo in example
+
+
+**@achedeuzot (Klemen Sever)**
+- Fix newline debug printing
+
+
+**@adammck (Adam Mckaig)**
+- Add MIT license
+
+
+**@AlexanderChen1989 (Alexander)**
+- Typos in README
+
+
+**@alexanderdidenko (Aleksandr Didenko)**
+- Add support multipart/form-data
+
+
+**@alexandernyquist (Alexander Nyquist)**
+- Using template.Must to fix multiple return issue
+- ★ Added support for OPTIONS verb
+- ★ Setting response headers before calling WriteHeader
+- Improved documentation for model binding
+- ★ Added Content.Redirect()
+- ★ Added tons of Unit tests
+
+
+**@austinheap (Austin Heap)**
+- Added travis CI integration
+
+
+**@andredublin (Andre Dublin)**
+- Fix typo in comment
+
+
+**@bredov (Ludwig Valda Vasquez)**
+- Fix html templating in debug mode
+
+
+**@bluele (Jun Kimura)**
+- Fixes code examples in README
+
+
+**@chad-russell**
+- ★ Support for serializing gin.H into XML
+
+
+**@dickeyxxx (Jeff Dickey)**
+- Typos in README
+- Add example about serving static files
+
+
+**@donileo (Adonis)**
+- Add NoMethod handler
+
+
+**@dutchcoders (DutchCoders)**
+- ★ Fix security bug that allows client to spoof ip
+- Fix typo. r.HTMLTemplates -> SetHTMLTemplate
+
+
+**@el3ctro- (Joshua Loper)**
+- Fix typo in example
+
+
+**@ethankan (Ethan Kan)**
+- Unsigned integers in binding
+
+
+**(Evgeny Persienko)**
+- Validate sub structures
+
+
+**@frankbille (Frank Bille)**
+- Add support for HTTP Realm Auth
+
+
+**@fmd (Fareed Dudhia)**
+- Fix typo. SetHTTPTemplate -> SetHTMLTemplate
+
+
+**@ironiridis (Christopher Harrington)**
+- Remove old reference
+
+
+**@jammie-stackhouse (Jamie Stackhouse)**
+- Add more shortcuts for router methods
+
+
+**@jasonrhansen**
+- Fix spelling and grammar errors in documentation
+
+
+**@JasonSoft (Jason Lee)**
+- Fix typo in comment
+
+
+**@joiggama (Ignacio Galindo)**
+- Add utf-8 charset header on renders
+
+
+**@julienschmidt (Julien Schmidt)**
+- gofmt the code examples
+
+
+**@kelcecil (Kel Cecil)**
+- Fix readme typo
+
+
+**@kyledinh (Kyle Dinh)**
+- Adds RunTLS()
+
+
+**@LinusU (Linus Unnebäck)**
+- Small fixes in README
+
+
+**@loongmxbt (Saint Asky)**
+- Fix typo in example
+
+
+**@lucas-clemente (Lucas Clemente)**
+- ★ work around path.Join removing trailing slashes from routes
+
+
+**@mattn (Yasuhiro Matsumoto)**
+- Improve color logger
+
+
+**@mdigger (Dmitry Sedykh)**
+- Fixes Form binding when content-type is x-www-form-urlencoded
+- No repeat call c.Writer.Status() in gin.Logger
+- Fixes Content-Type for json render
+
+
+**@mirzac (Mirza Ceric)**
+- Fix debug printing
+
+
+**@mopemope (Yutaka Matsubara)**
+- ★ Adds Godep support (Dependencies Manager)
+- Fix variadic parameter in the flexible render API
+- Fix Corrupted plain render
+- Add Pluggable View Renderer Example
+
+
+**@msemenistyi (Mykyta Semenistyi)**
+- update Readme.md. Add code to String method
+
+
+**@msoedov (Sasha Myasoedov)**
+- ★ Adds tons of unit tests.
+
+
+**@ngerakines (Nick Gerakines)**
+- ★ Improves API, c.GET() doesn't panic
+- Adds MustGet() method
+
+
+**@r8k (Rajiv Kilaparti)**
+- Fix Port usage in README.
+
+
+**@rayrod2030 (Ray Rodriguez)**
+- Fix typo in example
+
+
+**@rns**
+- Fix typo in example
+
+
+**@RobAWilkinson (Robert Wilkinson)**
+- Add example of forms and params
+
+
+**@rogierlommers (Rogier Lommers)**
+- Add updated static serve example
+
+**@rw-access (Ross Wolf)**
+- Added support to mix exact and param routes
+
+**@se77en (Damon Zhao)**
+- Improve color logging
+
+
+**@silasb (Silas Baronda)**
+- Fixing quotes in README
+
+
+**@SkuliOskarsson (Skuli Oskarsson)**
+- Fixes some texts in README II
+
+
+**@slimmy (Jimmy Pettersson)**
+- Added messages for required bindings
+
+
+**@smira (Andrey Smirnov)**
+- Add support for ignored/unexported fields in binding
+
+
+**@superalsrk (SRK.Lyu)**
+- Update httprouter godeps
+
+
+**@tebeka (Miki Tebeka)**
+- Use net/http constants instead of numeric values
+
+
+**@techjanitor**
+- Update context.go reserved IPs
+
+
+**@yosssi (Keiji Yoshida)**
+- Fix link in README
+
+
+**@yuyabee**
+- Fixed README
diff --git a/vendor/github.com/gin-gonic/gin/BENCHMARKS.md b/vendor/github.com/gin-gonic/gin/BENCHMARKS.md
new file mode 100644
index 000000000..c11ee99ae
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/BENCHMARKS.md
@@ -0,0 +1,666 @@
+
+# Benchmark System
+
+**VM HOST:** Travis
+**Machine:** Ubuntu 16.04.6 LTS x64
+**Date:** May 04th, 2020
+**Version:** Gin v1.6.3
+**Go Version:** 1.14.2 linux/amd64
+**Source:** [Go HTTP Router Benchmark](https://github.com/gin-gonic/go-http-routing-benchmark)
+**Result:** [See the gist](https://gist.github.com/appleboy/b5f2ecfaf50824ae9c64dcfb9165ae5e) or [Travis result](https://travis-ci.org/github/gin-gonic/go-http-routing-benchmark/jobs/682947061)
+
+## Static Routes: 157
+
+```sh
+Gin: 34936 Bytes
+
+HttpServeMux: 14512 Bytes
+Ace: 30680 Bytes
+Aero: 34536 Bytes
+Bear: 30456 Bytes
+Beego: 98456 Bytes
+Bone: 40224 Bytes
+Chi: 83608 Bytes
+Denco: 10216 Bytes
+Echo: 80328 Bytes
+GocraftWeb: 55288 Bytes
+Goji: 29744 Bytes
+Gojiv2: 105840 Bytes
+GoJsonRest: 137496 Bytes
+GoRestful: 816936 Bytes
+GorillaMux: 585632 Bytes
+GowwwRouter: 24968 Bytes
+HttpRouter: 21712 Bytes
+HttpTreeMux: 73448 Bytes
+Kocha: 115472 Bytes
+LARS: 30640 Bytes
+Macaron: 38592 Bytes
+Martini: 310864 Bytes
+Pat: 19696 Bytes
+Possum: 89920 Bytes
+R2router: 23712 Bytes
+Rivet: 24608 Bytes
+Tango: 28264 Bytes
+TigerTonic: 78768 Bytes
+Traffic: 538976 Bytes
+Vulcan: 369960 Bytes
+```
+
+## GithubAPI Routes: 203
+
+```sh
+Gin: 58512 Bytes
+
+Ace: 48688 Bytes
+Aero: 318568 Bytes
+Bear: 84248 Bytes
+Beego: 150936 Bytes
+Bone: 100976 Bytes
+Chi: 95112 Bytes
+Denco: 36736 Bytes
+Echo: 100296 Bytes
+GocraftWeb: 95432 Bytes
+Goji: 49680 Bytes
+Gojiv2: 104704 Bytes
+GoJsonRest: 141976 Bytes
+GoRestful: 1241656 Bytes
+GorillaMux: 1322784 Bytes
+GowwwRouter: 80008 Bytes
+HttpRouter: 37144 Bytes
+HttpTreeMux: 78800 Bytes
+Kocha: 785120 Bytes
+LARS: 48600 Bytes
+Macaron: 92784 Bytes
+Martini: 485264 Bytes
+Pat: 21200 Bytes
+Possum: 85312 Bytes
+R2router: 47104 Bytes
+Rivet: 42840 Bytes
+Tango: 54840 Bytes
+TigerTonic: 95264 Bytes
+Traffic: 921744 Bytes
+Vulcan: 425992 Bytes
+```
+
+## GPlusAPI Routes: 13
+
+```sh
+Gin: 4384 Bytes
+
+Ace: 3712 Bytes
+Aero: 26056 Bytes
+Bear: 7112 Bytes
+Beego: 10272 Bytes
+Bone: 6688 Bytes
+Chi: 8024 Bytes
+Denco: 3264 Bytes
+Echo: 9688 Bytes
+GocraftWeb: 7496 Bytes
+Goji: 3152 Bytes
+Gojiv2: 7376 Bytes
+GoJsonRest: 11400 Bytes
+GoRestful: 74328 Bytes
+GorillaMux: 66208 Bytes
+GowwwRouter: 5744 Bytes
+HttpRouter: 2808 Bytes
+HttpTreeMux: 7440 Bytes
+Kocha: 128880 Bytes
+LARS: 3656 Bytes
+Macaron: 8656 Bytes
+Martini: 23920 Bytes
+Pat: 1856 Bytes
+Possum: 7248 Bytes
+R2router: 3928 Bytes
+Rivet: 3064 Bytes
+Tango: 5168 Bytes
+TigerTonic: 9408 Bytes
+Traffic: 46400 Bytes
+Vulcan: 25544 Bytes
+```
+
+## ParseAPI Routes: 26
+
+```sh
+Gin: 7776 Bytes
+
+Ace: 6704 Bytes
+Aero: 28488 Bytes
+Bear: 12320 Bytes
+Beego: 19280 Bytes
+Bone: 11440 Bytes
+Chi: 9744 Bytes
+Denco: 4192 Bytes
+Echo: 11664 Bytes
+GocraftWeb: 12800 Bytes
+Goji: 5680 Bytes
+Gojiv2: 14464 Bytes
+GoJsonRest: 14072 Bytes
+GoRestful: 116264 Bytes
+GorillaMux: 105880 Bytes
+GowwwRouter: 9344 Bytes
+HttpRouter: 5072 Bytes
+HttpTreeMux: 7848 Bytes
+Kocha: 181712 Bytes
+LARS: 6632 Bytes
+Macaron: 13648 Bytes
+Martini: 45888 Bytes
+Pat: 2560 Bytes
+Possum: 9200 Bytes
+R2router: 7056 Bytes
+Rivet: 5680 Bytes
+Tango: 8920 Bytes
+TigerTonic: 9840 Bytes
+Traffic: 79096 Bytes
+Vulcan: 44504 Bytes
+```
+
+## Static Routes
+
+```sh
+BenchmarkGin_StaticAll 62169 19319 ns/op 0 B/op 0 allocs/op
+
+BenchmarkAce_StaticAll 65428 18313 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_StaticAll 121132 9632 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpServeMux_StaticAll 52626 22758 ns/op 0 B/op 0 allocs/op
+BenchmarkBeego_StaticAll 9962 179058 ns/op 55264 B/op 471 allocs/op
+BenchmarkBear_StaticAll 14894 80966 ns/op 20272 B/op 469 allocs/op
+BenchmarkBone_StaticAll 18718 64065 ns/op 0 B/op 0 allocs/op
+BenchmarkChi_StaticAll 10000 149827 ns/op 67824 B/op 471 allocs/op
+BenchmarkDenco_StaticAll 211393 5680 ns/op 0 B/op 0 allocs/op
+BenchmarkEcho_StaticAll 49341 24343 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_StaticAll 10000 126209 ns/op 46312 B/op 785 allocs/op
+BenchmarkGoji_StaticAll 27956 43174 ns/op 0 B/op 0 allocs/op
+BenchmarkGojiv2_StaticAll 3430 370718 ns/op 205984 B/op 1570 allocs/op
+BenchmarkGoJsonRest_StaticAll 9134 188888 ns/op 51653 B/op 1727 allocs/op
+BenchmarkGoRestful_StaticAll 706 1703330 ns/op 613280 B/op 2053 allocs/op
+BenchmarkGorillaMux_StaticAll 1268 924083 ns/op 153233 B/op 1413 allocs/op
+BenchmarkGowwwRouter_StaticAll 63374 18935 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpRouter_StaticAll 109938 10902 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_StaticAll 109166 10861 ns/op 0 B/op 0 allocs/op
+BenchmarkKocha_StaticAll 92258 12992 ns/op 0 B/op 0 allocs/op
+BenchmarkLARS_StaticAll 65200 18387 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_StaticAll 5671 291501 ns/op 115553 B/op 1256 allocs/op
+BenchmarkMartini_StaticAll 807 1460498 ns/op 125444 B/op 1717 allocs/op
+BenchmarkPat_StaticAll 513 2342396 ns/op 602832 B/op 12559 allocs/op
+BenchmarkPossum_StaticAll 10000 128270 ns/op 65312 B/op 471 allocs/op
+BenchmarkR2router_StaticAll 16726 71760 ns/op 22608 B/op 628 allocs/op
+BenchmarkRivet_StaticAll 41722 28723 ns/op 0 B/op 0 allocs/op
+BenchmarkTango_StaticAll 7606 205082 ns/op 39209 B/op 1256 allocs/op
+BenchmarkTigerTonic_StaticAll 26247 45806 ns/op 7376 B/op 157 allocs/op
+BenchmarkTraffic_StaticAll 550 2284518 ns/op 754864 B/op 14601 allocs/op
+BenchmarkVulcan_StaticAll 10000 131343 ns/op 15386 B/op 471 allocs/op
+```
+
+## Micro Benchmarks
+
+```sh
+BenchmarkGin_Param 18785022 63.9 ns/op 0 B/op 0 allocs/op
+
+BenchmarkAce_Param 14689765 81.5 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_Param 23094770 51.2 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_Param 1417045 845 ns/op 456 B/op 5 allocs/op
+BenchmarkBeego_Param 1000000 1080 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_Param 1000000 1463 ns/op 816 B/op 6 allocs/op
+BenchmarkChi_Param 1378756 885 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_Param 8557899 143 ns/op 32 B/op 1 allocs/op
+BenchmarkEcho_Param 16433347 75.5 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_Param 1000000 1218 ns/op 648 B/op 8 allocs/op
+BenchmarkGoji_Param 1921248 617 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_Param 561848 2156 ns/op 1328 B/op 11 allocs/op
+BenchmarkGoJsonRest_Param 1000000 1358 ns/op 649 B/op 13 allocs/op
+BenchmarkGoRestful_Param 224857 5307 ns/op 4192 B/op 14 allocs/op
+BenchmarkGorillaMux_Param 498313 2459 ns/op 1280 B/op 10 allocs/op
+BenchmarkGowwwRouter_Param 1864354 654 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_Param 26269074 47.7 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_Param 2109829 557 ns/op 352 B/op 3 allocs/op
+BenchmarkKocha_Param 5050216 243 ns/op 56 B/op 3 allocs/op
+BenchmarkLARS_Param 19811712 59.9 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_Param 662746 2329 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_Param 279902 4260 ns/op 1072 B/op 10 allocs/op
+BenchmarkPat_Param 1000000 1382 ns/op 536 B/op 11 allocs/op
+BenchmarkPossum_Param 1000000 1014 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_Param 1712559 707 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_Param 6648086 182 ns/op 48 B/op 1 allocs/op
+BenchmarkTango_Param 1221504 994 ns/op 248 B/op 8 allocs/op
+BenchmarkTigerTonic_Param 891661 2261 ns/op 776 B/op 16 allocs/op
+BenchmarkTraffic_Param 350059 3598 ns/op 1856 B/op 21 allocs/op
+BenchmarkVulcan_Param 2517823 472 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_Param5 9214365 130 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_Param5 15369013 77.9 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_Param5 1000000 1113 ns/op 501 B/op 5 allocs/op
+BenchmarkBeego_Param5 1000000 1269 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_Param5 986820 1873 ns/op 864 B/op 6 allocs/op
+BenchmarkChi_Param5 1000000 1156 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_Param5 3036331 400 ns/op 160 B/op 1 allocs/op
+BenchmarkEcho_Param5 6447133 186 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_Param5 10786068 110 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_Param5 844820 1944 ns/op 920 B/op 11 allocs/op
+BenchmarkGoji_Param5 1474965 827 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_Param5 442820 2516 ns/op 1392 B/op 11 allocs/op
+BenchmarkGoJsonRest_Param5 507555 2711 ns/op 1097 B/op 16 allocs/op
+BenchmarkGoRestful_Param5 216481 6093 ns/op 4288 B/op 14 allocs/op
+BenchmarkGorillaMux_Param5 314402 3628 ns/op 1344 B/op 10 allocs/op
+BenchmarkGowwwRouter_Param5 1624660 733 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_Param5 13167324 92.0 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_Param5 1000000 1295 ns/op 576 B/op 6 allocs/op
+BenchmarkKocha_Param5 1000000 1138 ns/op 440 B/op 10 allocs/op
+BenchmarkLARS_Param5 11580613 105 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_Param5 473596 2755 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_Param5 230756 5111 ns/op 1232 B/op 11 allocs/op
+BenchmarkPat_Param5 469190 3370 ns/op 888 B/op 29 allocs/op
+BenchmarkPossum_Param5 1000000 1002 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_Param5 1422129 844 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_Param5 2263789 539 ns/op 240 B/op 1 allocs/op
+BenchmarkTango_Param5 1000000 1256 ns/op 360 B/op 8 allocs/op
+BenchmarkTigerTonic_Param5 175500 7492 ns/op 2279 B/op 39 allocs/op
+BenchmarkTraffic_Param5 233631 5816 ns/op 2208 B/op 27 allocs/op
+BenchmarkVulcan_Param5 1923416 629 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_Param20 4321266 281 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_Param20 31501641 35.2 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_Param20 335204 3489 ns/op 1665 B/op 5 allocs/op
+BenchmarkBeego_Param20 503674 2860 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_Param20 298922 4741 ns/op 2031 B/op 6 allocs/op
+BenchmarkChi_Param20 878181 1957 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_Param20 1000000 1360 ns/op 640 B/op 1 allocs/op
+BenchmarkEcho_Param20 2104946 580 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_Param20 4167204 290 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_Param20 173064 7514 ns/op 3796 B/op 15 allocs/op
+BenchmarkGoji_Param20 458778 2651 ns/op 1247 B/op 2 allocs/op
+BenchmarkGojiv2_Param20 364862 3178 ns/op 1632 B/op 11 allocs/op
+BenchmarkGoJsonRest_Param20 125514 9760 ns/op 4485 B/op 20 allocs/op
+BenchmarkGoRestful_Param20 101217 11964 ns/op 6715 B/op 18 allocs/op
+BenchmarkGorillaMux_Param20 147654 8132 ns/op 3452 B/op 12 allocs/op
+BenchmarkGowwwRouter_Param20 1000000 1225 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_Param20 4920895 247 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_Param20 173202 6605 ns/op 3196 B/op 10 allocs/op
+BenchmarkKocha_Param20 345988 3620 ns/op 1808 B/op 27 allocs/op
+BenchmarkLARS_Param20 4592326 262 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_Param20 166492 7286 ns/op 2924 B/op 12 allocs/op
+BenchmarkMartini_Param20 122162 10653 ns/op 3595 B/op 13 allocs/op
+BenchmarkPat_Param20 78630 15239 ns/op 4424 B/op 93 allocs/op
+BenchmarkPossum_Param20 1000000 1008 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_Param20 294981 4587 ns/op 2284 B/op 7 allocs/op
+BenchmarkRivet_Param20 691798 2090 ns/op 1024 B/op 1 allocs/op
+BenchmarkTango_Param20 842440 2505 ns/op 856 B/op 8 allocs/op
+BenchmarkTigerTonic_Param20 38614 31509 ns/op 9870 B/op 119 allocs/op
+BenchmarkTraffic_Param20 57633 21107 ns/op 7853 B/op 47 allocs/op
+BenchmarkVulcan_Param20 1000000 1178 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_ParamWrite 7330743 180 ns/op 8 B/op 1 allocs/op
+BenchmarkAero_ParamWrite 13833598 86.7 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_ParamWrite 1363321 867 ns/op 456 B/op 5 allocs/op
+BenchmarkBeego_ParamWrite 1000000 1104 ns/op 360 B/op 4 allocs/op
+BenchmarkBone_ParamWrite 1000000 1475 ns/op 816 B/op 6 allocs/op
+BenchmarkChi_ParamWrite 1320590 892 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_ParamWrite 7093605 172 ns/op 32 B/op 1 allocs/op
+BenchmarkEcho_ParamWrite 8434424 161 ns/op 8 B/op 1 allocs/op
+BenchmarkGin_ParamWrite 10377034 118 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_ParamWrite 1000000 1266 ns/op 656 B/op 9 allocs/op
+BenchmarkGoji_ParamWrite 1874168 654 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_ParamWrite 459032 2352 ns/op 1360 B/op 13 allocs/op
+BenchmarkGoJsonRest_ParamWrite 499434 2145 ns/op 1128 B/op 18 allocs/op
+BenchmarkGoRestful_ParamWrite 241087 5470 ns/op 4200 B/op 15 allocs/op
+BenchmarkGorillaMux_ParamWrite 425686 2522 ns/op 1280 B/op 10 allocs/op
+BenchmarkGowwwRouter_ParamWrite 922172 1778 ns/op 976 B/op 8 allocs/op
+BenchmarkHttpRouter_ParamWrite 15392049 77.7 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_ParamWrite 1973385 597 ns/op 352 B/op 3 allocs/op
+BenchmarkKocha_ParamWrite 4262500 281 ns/op 56 B/op 3 allocs/op
+BenchmarkLARS_ParamWrite 10764410 113 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_ParamWrite 486769 2726 ns/op 1176 B/op 14 allocs/op
+BenchmarkMartini_ParamWrite 264804 4842 ns/op 1176 B/op 14 allocs/op
+BenchmarkPat_ParamWrite 735116 2047 ns/op 960 B/op 15 allocs/op
+BenchmarkPossum_ParamWrite 1000000 1004 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_ParamWrite 1592136 768 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_ParamWrite 3582051 339 ns/op 112 B/op 2 allocs/op
+BenchmarkTango_ParamWrite 2237337 534 ns/op 136 B/op 4 allocs/op
+BenchmarkTigerTonic_ParamWrite 439608 3136 ns/op 1216 B/op 21 allocs/op
+BenchmarkTraffic_ParamWrite 306979 4328 ns/op 2280 B/op 25 allocs/op
+BenchmarkVulcan_ParamWrite 2529973 472 ns/op 98 B/op 3 allocs/op
+```
+
+## GitHub
+
+```sh
+BenchmarkGin_GithubStatic 15629472 76.7 ns/op 0 B/op 0 allocs/op
+
+BenchmarkAce_GithubStatic 15542612 75.9 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GithubStatic 24777151 48.5 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GithubStatic 2788894 435 ns/op 120 B/op 3 allocs/op
+BenchmarkBeego_GithubStatic 1000000 1064 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_GithubStatic 93507 12838 ns/op 2880 B/op 60 allocs/op
+BenchmarkChi_GithubStatic 1387743 860 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_GithubStatic 39384996 30.4 ns/op 0 B/op 0 allocs/op
+BenchmarkEcho_GithubStatic 12076382 99.1 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GithubStatic 1596495 756 ns/op 296 B/op 5 allocs/op
+BenchmarkGoji_GithubStatic 6364876 189 ns/op 0 B/op 0 allocs/op
+BenchmarkGojiv2_GithubStatic 550202 2098 ns/op 1312 B/op 10 allocs/op
+BenchmarkGoRestful_GithubStatic 102183 12552 ns/op 4256 B/op 13 allocs/op
+BenchmarkGoJsonRest_GithubStatic 1000000 1029 ns/op 329 B/op 11 allocs/op
+BenchmarkGorillaMux_GithubStatic 255552 5190 ns/op 976 B/op 9 allocs/op
+BenchmarkGowwwRouter_GithubStatic 15531916 77.1 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpRouter_GithubStatic 27920724 43.1 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GithubStatic 21448953 55.8 ns/op 0 B/op 0 allocs/op
+BenchmarkKocha_GithubStatic 21405310 56.0 ns/op 0 B/op 0 allocs/op
+BenchmarkLARS_GithubStatic 13625156 89.0 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GithubStatic 1000000 1747 ns/op 736 B/op 8 allocs/op
+BenchmarkMartini_GithubStatic 187186 7326 ns/op 768 B/op 9 allocs/op
+BenchmarkPat_GithubStatic 109143 11563 ns/op 3648 B/op 76 allocs/op
+BenchmarkPossum_GithubStatic 1575898 770 ns/op 416 B/op 3 allocs/op
+BenchmarkR2router_GithubStatic 3046231 404 ns/op 144 B/op 4 allocs/op
+BenchmarkRivet_GithubStatic 11484826 105 ns/op 0 B/op 0 allocs/op
+BenchmarkTango_GithubStatic 1000000 1153 ns/op 248 B/op 8 allocs/op
+BenchmarkTigerTonic_GithubStatic 4929780 249 ns/op 48 B/op 1 allocs/op
+BenchmarkTraffic_GithubStatic 106351 11819 ns/op 4664 B/op 90 allocs/op
+BenchmarkVulcan_GithubStatic 1613271 722 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_GithubParam 8386032 143 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GithubParam 11816200 102 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GithubParam 1000000 1012 ns/op 496 B/op 5 allocs/op
+BenchmarkBeego_GithubParam 1000000 1157 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_GithubParam 184653 6912 ns/op 1888 B/op 19 allocs/op
+BenchmarkChi_GithubParam 1000000 1102 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_GithubParam 3484798 352 ns/op 128 B/op 1 allocs/op
+BenchmarkEcho_GithubParam 6337380 189 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_GithubParam 9132032 131 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GithubParam 1000000 1446 ns/op 712 B/op 9 allocs/op
+BenchmarkGoji_GithubParam 1248640 977 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_GithubParam 383233 2784 ns/op 1408 B/op 13 allocs/op
+BenchmarkGoJsonRest_GithubParam 1000000 1991 ns/op 713 B/op 14 allocs/op
+BenchmarkGoRestful_GithubParam 76414 16015 ns/op 4352 B/op 16 allocs/op
+BenchmarkGorillaMux_GithubParam 150026 7663 ns/op 1296 B/op 10 allocs/op
+BenchmarkGowwwRouter_GithubParam 1592044 751 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_GithubParam 10420628 115 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GithubParam 1403755 835 ns/op 384 B/op 4 allocs/op
+BenchmarkKocha_GithubParam 2286170 533 ns/op 128 B/op 5 allocs/op
+BenchmarkLARS_GithubParam 9540374 129 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GithubParam 533154 2742 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_GithubParam 119397 9638 ns/op 1152 B/op 11 allocs/op
+BenchmarkPat_GithubParam 150675 8858 ns/op 2408 B/op 48 allocs/op
+BenchmarkPossum_GithubParam 1000000 1001 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_GithubParam 1602886 761 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_GithubParam 2986579 409 ns/op 96 B/op 1 allocs/op
+BenchmarkTango_GithubParam 1000000 1356 ns/op 344 B/op 8 allocs/op
+BenchmarkTigerTonic_GithubParam 388899 3429 ns/op 1176 B/op 22 allocs/op
+BenchmarkTraffic_GithubParam 123160 9734 ns/op 2816 B/op 40 allocs/op
+BenchmarkVulcan_GithubParam 1000000 1138 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_GithubAll 40543 29670 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GithubAll 57632 20648 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GithubAll 9234 216179 ns/op 86448 B/op 943 allocs/op
+BenchmarkBeego_GithubAll 7407 243496 ns/op 71456 B/op 609 allocs/op
+BenchmarkBone_GithubAll 420 2922835 ns/op 720160 B/op 8620 allocs/op
+BenchmarkChi_GithubAll 7620 238331 ns/op 87696 B/op 609 allocs/op
+BenchmarkDenco_GithubAll 18355 64494 ns/op 20224 B/op 167 allocs/op
+BenchmarkEcho_GithubAll 31251 38479 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_GithubAll 43550 27364 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GithubAll 4117 300062 ns/op 131656 B/op 1686 allocs/op
+BenchmarkGoji_GithubAll 3274 416158 ns/op 56112 B/op 334 allocs/op
+BenchmarkGojiv2_GithubAll 1402 870518 ns/op 352720 B/op 4321 allocs/op
+BenchmarkGoJsonRest_GithubAll 2976 401507 ns/op 134371 B/op 2737 allocs/op
+BenchmarkGoRestful_GithubAll 410 2913158 ns/op 910144 B/op 2938 allocs/op
+BenchmarkGorillaMux_GithubAll 346 3384987 ns/op 251650 B/op 1994 allocs/op
+BenchmarkGowwwRouter_GithubAll 10000 143025 ns/op 72144 B/op 501 allocs/op
+BenchmarkHttpRouter_GithubAll 55938 21360 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GithubAll 10000 153944 ns/op 65856 B/op 671 allocs/op
+BenchmarkKocha_GithubAll 10000 106315 ns/op 23304 B/op 843 allocs/op
+BenchmarkLARS_GithubAll 47779 25084 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GithubAll 3266 371907 ns/op 149409 B/op 1624 allocs/op
+BenchmarkMartini_GithubAll 331 3444706 ns/op 226551 B/op 2325 allocs/op
+BenchmarkPat_GithubAll 273 4381818 ns/op 1483152 B/op 26963 allocs/op
+BenchmarkPossum_GithubAll 10000 164367 ns/op 84448 B/op 609 allocs/op
+BenchmarkR2router_GithubAll 10000 160220 ns/op 77328 B/op 979 allocs/op
+BenchmarkRivet_GithubAll 14625 82453 ns/op 16272 B/op 167 allocs/op
+BenchmarkTango_GithubAll 6255 279611 ns/op 63826 B/op 1618 allocs/op
+BenchmarkTigerTonic_GithubAll 2008 687874 ns/op 193856 B/op 4474 allocs/op
+BenchmarkTraffic_GithubAll 355 3478508 ns/op 820744 B/op 14114 allocs/op
+BenchmarkVulcan_GithubAll 6885 193333 ns/op 19894 B/op 609 allocs/op
+```
+
+## Google+
+
+```sh
+BenchmarkGin_GPlusStatic 19247326 62.2 ns/op 0 B/op 0 allocs/op
+
+BenchmarkAce_GPlusStatic 20235060 59.2 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GPlusStatic 31978935 37.6 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GPlusStatic 3516523 341 ns/op 104 B/op 3 allocs/op
+BenchmarkBeego_GPlusStatic 1212036 991 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_GPlusStatic 6736242 183 ns/op 32 B/op 1 allocs/op
+BenchmarkChi_GPlusStatic 1490640 814 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_GPlusStatic 55006856 21.8 ns/op 0 B/op 0 allocs/op
+BenchmarkEcho_GPlusStatic 17688258 67.9 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GPlusStatic 1829181 666 ns/op 280 B/op 5 allocs/op
+BenchmarkGoji_GPlusStatic 9147451 130 ns/op 0 B/op 0 allocs/op
+BenchmarkGojiv2_GPlusStatic 594015 2063 ns/op 1312 B/op 10 allocs/op
+BenchmarkGoJsonRest_GPlusStatic 1264906 950 ns/op 329 B/op 11 allocs/op
+BenchmarkGoRestful_GPlusStatic 231558 5341 ns/op 3872 B/op 13 allocs/op
+BenchmarkGorillaMux_GPlusStatic 908418 1809 ns/op 976 B/op 9 allocs/op
+BenchmarkGowwwRouter_GPlusStatic 40684604 29.5 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpRouter_GPlusStatic 46742804 25.7 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GPlusStatic 32567161 36.9 ns/op 0 B/op 0 allocs/op
+BenchmarkKocha_GPlusStatic 33800060 35.3 ns/op 0 B/op 0 allocs/op
+BenchmarkLARS_GPlusStatic 20431858 60.0 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GPlusStatic 1000000 1745 ns/op 736 B/op 8 allocs/op
+BenchmarkMartini_GPlusStatic 442248 3619 ns/op 768 B/op 9 allocs/op
+BenchmarkPat_GPlusStatic 4328004 292 ns/op 96 B/op 2 allocs/op
+BenchmarkPossum_GPlusStatic 1570753 763 ns/op 416 B/op 3 allocs/op
+BenchmarkR2router_GPlusStatic 3339474 355 ns/op 144 B/op 4 allocs/op
+BenchmarkRivet_GPlusStatic 18570961 64.7 ns/op 0 B/op 0 allocs/op
+BenchmarkTango_GPlusStatic 1388702 860 ns/op 200 B/op 8 allocs/op
+BenchmarkTigerTonic_GPlusStatic 7803543 159 ns/op 32 B/op 1 allocs/op
+BenchmarkTraffic_GPlusStatic 878605 2171 ns/op 1112 B/op 16 allocs/op
+BenchmarkVulcan_GPlusStatic 2742446 437 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_GPlusParam 11626975 105 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GPlusParam 16914322 71.6 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GPlusParam 1405173 832 ns/op 480 B/op 5 allocs/op
+BenchmarkBeego_GPlusParam 1000000 1075 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_GPlusParam 1000000 1557 ns/op 816 B/op 6 allocs/op
+BenchmarkChi_GPlusParam 1347926 894 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_GPlusParam 5513000 212 ns/op 64 B/op 1 allocs/op
+BenchmarkEcho_GPlusParam 11884383 101 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_GPlusParam 12898952 93.1 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GPlusParam 1000000 1194 ns/op 648 B/op 8 allocs/op
+BenchmarkGoji_GPlusParam 1857229 645 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_GPlusParam 520939 2322 ns/op 1328 B/op 11 allocs/op
+BenchmarkGoJsonRest_GPlusParam 1000000 1536 ns/op 649 B/op 13 allocs/op
+BenchmarkGoRestful_GPlusParam 205449 5800 ns/op 4192 B/op 14 allocs/op
+BenchmarkGorillaMux_GPlusParam 395310 3188 ns/op 1280 B/op 10 allocs/op
+BenchmarkGowwwRouter_GPlusParam 1851798 667 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_GPlusParam 18420789 65.2 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GPlusParam 1878463 629 ns/op 352 B/op 3 allocs/op
+BenchmarkKocha_GPlusParam 4495610 273 ns/op 56 B/op 3 allocs/op
+BenchmarkLARS_GPlusParam 14615976 83.2 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GPlusParam 584145 2549 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_GPlusParam 250501 4583 ns/op 1072 B/op 10 allocs/op
+BenchmarkPat_GPlusParam 1000000 1645 ns/op 576 B/op 11 allocs/op
+BenchmarkPossum_GPlusParam 1000000 1008 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_GPlusParam 1708191 688 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_GPlusParam 5795014 211 ns/op 48 B/op 1 allocs/op
+BenchmarkTango_GPlusParam 1000000 1091 ns/op 264 B/op 8 allocs/op
+BenchmarkTigerTonic_GPlusParam 760221 2489 ns/op 856 B/op 16 allocs/op
+BenchmarkTraffic_GPlusParam 309774 4039 ns/op 1872 B/op 21 allocs/op
+BenchmarkVulcan_GPlusParam 1935730 623 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_GPlus2Params 9158314 134 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GPlus2Params 11300517 107 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GPlus2Params 1239238 961 ns/op 496 B/op 5 allocs/op
+BenchmarkBeego_GPlus2Params 1000000 1202 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_GPlus2Params 335576 3725 ns/op 1168 B/op 10 allocs/op
+BenchmarkChi_GPlus2Params 1000000 1014 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_GPlus2Params 4394598 280 ns/op 64 B/op 1 allocs/op
+BenchmarkEcho_GPlus2Params 7851861 154 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_GPlus2Params 9958588 120 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GPlus2Params 1000000 1433 ns/op 712 B/op 9 allocs/op
+BenchmarkGoji_GPlus2Params 1325134 909 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_GPlus2Params 405955 2870 ns/op 1408 B/op 14 allocs/op
+BenchmarkGoJsonRest_GPlus2Params 977038 1987 ns/op 713 B/op 14 allocs/op
+BenchmarkGoRestful_GPlus2Params 205018 6142 ns/op 4384 B/op 16 allocs/op
+BenchmarkGorillaMux_GPlus2Params 205641 6015 ns/op 1296 B/op 10 allocs/op
+BenchmarkGowwwRouter_GPlus2Params 1748542 684 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_GPlus2Params 14047102 87.7 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GPlus2Params 1418673 828 ns/op 384 B/op 4 allocs/op
+BenchmarkKocha_GPlus2Params 2334562 520 ns/op 128 B/op 5 allocs/op
+BenchmarkLARS_GPlus2Params 11954094 101 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GPlus2Params 491552 2890 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_GPlus2Params 120532 9545 ns/op 1200 B/op 13 allocs/op
+BenchmarkPat_GPlus2Params 194739 6766 ns/op 2168 B/op 33 allocs/op
+BenchmarkPossum_GPlus2Params 1201224 1009 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_GPlus2Params 1575535 756 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_GPlus2Params 3698930 325 ns/op 96 B/op 1 allocs/op
+BenchmarkTango_GPlus2Params 1000000 1212 ns/op 344 B/op 8 allocs/op
+BenchmarkTigerTonic_GPlus2Params 349350 3660 ns/op 1200 B/op 22 allocs/op
+BenchmarkTraffic_GPlus2Params 169714 7862 ns/op 2248 B/op 28 allocs/op
+BenchmarkVulcan_GPlus2Params 1222288 974 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_GPlusAll 845606 1398 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_GPlusAll 1000000 1009 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_GPlusAll 103830 11386 ns/op 5488 B/op 61 allocs/op
+BenchmarkBeego_GPlusAll 82653 14784 ns/op 4576 B/op 39 allocs/op
+BenchmarkBone_GPlusAll 36601 33123 ns/op 11744 B/op 109 allocs/op
+BenchmarkChi_GPlusAll 95264 12831 ns/op 5616 B/op 39 allocs/op
+BenchmarkDenco_GPlusAll 567681 2950 ns/op 672 B/op 11 allocs/op
+BenchmarkEcho_GPlusAll 720366 1665 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_GPlusAll 1000000 1185 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_GPlusAll 71575 16365 ns/op 8040 B/op 103 allocs/op
+BenchmarkGoji_GPlusAll 136352 9191 ns/op 3696 B/op 22 allocs/op
+BenchmarkGojiv2_GPlusAll 38006 31802 ns/op 17616 B/op 154 allocs/op
+BenchmarkGoJsonRest_GPlusAll 57238 21561 ns/op 8117 B/op 170 allocs/op
+BenchmarkGoRestful_GPlusAll 15147 79276 ns/op 55520 B/op 192 allocs/op
+BenchmarkGorillaMux_GPlusAll 24446 48410 ns/op 16112 B/op 128 allocs/op
+BenchmarkGowwwRouter_GPlusAll 150112 7770 ns/op 4752 B/op 33 allocs/op
+BenchmarkHttpRouter_GPlusAll 1367820 878 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_GPlusAll 166628 8004 ns/op 4032 B/op 38 allocs/op
+BenchmarkKocha_GPlusAll 265694 4570 ns/op 976 B/op 43 allocs/op
+BenchmarkLARS_GPlusAll 1000000 1068 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_GPlusAll 54564 23305 ns/op 9568 B/op 104 allocs/op
+BenchmarkMartini_GPlusAll 16274 73845 ns/op 14016 B/op 145 allocs/op
+BenchmarkPat_GPlusAll 27181 44478 ns/op 15264 B/op 271 allocs/op
+BenchmarkPossum_GPlusAll 122587 10277 ns/op 5408 B/op 39 allocs/op
+BenchmarkR2router_GPlusAll 130137 9297 ns/op 5040 B/op 63 allocs/op
+BenchmarkRivet_GPlusAll 532438 3323 ns/op 768 B/op 11 allocs/op
+BenchmarkTango_GPlusAll 86054 14531 ns/op 3656 B/op 104 allocs/op
+BenchmarkTigerTonic_GPlusAll 33936 35356 ns/op 11600 B/op 242 allocs/op
+BenchmarkTraffic_GPlusAll 17833 68181 ns/op 26248 B/op 341 allocs/op
+BenchmarkVulcan_GPlusAll 120109 9861 ns/op 1274 B/op 39 allocs/op
+```
+
+## Parse.com
+
+```sh
+BenchmarkGin_ParseStatic 18877833 63.5 ns/op 0 B/op 0 allocs/op
+
+BenchmarkAce_ParseStatic 19663731 60.8 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_ParseStatic 28967341 41.5 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_ParseStatic 3006984 402 ns/op 120 B/op 3 allocs/op
+BenchmarkBeego_ParseStatic 1000000 1031 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_ParseStatic 1782482 675 ns/op 144 B/op 3 allocs/op
+BenchmarkChi_ParseStatic 1453261 819 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_ParseStatic 45023595 26.5 ns/op 0 B/op 0 allocs/op
+BenchmarkEcho_ParseStatic 17330470 69.3 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_ParseStatic 1644006 731 ns/op 296 B/op 5 allocs/op
+BenchmarkGoji_ParseStatic 7026930 170 ns/op 0 B/op 0 allocs/op
+BenchmarkGojiv2_ParseStatic 517618 2037 ns/op 1312 B/op 10 allocs/op
+BenchmarkGoJsonRest_ParseStatic 1227080 975 ns/op 329 B/op 11 allocs/op
+BenchmarkGoRestful_ParseStatic 192458 6659 ns/op 4256 B/op 13 allocs/op
+BenchmarkGorillaMux_ParseStatic 744062 2109 ns/op 976 B/op 9 allocs/op
+BenchmarkGowwwRouter_ParseStatic 37781062 31.8 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpRouter_ParseStatic 45311223 26.5 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_ParseStatic 21383475 56.1 ns/op 0 B/op 0 allocs/op
+BenchmarkKocha_ParseStatic 29953290 40.1 ns/op 0 B/op 0 allocs/op
+BenchmarkLARS_ParseStatic 20036196 62.7 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_ParseStatic 1000000 1740 ns/op 736 B/op 8 allocs/op
+BenchmarkMartini_ParseStatic 404156 3801 ns/op 768 B/op 9 allocs/op
+BenchmarkPat_ParseStatic 1547180 772 ns/op 240 B/op 5 allocs/op
+BenchmarkPossum_ParseStatic 1608991 757 ns/op 416 B/op 3 allocs/op
+BenchmarkR2router_ParseStatic 3177936 385 ns/op 144 B/op 4 allocs/op
+BenchmarkRivet_ParseStatic 17783205 67.4 ns/op 0 B/op 0 allocs/op
+BenchmarkTango_ParseStatic 1210777 990 ns/op 248 B/op 8 allocs/op
+BenchmarkTigerTonic_ParseStatic 5316440 231 ns/op 48 B/op 1 allocs/op
+BenchmarkTraffic_ParseStatic 496050 2539 ns/op 1256 B/op 19 allocs/op
+BenchmarkVulcan_ParseStatic 2462798 488 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_ParseParam 13393669 89.6 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_ParseParam 19836619 60.4 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_ParseParam 1405954 864 ns/op 467 B/op 5 allocs/op
+BenchmarkBeego_ParseParam 1000000 1065 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_ParseParam 1000000 1698 ns/op 896 B/op 7 allocs/op
+BenchmarkChi_ParseParam 1356037 873 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_ParseParam 6241392 204 ns/op 64 B/op 1 allocs/op
+BenchmarkEcho_ParseParam 14088100 85.1 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_ParseParam 17426064 68.9 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_ParseParam 1000000 1254 ns/op 664 B/op 8 allocs/op
+BenchmarkGoji_ParseParam 1682574 713 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_ParseParam 502224 2333 ns/op 1360 B/op 12 allocs/op
+BenchmarkGoJsonRest_ParseParam 1000000 1401 ns/op 649 B/op 13 allocs/op
+BenchmarkGoRestful_ParseParam 182623 7097 ns/op 4576 B/op 14 allocs/op
+BenchmarkGorillaMux_ParseParam 482332 2477 ns/op 1280 B/op 10 allocs/op
+BenchmarkGowwwRouter_ParseParam 1834873 657 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_ParseParam 23593393 51.0 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_ParseParam 2100160 574 ns/op 352 B/op 3 allocs/op
+BenchmarkKocha_ParseParam 4837220 252 ns/op 56 B/op 3 allocs/op
+BenchmarkLARS_ParseParam 18411192 66.2 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_ParseParam 571870 2398 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_ParseParam 286262 4268 ns/op 1072 B/op 10 allocs/op
+BenchmarkPat_ParseParam 692906 2157 ns/op 992 B/op 15 allocs/op
+BenchmarkPossum_ParseParam 1000000 1011 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_ParseParam 1722735 697 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_ParseParam 6058054 203 ns/op 48 B/op 1 allocs/op
+BenchmarkTango_ParseParam 1000000 1061 ns/op 280 B/op 8 allocs/op
+BenchmarkTigerTonic_ParseParam 890275 2277 ns/op 784 B/op 15 allocs/op
+BenchmarkTraffic_ParseParam 351322 3543 ns/op 1896 B/op 21 allocs/op
+BenchmarkVulcan_ParseParam 2076544 572 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_Parse2Params 11718074 101 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_Parse2Params 16264988 73.4 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_Parse2Params 1238322 973 ns/op 496 B/op 5 allocs/op
+BenchmarkBeego_Parse2Params 1000000 1120 ns/op 352 B/op 3 allocs/op
+BenchmarkBone_Parse2Params 1000000 1632 ns/op 848 B/op 6 allocs/op
+BenchmarkChi_Parse2Params 1239477 955 ns/op 432 B/op 3 allocs/op
+BenchmarkDenco_Parse2Params 4944133 245 ns/op 64 B/op 1 allocs/op
+BenchmarkEcho_Parse2Params 10518286 114 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_Parse2Params 14505195 82.7 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_Parse2Params 1000000 1437 ns/op 712 B/op 9 allocs/op
+BenchmarkGoji_Parse2Params 1689883 707 ns/op 336 B/op 2 allocs/op
+BenchmarkGojiv2_Parse2Params 502334 2308 ns/op 1344 B/op 11 allocs/op
+BenchmarkGoJsonRest_Parse2Params 1000000 1771 ns/op 713 B/op 14 allocs/op
+BenchmarkGoRestful_Parse2Params 159092 7583 ns/op 4928 B/op 14 allocs/op
+BenchmarkGorillaMux_Parse2Params 417548 2980 ns/op 1296 B/op 10 allocs/op
+BenchmarkGowwwRouter_Parse2Params 1751737 686 ns/op 432 B/op 3 allocs/op
+BenchmarkHttpRouter_Parse2Params 18089204 66.3 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_Parse2Params 1556986 777 ns/op 384 B/op 4 allocs/op
+BenchmarkKocha_Parse2Params 2493082 485 ns/op 128 B/op 5 allocs/op
+BenchmarkLARS_Parse2Params 15350108 78.5 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_Parse2Params 530974 2605 ns/op 1072 B/op 10 allocs/op
+BenchmarkMartini_Parse2Params 247069 4673 ns/op 1152 B/op 11 allocs/op
+BenchmarkPat_Parse2Params 816295 2126 ns/op 752 B/op 16 allocs/op
+BenchmarkPossum_Parse2Params 1000000 1002 ns/op 496 B/op 5 allocs/op
+BenchmarkR2router_Parse2Params 1569771 733 ns/op 432 B/op 5 allocs/op
+BenchmarkRivet_Parse2Params 4080546 295 ns/op 96 B/op 1 allocs/op
+BenchmarkTango_Parse2Params 1000000 1121 ns/op 312 B/op 8 allocs/op
+BenchmarkTigerTonic_Parse2Params 399556 3470 ns/op 1168 B/op 22 allocs/op
+BenchmarkTraffic_Parse2Params 314194 4159 ns/op 1944 B/op 22 allocs/op
+BenchmarkVulcan_Parse2Params 1827559 664 ns/op 98 B/op 3 allocs/op
+BenchmarkAce_ParseAll 478395 2503 ns/op 0 B/op 0 allocs/op
+BenchmarkAero_ParseAll 715392 1658 ns/op 0 B/op 0 allocs/op
+BenchmarkBear_ParseAll 59191 20124 ns/op 8928 B/op 110 allocs/op
+BenchmarkBeego_ParseAll 45507 27266 ns/op 9152 B/op 78 allocs/op
+BenchmarkBone_ParseAll 29328 41459 ns/op 16208 B/op 147 allocs/op
+BenchmarkChi_ParseAll 48531 25053 ns/op 11232 B/op 78 allocs/op
+BenchmarkDenco_ParseAll 325532 4284 ns/op 928 B/op 16 allocs/op
+BenchmarkEcho_ParseAll 433771 2759 ns/op 0 B/op 0 allocs/op
+BenchmarkGin_ParseAll 576316 2082 ns/op 0 B/op 0 allocs/op
+BenchmarkGocraftWeb_ParseAll 41500 29692 ns/op 13728 B/op 181 allocs/op
+BenchmarkGoji_ParseAll 80833 15563 ns/op 5376 B/op 32 allocs/op
+BenchmarkGojiv2_ParseAll 19836 60335 ns/op 34448 B/op 277 allocs/op
+BenchmarkGoJsonRest_ParseAll 32210 38027 ns/op 13866 B/op 321 allocs/op
+BenchmarkGoRestful_ParseAll 6644 190842 ns/op 117600 B/op 354 allocs/op
+BenchmarkGorillaMux_ParseAll 12634 95894 ns/op 30288 B/op 250 allocs/op
+BenchmarkGowwwRouter_ParseAll 98152 12159 ns/op 6912 B/op 48 allocs/op
+BenchmarkHttpRouter_ParseAll 933208 1273 ns/op 0 B/op 0 allocs/op
+BenchmarkHttpTreeMux_ParseAll 107191 11554 ns/op 5728 B/op 51 allocs/op
+BenchmarkKocha_ParseAll 184862 6225 ns/op 1112 B/op 54 allocs/op
+BenchmarkLARS_ParseAll 644546 1858 ns/op 0 B/op 0 allocs/op
+BenchmarkMacaron_ParseAll 26145 46484 ns/op 19136 B/op 208 allocs/op
+BenchmarkMartini_ParseAll 10000 121838 ns/op 25072 B/op 253 allocs/op
+BenchmarkPat_ParseAll 25417 47196 ns/op 15216 B/op 308 allocs/op
+BenchmarkPossum_ParseAll 58550 20735 ns/op 10816 B/op 78 allocs/op
+BenchmarkR2router_ParseAll 72732 16584 ns/op 8352 B/op 120 allocs/op
+BenchmarkRivet_ParseAll 281365 4968 ns/op 912 B/op 16 allocs/op
+BenchmarkTango_ParseAll 42831 28668 ns/op 7168 B/op 208 allocs/op
+BenchmarkTigerTonic_ParseAll 23774 49972 ns/op 16048 B/op 332 allocs/op
+BenchmarkTraffic_ParseAll 10000 104679 ns/op 45520 B/op 605 allocs/op
+BenchmarkVulcan_ParseAll 64810 18108 ns/op 2548 B/op 78 allocs/op
+```
diff --git a/vendor/github.com/gin-gonic/gin/CHANGELOG.md b/vendor/github.com/gin-gonic/gin/CHANGELOG.md
new file mode 100644
index 000000000..a28edc840
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/CHANGELOG.md
@@ -0,0 +1,418 @@
+# Gin ChangeLog
+
+## Gin v1.7.2
+
+### BUGFIXES
+
+* Fix conflict between param and exact path [#2706](https://github.com/gin-gonic/gin/issues/2706). Close issue [#2682](https://github.com/gin-gonic/gin/issues/2682) [#2696](https://github.com/gin-gonic/gin/issues/2696).
+
+## Gin v1.7.1
+
+### BUGFIXES
+
+* fix: data race with trustedCIDRs from [#2674](https://github.com/gin-gonic/gin/issues/2674)([#2675](https://github.com/gin-gonic/gin/pull/2675))
+
+## Gin v1.7.0
+
+### BUGFIXES
+
+* fix compile error from [#2572](https://github.com/gin-gonic/gin/pull/2572) ([#2600](https://github.com/gin-gonic/gin/pull/2600))
+* fix: print headers without Authorization header on broken pipe ([#2528](https://github.com/gin-gonic/gin/pull/2528))
+* fix(tree): reassign fullpath when register new node ([#2366](https://github.com/gin-gonic/gin/pull/2366))
+
+### ENHANCEMENTS
+
+* Support params and exact routes without creating conflicts ([#2663](https://github.com/gin-gonic/gin/pull/2663))
+* chore: improve render string performance ([#2365](https://github.com/gin-gonic/gin/pull/2365))
+* Sync route tree to httprouter latest code ([#2368](https://github.com/gin-gonic/gin/pull/2368))
+* chore: rename getQueryCache/getFormCache to initQueryCache/initFormCa ([#2375](https://github.com/gin-gonic/gin/pull/2375))
+* chore(performance): improve countParams ([#2378](https://github.com/gin-gonic/gin/pull/2378))
+* Remove some functions that have the same effect as the bytes package ([#2387](https://github.com/gin-gonic/gin/pull/2387))
+* update:SetMode function ([#2321](https://github.com/gin-gonic/gin/pull/2321))
+* remove a unused type SecureJSONPrefix ([#2391](https://github.com/gin-gonic/gin/pull/2391))
+* Add a redirect sample for POST method ([#2389](https://github.com/gin-gonic/gin/pull/2389))
+* Add CustomRecovery builtin middleware ([#2322](https://github.com/gin-gonic/gin/pull/2322))
+* binding: avoid 2038 problem on 32-bit architectures ([#2450](https://github.com/gin-gonic/gin/pull/2450))
+* Prevent panic in Context.GetQuery() when there is no Request ([#2412](https://github.com/gin-gonic/gin/pull/2412))
+* Add GetUint and GetUint64 method on gin.context ([#2487](https://github.com/gin-gonic/gin/pull/2487))
+* update content-disposition header to MIME-style ([#2512](https://github.com/gin-gonic/gin/pull/2512))
+* reduce allocs and improve the render `WriteString` ([#2508](https://github.com/gin-gonic/gin/pull/2508))
+* implement ".Unwrap() error" on Error type ([#2525](https://github.com/gin-gonic/gin/pull/2525)) ([#2526](https://github.com/gin-gonic/gin/pull/2526))
+* Allow bind with a map[string]string ([#2484](https://github.com/gin-gonic/gin/pull/2484))
+* chore: update tree ([#2371](https://github.com/gin-gonic/gin/pull/2371))
+* Support binding for slice/array obj [Rewrite] ([#2302](https://github.com/gin-gonic/gin/pull/2302))
+* basic auth: fix timing oracle ([#2609](https://github.com/gin-gonic/gin/pull/2609))
+* Add mixed param and non-param paths (port of httprouter[#329](https://github.com/gin-gonic/gin/pull/329)) ([#2663](https://github.com/gin-gonic/gin/pull/2663))
+* feat(engine): add trustedproxies and remoteIP ([#2632](https://github.com/gin-gonic/gin/pull/2632))
+
+## Gin v1.6.3
+
+### ENHANCEMENTS
+
+ * Improve performance: Change `*sync.RWMutex` to `sync.RWMutex` in context. [#2351](https://github.com/gin-gonic/gin/pull/2351)
+
+## Gin v1.6.2
+
+### BUGFIXES
+ * fix missing initial sync.RWMutex [#2305](https://github.com/gin-gonic/gin/pull/2305)
+### ENHANCEMENTS
+ * Add set samesite in cookie. [#2306](https://github.com/gin-gonic/gin/pull/2306)
+
+## Gin v1.6.1
+
+### BUGFIXES
+ * Revert "fix accept incoming network connections" [#2294](https://github.com/gin-gonic/gin/pull/2294)
+
+## Gin v1.6.0
+
+### BREAKING
+ * chore(performance): Improve performance for adding RemoveExtraSlash flag [#2159](https://github.com/gin-gonic/gin/pull/2159)
+ * drop support govendor [#2148](https://github.com/gin-gonic/gin/pull/2148)
+ * Added support for SameSite cookie flag [#1615](https://github.com/gin-gonic/gin/pull/1615)
+### FEATURES
+ * add yaml negotiation [#2220](https://github.com/gin-gonic/gin/pull/2220)
+ * FileFromFS [#2112](https://github.com/gin-gonic/gin/pull/2112)
+### BUGFIXES
+ * Unix Socket Handling [#2280](https://github.com/gin-gonic/gin/pull/2280)
+ * Use json marshall in context json to fix breaking new line issue. Fixes #2209 [#2228](https://github.com/gin-gonic/gin/pull/2228)
+ * fix accept incoming network connections [#2216](https://github.com/gin-gonic/gin/pull/2216)
+ * Fixed a bug in the calculation of the maximum number of parameters [#2166](https://github.com/gin-gonic/gin/pull/2166)
+ * [FIX] allow empty headers on DataFromReader [#2121](https://github.com/gin-gonic/gin/pull/2121)
+ * Add mutex for protect Context.Keys map [#1391](https://github.com/gin-gonic/gin/pull/1391)
+### ENHANCEMENTS
+ * Add mitigation for log injection [#2277](https://github.com/gin-gonic/gin/pull/2277)
+ * tree: range over nodes values [#2229](https://github.com/gin-gonic/gin/pull/2229)
+ * tree: remove duplicate assignment [#2222](https://github.com/gin-gonic/gin/pull/2222)
+ * chore: upgrade go-isatty and json-iterator/go [#2215](https://github.com/gin-gonic/gin/pull/2215)
+ * path: sync code with httprouter [#2212](https://github.com/gin-gonic/gin/pull/2212)
+ * Use zero-copy approach to convert types between string and byte slice [#2206](https://github.com/gin-gonic/gin/pull/2206)
+ * Reuse bytes when cleaning the URL paths [#2179](https://github.com/gin-gonic/gin/pull/2179)
+ * tree: remove one else statement [#2177](https://github.com/gin-gonic/gin/pull/2177)
+ * tree: sync httprouter update (#2173) (#2172) [#2171](https://github.com/gin-gonic/gin/pull/2171)
+ * tree: sync part httprouter codes and reduce if/else [#2163](https://github.com/gin-gonic/gin/pull/2163)
+ * use http method constant [#2155](https://github.com/gin-gonic/gin/pull/2155)
+ * upgrade go-validator to v10 [#2149](https://github.com/gin-gonic/gin/pull/2149)
+ * Refactor redirect request in gin.go [#1970](https://github.com/gin-gonic/gin/pull/1970)
+ * Add build tag nomsgpack [#1852](https://github.com/gin-gonic/gin/pull/1852)
+### DOCS
+ * docs(path): improve comments [#2223](https://github.com/gin-gonic/gin/pull/2223)
+ * Renew README to fit the modification of SetCookie method [#2217](https://github.com/gin-gonic/gin/pull/2217)
+ * Fix spelling [#2202](https://github.com/gin-gonic/gin/pull/2202)
+ * Remove broken link from README. [#2198](https://github.com/gin-gonic/gin/pull/2198)
+ * Update docs on Context.Done(), Context.Deadline() and Context.Err() [#2196](https://github.com/gin-gonic/gin/pull/2196)
+ * Update validator to v10 [#2190](https://github.com/gin-gonic/gin/pull/2190)
+ * upgrade go-validator to v10 for README [#2189](https://github.com/gin-gonic/gin/pull/2189)
+ * Update to currently output [#2188](https://github.com/gin-gonic/gin/pull/2188)
+ * Fix "Custom Validators" example [#2186](https://github.com/gin-gonic/gin/pull/2186)
+ * Add project to README [#2165](https://github.com/gin-gonic/gin/pull/2165)
+ * docs(benchmarks): for gin v1.5 [#2153](https://github.com/gin-gonic/gin/pull/2153)
+ * Changed wording for clarity in README.md [#2122](https://github.com/gin-gonic/gin/pull/2122)
+### MISC
+ * ci support go1.14 [#2262](https://github.com/gin-gonic/gin/pull/2262)
+ * chore: upgrade depend version [#2231](https://github.com/gin-gonic/gin/pull/2231)
+ * Drop support go1.10 [#2147](https://github.com/gin-gonic/gin/pull/2147)
+ * fix comment in `mode.go` [#2129](https://github.com/gin-gonic/gin/pull/2129)
+
+## Gin v1.5.0
+
+- [FIX] Use DefaultWriter and DefaultErrorWriter for debug messages [#1891](https://github.com/gin-gonic/gin/pull/1891)
+- [NEW] Now you can parse the inline lowercase start structure [#1893](https://github.com/gin-gonic/gin/pull/1893)
+- [FIX] Some code improvements [#1909](https://github.com/gin-gonic/gin/pull/1909)
+- [FIX] Use encode replace json marshal increase json encoder speed [#1546](https://github.com/gin-gonic/gin/pull/1546)
+- [NEW] Hold matched route full path in the Context [#1826](https://github.com/gin-gonic/gin/pull/1826)
+- [FIX] Fix context.Params race condition on Copy() [#1841](https://github.com/gin-gonic/gin/pull/1841)
+- [NEW] Add context param query cache [#1450](https://github.com/gin-gonic/gin/pull/1450)
+- [FIX] Improve GetQueryMap performance [#1918](https://github.com/gin-gonic/gin/pull/1918)
+- [FIX] Improve get post data [#1920](https://github.com/gin-gonic/gin/pull/1920)
+- [FIX] Use context instead of x/net/context [#1922](https://github.com/gin-gonic/gin/pull/1922)
+- [FIX] Attempt to fix PostForm cache bug [#1931](https://github.com/gin-gonic/gin/pull/1931)
+- [NEW] Add support of multipart multi files [#1949](https://github.com/gin-gonic/gin/pull/1949)
+- [NEW] Support bind http header param [#1957](https://github.com/gin-gonic/gin/pull/1957)
+- [FIX] Drop support for go1.8 and go1.9 [#1933](https://github.com/gin-gonic/gin/pull/1933)
+- [FIX] Bugfix for the FullPath feature [#1919](https://github.com/gin-gonic/gin/pull/1919)
+- [FIX] Gin1.5 bytes.Buffer to strings.Builder [#1939](https://github.com/gin-gonic/gin/pull/1939)
+- [FIX] Upgrade github.com/ugorji/go/codec [#1969](https://github.com/gin-gonic/gin/pull/1969)
+- [NEW] Support bind unix time [#1980](https://github.com/gin-gonic/gin/pull/1980)
+- [FIX] Simplify code [#2004](https://github.com/gin-gonic/gin/pull/2004)
+- [NEW] Support negative Content-Length in DataFromReader [#1981](https://github.com/gin-gonic/gin/pull/1981)
+- [FIX] Identify terminal on a RISC-V architecture for auto-colored logs [#2019](https://github.com/gin-gonic/gin/pull/2019)
+- [BREAKING] `Context.JSONP()` now expects a semicolon (`;`) at the end [#2007](https://github.com/gin-gonic/gin/pull/2007)
+- [BREAKING] Upgrade default `binding.Validator` to v9 (see [its changelog](https://github.com/go-playground/validator/releases/tag/v9.0.0)) [#1015](https://github.com/gin-gonic/gin/pull/1015)
+- [NEW] Add `DisallowUnknownFields()` in `Context.BindJSON()` [#2028](https://github.com/gin-gonic/gin/pull/2028)
+- [NEW] Use specific `net.Listener` with `Engine.RunListener()` [#2023](https://github.com/gin-gonic/gin/pull/2023)
+- [FIX] Fix some typo [#2079](https://github.com/gin-gonic/gin/pull/2079) [#2080](https://github.com/gin-gonic/gin/pull/2080)
+- [FIX] Relocate binding body tests [#2086](https://github.com/gin-gonic/gin/pull/2086)
+- [FIX] Use Writer in Context.Status [#1606](https://github.com/gin-gonic/gin/pull/1606)
+- [FIX] `Engine.RunUnix()` now returns the error if it can't change the file mode [#2093](https://github.com/gin-gonic/gin/pull/2093)
+- [FIX] `RouterGroup.StaticFS()` leaked files. Now it closes them. [#2118](https://github.com/gin-gonic/gin/pull/2118)
+- [FIX] `Context.Request.FormFile` leaked file. Now it closes it. [#2114](https://github.com/gin-gonic/gin/pull/2114)
+- [FIX] Ignore walking on `form:"-"` mapping [#1943](https://github.com/gin-gonic/gin/pull/1943)
+
+### Gin v1.4.0
+
+- [NEW] Support for [Go Modules](https://github.com/golang/go/wiki/Modules) [#1569](https://github.com/gin-gonic/gin/pull/1569)
+- [NEW] Refactor of form mapping multipart request [#1829](https://github.com/gin-gonic/gin/pull/1829)
+- [FIX] Truncate Latency precision in long running request [#1830](https://github.com/gin-gonic/gin/pull/1830)
+- [FIX] IsTerm flag should not be affected by DisableConsoleColor method. [#1802](https://github.com/gin-gonic/gin/pull/1802)
+- [NEW] Supporting file binding [#1264](https://github.com/gin-gonic/gin/pull/1264)
+- [NEW] Add support for mapping arrays [#1797](https://github.com/gin-gonic/gin/pull/1797)
+- [FIX] Readme updates [#1793](https://github.com/gin-gonic/gin/pull/1793) [#1788](https://github.com/gin-gonic/gin/pull/1788) [1789](https://github.com/gin-gonic/gin/pull/1789)
+- [FIX] StaticFS: Fixed Logging two log lines on 404. [#1805](https://github.com/gin-gonic/gin/pull/1805), [#1804](https://github.com/gin-gonic/gin/pull/1804)
+- [NEW] Make context.Keys available as LogFormatterParams [#1779](https://github.com/gin-gonic/gin/pull/1779)
+- [NEW] Use internal/json for Marshal/Unmarshal [#1791](https://github.com/gin-gonic/gin/pull/1791)
+- [NEW] Support mapping time.Duration [#1794](https://github.com/gin-gonic/gin/pull/1794)
+- [NEW] Refactor form mappings [#1749](https://github.com/gin-gonic/gin/pull/1749)
+- [NEW] Added flag to context.Stream indicates if client disconnected in middle of stream [#1252](https://github.com/gin-gonic/gin/pull/1252)
+- [FIX] Moved [examples](https://github.com/gin-gonic/examples) to stand alone Repo [#1775](https://github.com/gin-gonic/gin/pull/1775)
+- [NEW] Extend context.File to allow for the content-disposition attachments via a new method context.Attachment [#1260](https://github.com/gin-gonic/gin/pull/1260)
+- [FIX] Support HTTP content negotiation wildcards [#1112](https://github.com/gin-gonic/gin/pull/1112)
+- [NEW] Add prefix from X-Forwarded-Prefix in redirectTrailingSlash [#1238](https://github.com/gin-gonic/gin/pull/1238)
+- [FIX] context.Copy() race condition [#1020](https://github.com/gin-gonic/gin/pull/1020)
+- [NEW] Add context.HandlerNames() [#1729](https://github.com/gin-gonic/gin/pull/1729)
+- [FIX] Change color methods to public in the defaultLogger. [#1771](https://github.com/gin-gonic/gin/pull/1771)
+- [FIX] Update writeHeaders method to use http.Header.Set [#1722](https://github.com/gin-gonic/gin/pull/1722)
+- [NEW] Add response size to LogFormatterParams [#1752](https://github.com/gin-gonic/gin/pull/1752)
+- [NEW] Allow ignoring field on form mapping [#1733](https://github.com/gin-gonic/gin/pull/1733)
+- [NEW] Add a function to force color in console output. [#1724](https://github.com/gin-gonic/gin/pull/1724)
+- [FIX] Context.Next() - recheck len of handlers on every iteration. [#1745](https://github.com/gin-gonic/gin/pull/1745)
+- [FIX] Fix all errcheck warnings [#1739](https://github.com/gin-gonic/gin/pull/1739) [#1653](https://github.com/gin-gonic/gin/pull/1653)
+- [NEW] context: inherits context cancellation and deadline from http.Request context for Go>=1.7 [#1690](https://github.com/gin-gonic/gin/pull/1690)
+- [NEW] Binding for URL Params [#1694](https://github.com/gin-gonic/gin/pull/1694)
+- [NEW] Add LoggerWithFormatter method [#1677](https://github.com/gin-gonic/gin/pull/1677)
+- [FIX] CI testing updates [#1671](https://github.com/gin-gonic/gin/pull/1671) [#1670](https://github.com/gin-gonic/gin/pull/1670) [#1682](https://github.com/gin-gonic/gin/pull/1682) [#1669](https://github.com/gin-gonic/gin/pull/1669)
+- [FIX] StaticFS(): Send 404 when path does not exist [#1663](https://github.com/gin-gonic/gin/pull/1663)
+- [FIX] Handle nil body for JSON binding [#1638](https://github.com/gin-gonic/gin/pull/1638)
+- [FIX] Support bind uri param [#1612](https://github.com/gin-gonic/gin/pull/1612)
+- [FIX] recovery: fix issue with syscall import on google app engine [#1640](https://github.com/gin-gonic/gin/pull/1640)
+- [FIX] Make sure the debug log contains line breaks [#1650](https://github.com/gin-gonic/gin/pull/1650)
+- [FIX] Panic stack trace being printed during recovery of broken pipe [#1089](https://github.com/gin-gonic/gin/pull/1089) [#1259](https://github.com/gin-gonic/gin/pull/1259)
+- [NEW] RunFd method to run http.Server through a file descriptor [#1609](https://github.com/gin-gonic/gin/pull/1609)
+- [NEW] Yaml binding support [#1618](https://github.com/gin-gonic/gin/pull/1618)
+- [FIX] Pass MaxMultipartMemory when FormFile is called [#1600](https://github.com/gin-gonic/gin/pull/1600)
+- [FIX] LoadHTML* tests [#1559](https://github.com/gin-gonic/gin/pull/1559)
+- [FIX] Removed use of sync.pool from HandleContext [#1565](https://github.com/gin-gonic/gin/pull/1565)
+- [FIX] Format output log to os.Stderr [#1571](https://github.com/gin-gonic/gin/pull/1571)
+- [FIX] Make logger use a yellow background and a darkgray text for legibility [#1570](https://github.com/gin-gonic/gin/pull/1570)
+- [FIX] Remove sensitive request information from panic log. [#1370](https://github.com/gin-gonic/gin/pull/1370)
+- [FIX] log.Println() does not print timestamp [#829](https://github.com/gin-gonic/gin/pull/829) [#1560](https://github.com/gin-gonic/gin/pull/1560)
+- [NEW] Add PureJSON renderer [#694](https://github.com/gin-gonic/gin/pull/694)
+- [FIX] Add missing copyright and update if/else [#1497](https://github.com/gin-gonic/gin/pull/1497)
+- [FIX] Update msgpack usage [#1498](https://github.com/gin-gonic/gin/pull/1498)
+- [FIX] Use protobuf on render [#1496](https://github.com/gin-gonic/gin/pull/1496)
+- [FIX] Add support for Protobuf format response [#1479](https://github.com/gin-gonic/gin/pull/1479)
+- [NEW] Set default time format in form binding [#1487](https://github.com/gin-gonic/gin/pull/1487)
+- [FIX] Add BindXML and ShouldBindXML [#1485](https://github.com/gin-gonic/gin/pull/1485)
+- [NEW] Upgrade dependency libraries [#1491](https://github.com/gin-gonic/gin/pull/1491)
+
+
+## Gin v1.3.0
+
+- [NEW] Add [`func (*Context) QueryMap`](https://godoc.org/github.com/gin-gonic/gin#Context.QueryMap), [`func (*Context) GetQueryMap`](https://godoc.org/github.com/gin-gonic/gin#Context.GetQueryMap), [`func (*Context) PostFormMap`](https://godoc.org/github.com/gin-gonic/gin#Context.PostFormMap) and [`func (*Context) GetPostFormMap`](https://godoc.org/github.com/gin-gonic/gin#Context.GetPostFormMap) to support `type map[string]string` as query string or form parameters, see [#1383](https://github.com/gin-gonic/gin/pull/1383)
+- [NEW] Add [`func (*Context) AsciiJSON`](https://godoc.org/github.com/gin-gonic/gin#Context.AsciiJSON), see [#1358](https://github.com/gin-gonic/gin/pull/1358)
+- [NEW] Add `Pusher()` in [`type ResponseWriter`](https://godoc.org/github.com/gin-gonic/gin#ResponseWriter) for supporting http2 push, see [#1273](https://github.com/gin-gonic/gin/pull/1273)
+- [NEW] Add [`func (*Context) DataFromReader`](https://godoc.org/github.com/gin-gonic/gin#Context.DataFromReader) for serving dynamic data, see [#1304](https://github.com/gin-gonic/gin/pull/1304)
+- [NEW] Add [`func (*Context) ShouldBindBodyWith`](https://godoc.org/github.com/gin-gonic/gin#Context.ShouldBindBodyWith) allowing to call binding multiple times, see [#1341](https://github.com/gin-gonic/gin/pull/1341)
+- [NEW] Support pointers in form binding, see [#1336](https://github.com/gin-gonic/gin/pull/1336)
+- [NEW] Add [`func (*Context) JSONP`](https://godoc.org/github.com/gin-gonic/gin#Context.JSONP), see [#1333](https://github.com/gin-gonic/gin/pull/1333)
+- [NEW] Support default value in form binding, see [#1138](https://github.com/gin-gonic/gin/pull/1138)
+- [NEW] Expose validator engine in [`type StructValidator`](https://godoc.org/github.com/gin-gonic/gin/binding#StructValidator), see [#1277](https://github.com/gin-gonic/gin/pull/1277)
+- [NEW] Add [`func (*Context) ShouldBind`](https://godoc.org/github.com/gin-gonic/gin#Context.ShouldBind), [`func (*Context) ShouldBindQuery`](https://godoc.org/github.com/gin-gonic/gin#Context.ShouldBindQuery) and [`func (*Context) ShouldBindJSON`](https://godoc.org/github.com/gin-gonic/gin#Context.ShouldBindJSON), see [#1047](https://github.com/gin-gonic/gin/pull/1047)
+- [NEW] Add support for `time.Time` location in form binding, see [#1117](https://github.com/gin-gonic/gin/pull/1117)
+- [NEW] Add [`func (*Context) BindQuery`](https://godoc.org/github.com/gin-gonic/gin#Context.BindQuery), see [#1029](https://github.com/gin-gonic/gin/pull/1029)
+- [NEW] Make [jsonite](https://github.com/json-iterator/go) optional with build tags, see [#1026](https://github.com/gin-gonic/gin/pull/1026)
+- [NEW] Show query string in logger, see [#999](https://github.com/gin-gonic/gin/pull/999)
+- [NEW] Add [`func (*Context) SecureJSON`](https://godoc.org/github.com/gin-gonic/gin#Context.SecureJSON), see [#987](https://github.com/gin-gonic/gin/pull/987) and [#993](https://github.com/gin-gonic/gin/pull/993)
+- [DEPRECATE] `func (*Context) GetCookie` for [`func (*Context) Cookie`](https://godoc.org/github.com/gin-gonic/gin#Context.Cookie)
+- [FIX] Don't display color tags if [`func DisableConsoleColor`](https://godoc.org/github.com/gin-gonic/gin#DisableConsoleColor) called, see [#1072](https://github.com/gin-gonic/gin/pull/1072)
+- [FIX] Gin Mode `""` when calling [`func Mode`](https://godoc.org/github.com/gin-gonic/gin#Mode) now returns `const DebugMode`, see [#1250](https://github.com/gin-gonic/gin/pull/1250)
+- [FIX] `Flush()` now doesn't overwrite `responseWriter` status code, see [#1460](https://github.com/gin-gonic/gin/pull/1460)
+
+## Gin 1.2.0
+
+- [NEW] Switch from godeps to govendor
+- [NEW] Add support for Let's Encrypt via gin-gonic/autotls
+- [NEW] Improve README examples and add extra at examples folder
+- [NEW] Improved support with App Engine
+- [NEW] Add custom template delimiters, see #860
+- [NEW] Add Template Func Maps, see #962
+- [NEW] Add \*context.Handler(), see #928
+- [NEW] Add \*context.GetRawData()
+- [NEW] Add \*context.GetHeader() (request)
+- [NEW] Add \*context.AbortWithStatusJSON() (JSON content type)
+- [NEW] Add \*context.Keys type cast helpers
+- [NEW] Add \*context.ShouldBindWith()
+- [NEW] Add \*context.MustBindWith()
+- [NEW] Add \*engine.SetFuncMap()
+- [DEPRECATE] On next release: \*context.BindWith(), see #855
+- [FIX] Refactor render
+- [FIX] Reworked tests
+- [FIX] logger now supports cygwin
+- [FIX] Use X-Forwarded-For before X-Real-Ip
+- [FIX] time.Time binding (#904)
+
+## Gin 1.1.4
+
+- [NEW] Support google appengine for IsTerminal func
+
+## Gin 1.1.3
+
+- [FIX] Reverted Logger: skip ANSI color commands
+
+## Gin 1.1
+
+- [NEW] Implement QueryArray and PostArray methods
+- [NEW] Refactor GetQuery and GetPostForm
+- [NEW] Add contribution guide
+- [FIX] Corrected typos in README
+- [FIX] Removed additional Iota
+- [FIX] Changed imports to gopkg instead of github in README (#733)
+- [FIX] Logger: skip ANSI color commands if output is not a tty
+
+## Gin 1.0rc2 (...)
+
+- [PERFORMANCE] Fast path for writing Content-Type.
+- [PERFORMANCE] Much faster 404 routing
+- [PERFORMANCE] Allocation optimizations
+- [PERFORMANCE] Faster root tree lookup
+- [PERFORMANCE] Zero overhead, String() and JSON() rendering.
+- [PERFORMANCE] Faster ClientIP parsing
+- [PERFORMANCE] Much faster SSE implementation
+- [NEW] Benchmarks suite
+- [NEW] Bind validation can be disabled and replaced with custom validators.
+- [NEW] More flexible HTML render
+- [NEW] Multipart and PostForm bindings
+- [NEW] Adds method to return all the registered routes
+- [NEW] Context.HandlerName() returns the main handler's name
+- [NEW] Adds Error.IsType() helper
+- [FIX] Binding multipart form
+- [FIX] Integration tests
+- [FIX] Crash when binding non struct object in Context.
+- [FIX] RunTLS() implementation
+- [FIX] Logger() unit tests
+- [FIX] Adds SetHTMLTemplate() warning
+- [FIX] Context.IsAborted()
+- [FIX] More unit tests
+- [FIX] JSON, XML, HTML renders accept custom content-types
+- [FIX] gin.AbortIndex is unexported
+- [FIX] Better approach to avoid directory listing in StaticFS()
+- [FIX] Context.ClientIP() always returns the IP with trimmed spaces.
+- [FIX] Better warning when running in debug mode.
+- [FIX] Google App Engine integration. debugPrint does not use os.Stdout
+- [FIX] Fixes integer overflow in error type
+- [FIX] Error implements the json.Marshaller interface
+- [FIX] MIT license in every file
+
+
+## Gin 1.0rc1 (May 22, 2015)
+
+- [PERFORMANCE] Zero allocation router
+- [PERFORMANCE] Faster JSON, XML and text rendering
+- [PERFORMANCE] Custom hand optimized HttpRouter for Gin
+- [PERFORMANCE] Misc code optimizations. Inlining, tail call optimizations
+- [NEW] Built-in support for golang.org/x/net/context
+- [NEW] Any(path, handler). Create a route that matches any path
+- [NEW] Refactored rendering pipeline (faster and static typed)
+- [NEW] Refactored errors API
+- [NEW] IndentedJSON() prints pretty JSON
+- [NEW] Added gin.DefaultWriter
+- [NEW] UNIX socket support
+- [NEW] RouterGroup.BasePath is exposed
+- [NEW] JSON validation using go-validate-yourself (very powerful options)
+- [NEW] Completed suite of unit tests
+- [NEW] HTTP streaming with c.Stream()
+- [NEW] StaticFile() creates a router for serving just one file.
+- [NEW] StaticFS() has an option to disable directory listing.
+- [NEW] StaticFS() for serving static files through virtual filesystems
+- [NEW] Server-Sent Events native support
+- [NEW] WrapF() and WrapH() helpers for wrapping http.HandlerFunc and http.Handler
+- [NEW] Added LoggerWithWriter() middleware
+- [NEW] Added RecoveryWithWriter() middleware
+- [NEW] Added DefaultPostFormValue()
+- [NEW] Added DefaultFormValue()
+- [NEW] Added DefaultParamValue()
+- [FIX] BasicAuth() when using custom realm
+- [FIX] Bug when serving static files in nested routing group
+- [FIX] Redirect using built-in http.Redirect()
+- [FIX] Logger when printing the requested path
+- [FIX] Documentation typos
+- [FIX] Context.Engine renamed to Context.engine
+- [FIX] Better debugging messages
+- [FIX] ErrorLogger
+- [FIX] Debug HTTP render
+- [FIX] Refactored binding and render modules
+- [FIX] Refactored Context initialization
+- [FIX] Refactored BasicAuth()
+- [FIX] NoMethod/NoRoute handlers
+- [FIX] Hijacking http
+- [FIX] Better support for Google App Engine (using log instead of fmt)
+
+
+## Gin 0.6 (Mar 9, 2015)
+
+- [NEW] Support multipart/form-data
+- [NEW] NoMethod handler
+- [NEW] Validate sub structures
+- [NEW] Support for HTTP Realm Auth
+- [FIX] Unsigned integers in binding
+- [FIX] Improve color logger
+
+
+## Gin 0.5 (Feb 7, 2015)
+
+- [NEW] Content Negotiation
+- [FIX] Solved security bug that allow a client to spoof ip
+- [FIX] Fix unexported/ignored fields in binding
+
+
+## Gin 0.4 (Aug 21, 2014)
+
+- [NEW] Development mode
+- [NEW] Unit tests
+- [NEW] Add Content.Redirect()
+- [FIX] Deferring WriteHeader()
+- [FIX] Improved documentation for model binding
+
+
+## Gin 0.3 (Jul 18, 2014)
+
+- [PERFORMANCE] Normal log and error log are printed in the same call.
+- [PERFORMANCE] Improve performance of NoRouter()
+- [PERFORMANCE] Improve context's memory locality, reduce CPU cache faults.
+- [NEW] Flexible rendering API
+- [NEW] Add Context.File()
+- [NEW] Add shortcut RunTLS() for http.ListenAndServeTLS
+- [FIX] Rename NotFound404() to NoRoute()
+- [FIX] Errors in context are purged
+- [FIX] Adds HEAD method in Static file serving
+- [FIX] Refactors Static() file serving
+- [FIX] Using keyed initialization to fix app-engine integration
+- [FIX] Can't unmarshal JSON array, #63
+- [FIX] Renaming Context.Req to Context.Request
+- [FIX] Check application/x-www-form-urlencoded when parsing form
+
+
+## Gin 0.2b (Jul 08, 2014)
+- [PERFORMANCE] Using sync.Pool to allocatio/gc overhead
+- [NEW] Travis CI integration
+- [NEW] Completely new logger
+- [NEW] New API for serving static files. gin.Static()
+- [NEW] gin.H() can be serialized into XML
+- [NEW] Typed errors. Errors can be typed. Internet/external/custom.
+- [NEW] Support for Godeps
+- [NEW] Travis/Godocs badges in README
+- [NEW] New Bind() and BindWith() methods for parsing request body.
+- [NEW] Add Content.Copy()
+- [NEW] Add context.LastError()
+- [NEW] Add shortcut for OPTIONS HTTP method
+- [FIX] Tons of README fixes
+- [FIX] Header is written before body
+- [FIX] BasicAuth() and changes API a little bit
+- [FIX] Recovery() middleware only prints panics
+- [FIX] Context.Get() does not panic anymore. Use MustGet() instead.
+- [FIX] Multiple http.WriteHeader() in NotFound handlers
+- [FIX] Engine.Run() panics if http server can't be set up
+- [FIX] Crash when route path doesn't start with '/'
+- [FIX] Do not update header when status code is negative
+- [FIX] Setting response headers before calling WriteHeader in context.String()
+- [FIX] Add MIT license
+- [FIX] Changes behaviour of ErrorLogger() and Logger()
diff --git a/vendor/github.com/gin-gonic/gin/CODE_OF_CONDUCT.md b/vendor/github.com/gin-gonic/gin/CODE_OF_CONDUCT.md
new file mode 100644
index 000000000..4ea14f395
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/CODE_OF_CONDUCT.md
@@ -0,0 +1,46 @@
+# Contributor Covenant Code of Conduct
+
+## Our Pledge
+
+In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
+
+## Our Standards
+
+Examples of behavior that contributes to creating a positive environment include:
+
+* Using welcoming and inclusive language
+* Being respectful of differing viewpoints and experiences
+* Gracefully accepting constructive criticism
+* Focusing on what is best for the community
+* Showing empathy towards other community members
+
+Examples of unacceptable behavior by participants include:
+
+* The use of sexualized language or imagery and unwelcome sexual attention or advances
+* Trolling, insulting/derogatory comments, and personal or political attacks
+* Public or private harassment
+* Publishing others' private information, such as a physical or electronic address, without explicit permission
+* Other conduct which could reasonably be considered inappropriate in a professional setting
+
+## Our Responsibilities
+
+Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
+
+Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
+
+## Scope
+
+This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
+
+## Enforcement
+
+Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at teamgingonic@gmail.com. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
+
+Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
+
+## Attribution
+
+This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
+
+[homepage]: http://contributor-covenant.org
+[version]: http://contributor-covenant.org/version/1/4/
diff --git a/vendor/github.com/gin-gonic/gin/CONTRIBUTING.md b/vendor/github.com/gin-gonic/gin/CONTRIBUTING.md
new file mode 100644
index 000000000..d1c723c67
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/CONTRIBUTING.md
@@ -0,0 +1,13 @@
+## Contributing
+
+- With issues:
+ - Use the search tool before opening a new issue.
+ - Please provide source code and commit sha if you found a bug.
+ - Review existing issues and provide feedback or react to them.
+
+- With pull requests:
+ - Open your pull request against `master`
+ - Your pull request should have no more than two commits, if not you should squash them.
+ - It should pass all tests in the available continuous integration systems such as GitHub Actions.
+ - You should add/modify tests to cover your proposed code changes.
+ - If your pull request contains a new feature, please document it on the README.
diff --git a/vendor/github.com/gin-gonic/gin/LICENSE b/vendor/github.com/gin-gonic/gin/LICENSE
new file mode 100644
index 000000000..1ff7f3706
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014 Manuel Martínez-Almeida
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
diff --git a/vendor/github.com/gin-gonic/gin/Makefile b/vendor/github.com/gin-gonic/gin/Makefile
new file mode 100644
index 000000000..5d55b444c
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/Makefile
@@ -0,0 +1,77 @@
+GO ?= go
+GOFMT ?= gofmt "-s"
+GO_VERSION=$(shell $(GO) version | cut -c 14- | cut -d' ' -f1 | cut -d'.' -f2)
+PACKAGES ?= $(shell $(GO) list ./...)
+VETPACKAGES ?= $(shell $(GO) list ./... | grep -v /examples/)
+GOFILES := $(shell find . -name "*.go")
+TESTFOLDER := $(shell $(GO) list ./... | grep -E 'gin$$|binding$$|render$$' | grep -v examples)
+TESTTAGS ?= ""
+
+.PHONY: test
+test:
+ echo "mode: count" > coverage.out
+ for d in $(TESTFOLDER); do \
+ $(GO) test -tags $(TESTTAGS) -v -covermode=count -coverprofile=profile.out $$d > tmp.out; \
+ cat tmp.out; \
+ if grep -q "^--- FAIL" tmp.out; then \
+ rm tmp.out; \
+ exit 1; \
+ elif grep -q "build failed" tmp.out; then \
+ rm tmp.out; \
+ exit 1; \
+ elif grep -q "setup failed" tmp.out; then \
+ rm tmp.out; \
+ exit 1; \
+ fi; \
+ if [ -f profile.out ]; then \
+ cat profile.out | grep -v "mode:" >> coverage.out; \
+ rm profile.out; \
+ fi; \
+ done
+
+.PHONY: fmt
+fmt:
+ $(GOFMT) -w $(GOFILES)
+
+.PHONY: fmt-check
+fmt-check:
+ @diff=$$($(GOFMT) -d $(GOFILES)); \
+ if [ -n "$$diff" ]; then \
+ echo "Please run 'make fmt' and commit the result:"; \
+ echo "$${diff}"; \
+ exit 1; \
+ fi;
+
+vet:
+ $(GO) vet $(VETPACKAGES)
+
+.PHONY: lint
+lint:
+ @hash golint > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ $(GO) get -u golang.org/x/lint/golint; \
+ fi
+ for PKG in $(PACKAGES); do golint -set_exit_status $$PKG || exit 1; done;
+
+.PHONY: misspell-check
+misspell-check:
+ @hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ $(GO) get -u github.com/client9/misspell/cmd/misspell; \
+ fi
+ misspell -error $(GOFILES)
+
+.PHONY: misspell
+misspell:
+ @hash misspell > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
+ $(GO) get -u github.com/client9/misspell/cmd/misspell; \
+ fi
+ misspell -w $(GOFILES)
+
+.PHONY: tools
+tools:
+ @if [ $(GO_VERSION) -gt 15 ]; then \
+ $(GO) install golang.org/x/lint/golint@latest; \
+ $(GO) install github.com/client9/misspell/cmd/misspell@latest; \
+ elif [ $(GO_VERSION) -lt 16 ]; then \
+ $(GO) install golang.org/x/lint/golint; \
+ $(GO) install github.com/client9/misspell/cmd/misspell; \
+ fi
diff --git a/vendor/github.com/gin-gonic/gin/README.md b/vendor/github.com/gin-gonic/gin/README.md
new file mode 100644
index 000000000..ef8011793
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/README.md
@@ -0,0 +1,2289 @@
+# Gin Web Framework
+
+
+
+[![Build Status](https://github.com/gin-gonic/gin/workflows/Run%20Tests/badge.svg?branch=master)](https://github.com/gin-gonic/gin/actions?query=branch%3Amaster)
+[![codecov](https://codecov.io/gh/gin-gonic/gin/branch/master/graph/badge.svg)](https://codecov.io/gh/gin-gonic/gin)
+[![Go Report Card](https://goreportcard.com/badge/github.com/gin-gonic/gin)](https://goreportcard.com/report/github.com/gin-gonic/gin)
+[![GoDoc](https://pkg.go.dev/badge/github.com/gin-gonic/gin?status.svg)](https://pkg.go.dev/github.com/gin-gonic/gin?tab=doc)
+[![Join the chat at https://gitter.im/gin-gonic/gin](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/gin-gonic/gin?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
+[![Sourcegraph](https://sourcegraph.com/github.com/gin-gonic/gin/-/badge.svg)](https://sourcegraph.com/github.com/gin-gonic/gin?badge)
+[![Open Source Helpers](https://www.codetriage.com/gin-gonic/gin/badges/users.svg)](https://www.codetriage.com/gin-gonic/gin)
+[![Release](https://img.shields.io/github/release/gin-gonic/gin.svg?style=flat-square)](https://github.com/gin-gonic/gin/releases)
+[![TODOs](https://badgen.net/https/api.tickgit.com/badgen/github.com/gin-gonic/gin)](https://www.tickgit.com/browse?repo=github.com/gin-gonic/gin)
+
+Gin is a web framework written in Go (Golang). It features a martini-like API with performance that is up to 40 times faster thanks to [httprouter](https://github.com/julienschmidt/httprouter). If you need performance and good productivity, you will love Gin.
+
+
+## Contents
+
+- [Gin Web Framework](#gin-web-framework)
+ - [Contents](#contents)
+ - [Installation](#installation)
+ - [Quick start](#quick-start)
+ - [Benchmarks](#benchmarks)
+ - [Gin v1. stable](#gin-v1-stable)
+ - [Build with jsoniter/go-json](#build-with-json-replacement)
+ - [Build without `MsgPack` rendering feature](#build-without-msgpack-rendering-feature)
+ - [API Examples](#api-examples)
+ - [Using GET, POST, PUT, PATCH, DELETE and OPTIONS](#using-get-post-put-patch-delete-and-options)
+ - [Parameters in path](#parameters-in-path)
+ - [Querystring parameters](#querystring-parameters)
+ - [Multipart/Urlencoded Form](#multiparturlencoded-form)
+ - [Another example: query + post form](#another-example-query--post-form)
+ - [Map as querystring or postform parameters](#map-as-querystring-or-postform-parameters)
+ - [Upload files](#upload-files)
+ - [Single file](#single-file)
+ - [Multiple files](#multiple-files)
+ - [Grouping routes](#grouping-routes)
+ - [Blank Gin without middleware by default](#blank-gin-without-middleware-by-default)
+ - [Using middleware](#using-middleware)
+ - [How to write log file](#how-to-write-log-file)
+ - [Custom Log Format](#custom-log-format)
+ - [Controlling Log output coloring](#controlling-log-output-coloring)
+ - [Model binding and validation](#model-binding-and-validation)
+ - [Custom Validators](#custom-validators)
+ - [Only Bind Query String](#only-bind-query-string)
+ - [Bind Query String or Post Data](#bind-query-string-or-post-data)
+ - [Bind Uri](#bind-uri)
+ - [Bind Header](#bind-header)
+ - [Bind HTML checkboxes](#bind-html-checkboxes)
+ - [Multipart/Urlencoded binding](#multiparturlencoded-binding)
+ - [XML, JSON, YAML and ProtoBuf rendering](#xml-json-yaml-and-protobuf-rendering)
+ - [SecureJSON](#securejson)
+ - [JSONP](#jsonp)
+ - [AsciiJSON](#asciijson)
+ - [PureJSON](#purejson)
+ - [Serving static files](#serving-static-files)
+ - [Serving data from file](#serving-data-from-file)
+ - [Serving data from reader](#serving-data-from-reader)
+ - [HTML rendering](#html-rendering)
+ - [Custom Template renderer](#custom-template-renderer)
+ - [Custom Delimiters](#custom-delimiters)
+ - [Custom Template Funcs](#custom-template-funcs)
+ - [Multitemplate](#multitemplate)
+ - [Redirects](#redirects)
+ - [Custom Middleware](#custom-middleware)
+ - [Using BasicAuth() middleware](#using-basicauth-middleware)
+ - [Goroutines inside a middleware](#goroutines-inside-a-middleware)
+ - [Custom HTTP configuration](#custom-http-configuration)
+ - [Support Let's Encrypt](#support-lets-encrypt)
+ - [Run multiple service using Gin](#run-multiple-service-using-gin)
+ - [Graceful shutdown or restart](#graceful-shutdown-or-restart)
+ - [Third-party packages](#third-party-packages)
+ - [Manually](#manually)
+ - [Build a single binary with templates](#build-a-single-binary-with-templates)
+ - [Bind form-data request with custom struct](#bind-form-data-request-with-custom-struct)
+ - [Try to bind body into different structs](#try-to-bind-body-into-different-structs)
+ - [http2 server push](#http2-server-push)
+ - [Define format for the log of routes](#define-format-for-the-log-of-routes)
+ - [Set and get a cookie](#set-and-get-a-cookie)
+ - [Testing](#testing)
+ - [Users](#users)
+
+## Installation
+
+To install Gin package, you need to install Go and set your Go workspace first.
+
+1. The first need [Go](https://golang.org/) installed (**version 1.13+ is required**), then you can use the below Go command to install Gin.
+
+```sh
+$ go get -u github.com/gin-gonic/gin
+```
+
+2. Import it in your code:
+
+```go
+import "github.com/gin-gonic/gin"
+```
+
+3. (Optional) Import `net/http`. This is required for example if using constants such as `http.StatusOK`.
+
+```go
+import "net/http"
+```
+
+## Quick start
+
+```sh
+# assume the following codes in example.go file
+$ cat example.go
+```
+
+```go
+package main
+
+import "github.com/gin-gonic/gin"
+
+func main() {
+ r := gin.Default()
+ r.GET("/ping", func(c *gin.Context) {
+ c.JSON(200, gin.H{
+ "message": "pong",
+ })
+ })
+ r.Run() // listen and serve on 0.0.0.0:8080 (for windows "localhost:8080")
+}
+```
+
+```
+# run example.go and visit 0.0.0.0:8080/ping (for windows "localhost:8080/ping") on browser
+$ go run example.go
+```
+
+## Benchmarks
+
+Gin uses a custom version of [HttpRouter](https://github.com/julienschmidt/httprouter)
+
+[See all benchmarks](/BENCHMARKS.md)
+
+| Benchmark name | (1) | (2) | (3) | (4) |
+| ------------------------------ | ---------:| ---------------:| ------------:| ---------------:|
+| BenchmarkGin_GithubAll | **43550** | **27364 ns/op** | **0 B/op** | **0 allocs/op** |
+| BenchmarkAce_GithubAll | 40543 | 29670 ns/op | 0 B/op | 0 allocs/op |
+| BenchmarkAero_GithubAll | 57632 | 20648 ns/op | 0 B/op | 0 allocs/op |
+| BenchmarkBear_GithubAll | 9234 | 216179 ns/op | 86448 B/op | 943 allocs/op |
+| BenchmarkBeego_GithubAll | 7407 | 243496 ns/op | 71456 B/op | 609 allocs/op |
+| BenchmarkBone_GithubAll | 420 | 2922835 ns/op | 720160 B/op | 8620 allocs/op |
+| BenchmarkChi_GithubAll | 7620 | 238331 ns/op | 87696 B/op | 609 allocs/op |
+| BenchmarkDenco_GithubAll | 18355 | 64494 ns/op | 20224 B/op | 167 allocs/op |
+| BenchmarkEcho_GithubAll | 31251 | 38479 ns/op | 0 B/op | 0 allocs/op |
+| BenchmarkGocraftWeb_GithubAll | 4117 | 300062 ns/op | 131656 B/op | 1686 allocs/op |
+| BenchmarkGoji_GithubAll | 3274 | 416158 ns/op | 56112 B/op | 334 allocs/op |
+| BenchmarkGojiv2_GithubAll | 1402 | 870518 ns/op | 352720 B/op | 4321 allocs/op |
+| BenchmarkGoJsonRest_GithubAll | 2976 | 401507 ns/op | 134371 B/op | 2737 allocs/op |
+| BenchmarkGoRestful_GithubAll | 410 | 2913158 ns/op | 910144 B/op | 2938 allocs/op |
+| BenchmarkGorillaMux_GithubAll | 346 | 3384987 ns/op | 251650 B/op | 1994 allocs/op |
+| BenchmarkGowwwRouter_GithubAll | 10000 | 143025 ns/op | 72144 B/op | 501 allocs/op |
+| BenchmarkHttpRouter_GithubAll | 55938 | 21360 ns/op | 0 B/op | 0 allocs/op |
+| BenchmarkHttpTreeMux_GithubAll | 10000 | 153944 ns/op | 65856 B/op | 671 allocs/op |
+| BenchmarkKocha_GithubAll | 10000 | 106315 ns/op | 23304 B/op | 843 allocs/op |
+| BenchmarkLARS_GithubAll | 47779 | 25084 ns/op | 0 B/op | 0 allocs/op |
+| BenchmarkMacaron_GithubAll | 3266 | 371907 ns/op | 149409 B/op | 1624 allocs/op |
+| BenchmarkMartini_GithubAll | 331 | 3444706 ns/op | 226551 B/op | 2325 allocs/op |
+| BenchmarkPat_GithubAll | 273 | 4381818 ns/op | 1483152 B/op | 26963 allocs/op |
+| BenchmarkPossum_GithubAll | 10000 | 164367 ns/op | 84448 B/op | 609 allocs/op |
+| BenchmarkR2router_GithubAll | 10000 | 160220 ns/op | 77328 B/op | 979 allocs/op |
+| BenchmarkRivet_GithubAll | 14625 | 82453 ns/op | 16272 B/op | 167 allocs/op |
+| BenchmarkTango_GithubAll | 6255 | 279611 ns/op | 63826 B/op | 1618 allocs/op |
+| BenchmarkTigerTonic_GithubAll | 2008 | 687874 ns/op | 193856 B/op | 4474 allocs/op |
+| BenchmarkTraffic_GithubAll | 355 | 3478508 ns/op | 820744 B/op | 14114 allocs/op |
+| BenchmarkVulcan_GithubAll | 6885 | 193333 ns/op | 19894 B/op | 609 allocs/op |
+
+- (1): Total Repetitions achieved in constant time, higher means more confident result
+- (2): Single Repetition Duration (ns/op), lower is better
+- (3): Heap Memory (B/op), lower is better
+- (4): Average Allocations per Repetition (allocs/op), lower is better
+
+## Gin v1. stable
+
+- [x] Zero allocation router.
+- [x] Still the fastest http router and framework. From routing to writing.
+- [x] Complete suite of unit tests.
+- [x] Battle tested.
+- [x] API frozen, new releases will not break your code.
+
+## Build with json replacement
+
+Gin uses `encoding/json` as default json package but you can change it by build from other tags.
+
+[jsoniter](https://github.com/json-iterator/go)
+```sh
+$ go build -tags=jsoniter .
+```
+[go-json](https://github.com/goccy/go-json)
+```sh
+$ go build -tags=go_json .
+```
+
+## Build without `MsgPack` rendering feature
+
+Gin enables `MsgPack` rendering feature by default. But you can disable this feature by specifying `nomsgpack` build tag.
+
+```sh
+$ go build -tags=nomsgpack .
+```
+
+This is useful to reduce the binary size of executable files. See the [detail information](https://github.com/gin-gonic/gin/pull/1852).
+
+## API Examples
+
+You can find a number of ready-to-run examples at [Gin examples repository](https://github.com/gin-gonic/examples).
+
+### Using GET, POST, PUT, PATCH, DELETE and OPTIONS
+
+```go
+func main() {
+ // Creates a gin router with default middleware:
+ // logger and recovery (crash-free) middleware
+ router := gin.Default()
+
+ router.GET("/someGet", getting)
+ router.POST("/somePost", posting)
+ router.PUT("/somePut", putting)
+ router.DELETE("/someDelete", deleting)
+ router.PATCH("/somePatch", patching)
+ router.HEAD("/someHead", head)
+ router.OPTIONS("/someOptions", options)
+
+ // By default it serves on :8080 unless a
+ // PORT environment variable was defined.
+ router.Run()
+ // router.Run(":3000") for a hard coded port
+}
+```
+
+### Parameters in path
+
+```go
+func main() {
+ router := gin.Default()
+
+ // This handler will match /user/john but will not match /user/ or /user
+ router.GET("/user/:name", func(c *gin.Context) {
+ name := c.Param("name")
+ c.String(http.StatusOK, "Hello %s", name)
+ })
+
+ // However, this one will match /user/john/ and also /user/john/send
+ // If no other routers match /user/john, it will redirect to /user/john/
+ router.GET("/user/:name/*action", func(c *gin.Context) {
+ name := c.Param("name")
+ action := c.Param("action")
+ message := name + " is " + action
+ c.String(http.StatusOK, message)
+ })
+
+ // For each matched request Context will hold the route definition
+ router.POST("/user/:name/*action", func(c *gin.Context) {
+ c.FullPath() == "/user/:name/*action" // true
+ })
+
+ // This handler will add a new router for /user/groups.
+ // Exact routes are resolved before param routes, regardless of the order they were defined.
+ // Routes starting with /user/groups are never interpreted as /user/:name/... routes
+ router.GET("/user/groups", func(c *gin.Context) {
+ c.String(http.StatusOK, "The available groups are [...]", name)
+ })
+
+ router.Run(":8080")
+}
+```
+
+### Querystring parameters
+
+```go
+func main() {
+ router := gin.Default()
+
+ // Query string parameters are parsed using the existing underlying request object.
+ // The request responds to a url matching: /welcome?firstname=Jane&lastname=Doe
+ router.GET("/welcome", func(c *gin.Context) {
+ firstname := c.DefaultQuery("firstname", "Guest")
+ lastname := c.Query("lastname") // shortcut for c.Request.URL.Query().Get("lastname")
+
+ c.String(http.StatusOK, "Hello %s %s", firstname, lastname)
+ })
+ router.Run(":8080")
+}
+```
+
+### Multipart/Urlencoded Form
+
+```go
+func main() {
+ router := gin.Default()
+
+ router.POST("/form_post", func(c *gin.Context) {
+ message := c.PostForm("message")
+ nick := c.DefaultPostForm("nick", "anonymous")
+
+ c.JSON(200, gin.H{
+ "status": "posted",
+ "message": message,
+ "nick": nick,
+ })
+ })
+ router.Run(":8080")
+}
+```
+
+### Another example: query + post form
+
+```
+POST /post?id=1234&page=1 HTTP/1.1
+Content-Type: application/x-www-form-urlencoded
+
+name=manu&message=this_is_great
+```
+
+```go
+func main() {
+ router := gin.Default()
+
+ router.POST("/post", func(c *gin.Context) {
+
+ id := c.Query("id")
+ page := c.DefaultQuery("page", "0")
+ name := c.PostForm("name")
+ message := c.PostForm("message")
+
+ fmt.Printf("id: %s; page: %s; name: %s; message: %s", id, page, name, message)
+ })
+ router.Run(":8080")
+}
+```
+
+```
+id: 1234; page: 1; name: manu; message: this_is_great
+```
+
+### Map as querystring or postform parameters
+
+```
+POST /post?ids[a]=1234&ids[b]=hello HTTP/1.1
+Content-Type: application/x-www-form-urlencoded
+
+names[first]=thinkerou&names[second]=tianou
+```
+
+```go
+func main() {
+ router := gin.Default()
+
+ router.POST("/post", func(c *gin.Context) {
+
+ ids := c.QueryMap("ids")
+ names := c.PostFormMap("names")
+
+ fmt.Printf("ids: %v; names: %v", ids, names)
+ })
+ router.Run(":8080")
+}
+```
+
+```
+ids: map[b:hello a:1234]; names: map[second:tianou first:thinkerou]
+```
+
+### Upload files
+
+#### Single file
+
+References issue [#774](https://github.com/gin-gonic/gin/issues/774) and detail [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/single).
+
+`file.Filename` **SHOULD NOT** be trusted. See [`Content-Disposition` on MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Content-Disposition#Directives) and [#1693](https://github.com/gin-gonic/gin/issues/1693)
+
+> The filename is always optional and must not be used blindly by the application: path information should be stripped, and conversion to the server file system rules should be done.
+
+```go
+func main() {
+ router := gin.Default()
+ // Set a lower memory limit for multipart forms (default is 32 MiB)
+ router.MaxMultipartMemory = 8 << 20 // 8 MiB
+ router.POST("/upload", func(c *gin.Context) {
+ // single file
+ file, _ := c.FormFile("file")
+ log.Println(file.Filename)
+
+ // Upload the file to specific dst.
+ c.SaveUploadedFile(file, dst)
+
+ c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
+ })
+ router.Run(":8080")
+}
+```
+
+How to `curl`:
+
+```bash
+curl -X POST http://localhost:8080/upload \
+ -F "file=@/Users/appleboy/test.zip" \
+ -H "Content-Type: multipart/form-data"
+```
+
+#### Multiple files
+
+See the detail [example code](https://github.com/gin-gonic/examples/tree/master/upload-file/multiple).
+
+```go
+func main() {
+ router := gin.Default()
+ // Set a lower memory limit for multipart forms (default is 32 MiB)
+ router.MaxMultipartMemory = 8 << 20 // 8 MiB
+ router.POST("/upload", func(c *gin.Context) {
+ // Multipart form
+ form, _ := c.MultipartForm()
+ files := form.File["upload[]"]
+
+ for _, file := range files {
+ log.Println(file.Filename)
+
+ // Upload the file to specific dst.
+ c.SaveUploadedFile(file, dst)
+ }
+ c.String(http.StatusOK, fmt.Sprintf("%d files uploaded!", len(files)))
+ })
+ router.Run(":8080")
+}
+```
+
+How to `curl`:
+
+```bash
+curl -X POST http://localhost:8080/upload \
+ -F "upload[]=@/Users/appleboy/test1.zip" \
+ -F "upload[]=@/Users/appleboy/test2.zip" \
+ -H "Content-Type: multipart/form-data"
+```
+
+### Grouping routes
+
+```go
+func main() {
+ router := gin.Default()
+
+ // Simple group: v1
+ v1 := router.Group("/v1")
+ {
+ v1.POST("/login", loginEndpoint)
+ v1.POST("/submit", submitEndpoint)
+ v1.POST("/read", readEndpoint)
+ }
+
+ // Simple group: v2
+ v2 := router.Group("/v2")
+ {
+ v2.POST("/login", loginEndpoint)
+ v2.POST("/submit", submitEndpoint)
+ v2.POST("/read", readEndpoint)
+ }
+
+ router.Run(":8080")
+}
+```
+
+### Blank Gin without middleware by default
+
+Use
+
+```go
+r := gin.New()
+```
+
+instead of
+
+```go
+// Default With the Logger and Recovery middleware already attached
+r := gin.Default()
+```
+
+
+### Using middleware
+```go
+func main() {
+ // Creates a router without any middleware by default
+ r := gin.New()
+
+ // Global middleware
+ // Logger middleware will write the logs to gin.DefaultWriter even if you set with GIN_MODE=release.
+ // By default gin.DefaultWriter = os.Stdout
+ r.Use(gin.Logger())
+
+ // Recovery middleware recovers from any panics and writes a 500 if there was one.
+ r.Use(gin.Recovery())
+
+ // Per route middleware, you can add as many as you desire.
+ r.GET("/benchmark", MyBenchLogger(), benchEndpoint)
+
+ // Authorization group
+ // authorized := r.Group("/", AuthRequired())
+ // exactly the same as:
+ authorized := r.Group("/")
+ // per group middleware! in this case we use the custom created
+ // AuthRequired() middleware just in the "authorized" group.
+ authorized.Use(AuthRequired())
+ {
+ authorized.POST("/login", loginEndpoint)
+ authorized.POST("/submit", submitEndpoint)
+ authorized.POST("/read", readEndpoint)
+
+ // nested group
+ testing := authorized.Group("testing")
+ testing.GET("/analytics", analyticsEndpoint)
+ }
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### Custom Recovery behavior
+```go
+func main() {
+ // Creates a router without any middleware by default
+ r := gin.New()
+
+ // Global middleware
+ // Logger middleware will write the logs to gin.DefaultWriter even if you set with GIN_MODE=release.
+ // By default gin.DefaultWriter = os.Stdout
+ r.Use(gin.Logger())
+
+ // Recovery middleware recovers from any panics and writes a 500 if there was one.
+ r.Use(gin.CustomRecovery(func(c *gin.Context, recovered interface{}) {
+ if err, ok := recovered.(string); ok {
+ c.String(http.StatusInternalServerError, fmt.Sprintf("error: %s", err))
+ }
+ c.AbortWithStatus(http.StatusInternalServerError)
+ }))
+
+ r.GET("/panic", func(c *gin.Context) {
+ // panic with a string -- the custom middleware could save this to a database or report it to the user
+ panic("foo")
+ })
+
+ r.GET("/", func(c *gin.Context) {
+ c.String(http.StatusOK, "ohai")
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### How to write log file
+```go
+func main() {
+ // Disable Console Color, you don't need console color when writing the logs to file.
+ gin.DisableConsoleColor()
+
+ // Logging to a file.
+ f, _ := os.Create("gin.log")
+ gin.DefaultWriter = io.MultiWriter(f)
+
+ // Use the following code if you need to write the logs to file and console at the same time.
+ // gin.DefaultWriter = io.MultiWriter(f, os.Stdout)
+
+ router := gin.Default()
+ router.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ router.Run(":8080")
+}
+```
+
+### Custom Log Format
+```go
+func main() {
+ router := gin.New()
+
+ // LoggerWithFormatter middleware will write the logs to gin.DefaultWriter
+ // By default gin.DefaultWriter = os.Stdout
+ router.Use(gin.LoggerWithFormatter(func(param gin.LogFormatterParams) string {
+
+ // your custom format
+ return fmt.Sprintf("%s - [%s] \"%s %s %s %d %s \"%s\" %s\"\n",
+ param.ClientIP,
+ param.TimeStamp.Format(time.RFC1123),
+ param.Method,
+ param.Path,
+ param.Request.Proto,
+ param.StatusCode,
+ param.Latency,
+ param.Request.UserAgent(),
+ param.ErrorMessage,
+ )
+ }))
+ router.Use(gin.Recovery())
+
+ router.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ router.Run(":8080")
+}
+```
+
+**Sample Output**
+```
+::1 - [Fri, 07 Dec 2018 17:04:38 JST] "GET /ping HTTP/1.1 200 122.767µs "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.80 Safari/537.36" "
+```
+
+### Controlling Log output coloring
+
+By default, logs output on console should be colorized depending on the detected TTY.
+
+Never colorize logs:
+
+```go
+func main() {
+ // Disable log's color
+ gin.DisableConsoleColor()
+
+ // Creates a gin router with default middleware:
+ // logger and recovery (crash-free) middleware
+ router := gin.Default()
+
+ router.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ router.Run(":8080")
+}
+```
+
+Always colorize logs:
+
+```go
+func main() {
+ // Force log's color
+ gin.ForceConsoleColor()
+
+ // Creates a gin router with default middleware:
+ // logger and recovery (crash-free) middleware
+ router := gin.Default()
+
+ router.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ router.Run(":8080")
+}
+```
+
+### Model binding and validation
+
+To bind a request body into a type, use model binding. We currently support binding of JSON, XML, YAML and standard form values (foo=bar&boo=baz).
+
+Gin uses [**go-playground/validator/v10**](https://github.com/go-playground/validator) for validation. Check the full docs on tags usage [here](https://godoc.org/github.com/go-playground/validator#hdr-Baked_In_Validators_and_Tags).
+
+Note that you need to set the corresponding binding tag on all fields you want to bind. For example, when binding from JSON, set `json:"fieldname"`.
+
+Also, Gin provides two sets of methods for binding:
+- **Type** - Must bind
+ - **Methods** - `Bind`, `BindJSON`, `BindXML`, `BindQuery`, `BindYAML`, `BindHeader`
+ - **Behavior** - These methods use `MustBindWith` under the hood. If there is a binding error, the request is aborted with `c.AbortWithError(400, err).SetType(ErrorTypeBind)`. This sets the response status code to 400 and the `Content-Type` header is set to `text/plain; charset=utf-8`. Note that if you try to set the response code after this, it will result in a warning `[GIN-debug] [WARNING] Headers were already written. Wanted to override status code 400 with 422`. If you wish to have greater control over the behavior, consider using the `ShouldBind` equivalent method.
+- **Type** - Should bind
+ - **Methods** - `ShouldBind`, `ShouldBindJSON`, `ShouldBindXML`, `ShouldBindQuery`, `ShouldBindYAML`, `ShouldBindHeader`
+ - **Behavior** - These methods use `ShouldBindWith` under the hood. If there is a binding error, the error is returned and it is the developer's responsibility to handle the request and error appropriately.
+
+When using the Bind-method, Gin tries to infer the binder depending on the Content-Type header. If you are sure what you are binding, you can use `MustBindWith` or `ShouldBindWith`.
+
+You can also specify that specific fields are required. If a field is decorated with `binding:"required"` and has a empty value when binding, an error will be returned.
+
+```go
+// Binding from JSON
+type Login struct {
+ User string `form:"user" json:"user" xml:"user" binding:"required"`
+ Password string `form:"password" json:"password" xml:"password" binding:"required"`
+}
+
+func main() {
+ router := gin.Default()
+
+ // Example for binding JSON ({"user": "manu", "password": "123"})
+ router.POST("/loginJSON", func(c *gin.Context) {
+ var json Login
+ if err := c.ShouldBindJSON(&json); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+
+ if json.User != "manu" || json.Password != "123" {
+ c.JSON(http.StatusUnauthorized, gin.H{"status": "unauthorized"})
+ return
+ }
+
+ c.JSON(http.StatusOK, gin.H{"status": "you are logged in"})
+ })
+
+ // Example for binding XML (
+ //
+ //
+ // manu
+ // 123
+ // )
+ router.POST("/loginXML", func(c *gin.Context) {
+ var xml Login
+ if err := c.ShouldBindXML(&xml); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+
+ if xml.User != "manu" || xml.Password != "123" {
+ c.JSON(http.StatusUnauthorized, gin.H{"status": "unauthorized"})
+ return
+ }
+
+ c.JSON(http.StatusOK, gin.H{"status": "you are logged in"})
+ })
+
+ // Example for binding a HTML form (user=manu&password=123)
+ router.POST("/loginForm", func(c *gin.Context) {
+ var form Login
+ // This will infer what binder to use depending on the content-type header.
+ if err := c.ShouldBind(&form); err != nil {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ return
+ }
+
+ if form.User != "manu" || form.Password != "123" {
+ c.JSON(http.StatusUnauthorized, gin.H{"status": "unauthorized"})
+ return
+ }
+
+ c.JSON(http.StatusOK, gin.H{"status": "you are logged in"})
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ router.Run(":8080")
+}
+```
+
+**Sample request**
+```shell
+$ curl -v -X POST \
+ http://localhost:8080/loginJSON \
+ -H 'content-type: application/json' \
+ -d '{ "user": "manu" }'
+> POST /loginJSON HTTP/1.1
+> Host: localhost:8080
+> User-Agent: curl/7.51.0
+> Accept: */*
+> content-type: application/json
+> Content-Length: 18
+>
+* upload completely sent off: 18 out of 18 bytes
+< HTTP/1.1 400 Bad Request
+< Content-Type: application/json; charset=utf-8
+< Date: Fri, 04 Aug 2017 03:51:31 GMT
+< Content-Length: 100
+<
+{"error":"Key: 'Login.Password' Error:Field validation for 'Password' failed on the 'required' tag"}
+```
+
+**Skip validate**
+
+When running the above example using the above the `curl` command, it returns error. Because the example use `binding:"required"` for `Password`. If use `binding:"-"` for `Password`, then it will not return error when running the above example again.
+
+### Custom Validators
+
+It is also possible to register custom validators. See the [example code](https://github.com/gin-gonic/examples/tree/master/custom-validation/server.go).
+
+```go
+package main
+
+import (
+ "net/http"
+ "time"
+
+ "github.com/gin-gonic/gin"
+ "github.com/gin-gonic/gin/binding"
+ "github.com/go-playground/validator/v10"
+)
+
+// Booking contains binded and validated data.
+type Booking struct {
+ CheckIn time.Time `form:"check_in" binding:"required,bookabledate" time_format:"2006-01-02"`
+ CheckOut time.Time `form:"check_out" binding:"required,gtfield=CheckIn" time_format:"2006-01-02"`
+}
+
+var bookableDate validator.Func = func(fl validator.FieldLevel) bool {
+ date, ok := fl.Field().Interface().(time.Time)
+ if ok {
+ today := time.Now()
+ if today.After(date) {
+ return false
+ }
+ }
+ return true
+}
+
+func main() {
+ route := gin.Default()
+
+ if v, ok := binding.Validator.Engine().(*validator.Validate); ok {
+ v.RegisterValidation("bookabledate", bookableDate)
+ }
+
+ route.GET("/bookable", getBookable)
+ route.Run(":8085")
+}
+
+func getBookable(c *gin.Context) {
+ var b Booking
+ if err := c.ShouldBindWith(&b, binding.Query); err == nil {
+ c.JSON(http.StatusOK, gin.H{"message": "Booking dates are valid!"})
+ } else {
+ c.JSON(http.StatusBadRequest, gin.H{"error": err.Error()})
+ }
+}
+```
+
+```console
+$ curl "localhost:8085/bookable?check_in=2030-04-16&check_out=2030-04-17"
+{"message":"Booking dates are valid!"}
+
+$ curl "localhost:8085/bookable?check_in=2030-03-10&check_out=2030-03-09"
+{"error":"Key: 'Booking.CheckOut' Error:Field validation for 'CheckOut' failed on the 'gtfield' tag"}
+
+$ curl "localhost:8085/bookable?check_in=2000-03-09&check_out=2000-03-10"
+{"error":"Key: 'Booking.CheckIn' Error:Field validation for 'CheckIn' failed on the 'bookabledate' tag"}%
+```
+
+[Struct level validations](https://github.com/go-playground/validator/releases/tag/v8.7) can also be registered this way.
+See the [struct-lvl-validation example](https://github.com/gin-gonic/examples/tree/master/struct-lvl-validations) to learn more.
+
+### Only Bind Query String
+
+`ShouldBindQuery` function only binds the query params and not the post data. See the [detail information](https://github.com/gin-gonic/gin/issues/742#issuecomment-315953017).
+
+```go
+package main
+
+import (
+ "log"
+
+ "github.com/gin-gonic/gin"
+)
+
+type Person struct {
+ Name string `form:"name"`
+ Address string `form:"address"`
+}
+
+func main() {
+ route := gin.Default()
+ route.Any("/testing", startPage)
+ route.Run(":8085")
+}
+
+func startPage(c *gin.Context) {
+ var person Person
+ if c.ShouldBindQuery(&person) == nil {
+ log.Println("====== Only Bind By Query String ======")
+ log.Println(person.Name)
+ log.Println(person.Address)
+ }
+ c.String(200, "Success")
+}
+
+```
+
+### Bind Query String or Post Data
+
+See the [detail information](https://github.com/gin-gonic/gin/issues/742#issuecomment-264681292).
+
+```go
+package main
+
+import (
+ "log"
+ "time"
+
+ "github.com/gin-gonic/gin"
+)
+
+type Person struct {
+ Name string `form:"name"`
+ Address string `form:"address"`
+ Birthday time.Time `form:"birthday" time_format:"2006-01-02" time_utc:"1"`
+ CreateTime time.Time `form:"createTime" time_format:"unixNano"`
+ UnixTime time.Time `form:"unixTime" time_format:"unix"`
+}
+
+func main() {
+ route := gin.Default()
+ route.GET("/testing", startPage)
+ route.Run(":8085")
+}
+
+func startPage(c *gin.Context) {
+ var person Person
+ // If `GET`, only `Form` binding engine (`query`) used.
+ // If `POST`, first checks the `content-type` for `JSON` or `XML`, then uses `Form` (`form-data`).
+ // See more at https://github.com/gin-gonic/gin/blob/master/binding/binding.go#L48
+ if c.ShouldBind(&person) == nil {
+ log.Println(person.Name)
+ log.Println(person.Address)
+ log.Println(person.Birthday)
+ log.Println(person.CreateTime)
+ log.Println(person.UnixTime)
+ }
+
+ c.String(200, "Success")
+}
+```
+
+Test it with:
+```sh
+$ curl -X GET "localhost:8085/testing?name=appleboy&address=xyz&birthday=1992-03-15&createTime=1562400033000000123&unixTime=1562400033"
+```
+
+### Bind Uri
+
+See the [detail information](https://github.com/gin-gonic/gin/issues/846).
+
+```go
+package main
+
+import "github.com/gin-gonic/gin"
+
+type Person struct {
+ ID string `uri:"id" binding:"required,uuid"`
+ Name string `uri:"name" binding:"required"`
+}
+
+func main() {
+ route := gin.Default()
+ route.GET("/:name/:id", func(c *gin.Context) {
+ var person Person
+ if err := c.ShouldBindUri(&person); err != nil {
+ c.JSON(400, gin.H{"msg": err.Error()})
+ return
+ }
+ c.JSON(200, gin.H{"name": person.Name, "uuid": person.ID})
+ })
+ route.Run(":8088")
+}
+```
+
+Test it with:
+```sh
+$ curl -v localhost:8088/thinkerou/987fbc97-4bed-5078-9f07-9141ba07c9f3
+$ curl -v localhost:8088/thinkerou/not-uuid
+```
+
+### Bind Header
+
+```go
+package main
+
+import (
+ "fmt"
+ "github.com/gin-gonic/gin"
+)
+
+type testHeader struct {
+ Rate int `header:"Rate"`
+ Domain string `header:"Domain"`
+}
+
+func main() {
+ r := gin.Default()
+ r.GET("/", func(c *gin.Context) {
+ h := testHeader{}
+
+ if err := c.ShouldBindHeader(&h); err != nil {
+ c.JSON(200, err)
+ }
+
+ fmt.Printf("%#v\n", h)
+ c.JSON(200, gin.H{"Rate": h.Rate, "Domain": h.Domain})
+ })
+
+ r.Run()
+
+// client
+// curl -H "rate:300" -H "domain:music" 127.0.0.1:8080/
+// output
+// {"Domain":"music","Rate":300}
+}
+```
+
+### Bind HTML checkboxes
+
+See the [detail information](https://github.com/gin-gonic/gin/issues/129#issuecomment-124260092)
+
+main.go
+
+```go
+...
+
+type myForm struct {
+ Colors []string `form:"colors[]"`
+}
+
+...
+
+func formHandler(c *gin.Context) {
+ var fakeForm myForm
+ c.ShouldBind(&fakeForm)
+ c.JSON(200, gin.H{"color": fakeForm.Colors})
+}
+
+...
+
+```
+
+form.html
+
+```html
+
+```
+
+result:
+
+```
+{"color":["red","green","blue"]}
+```
+
+### Multipart/Urlencoded binding
+
+```go
+type ProfileForm struct {
+ Name string `form:"name" binding:"required"`
+ Avatar *multipart.FileHeader `form:"avatar" binding:"required"`
+
+ // or for multiple files
+ // Avatars []*multipart.FileHeader `form:"avatar" binding:"required"`
+}
+
+func main() {
+ router := gin.Default()
+ router.POST("/profile", func(c *gin.Context) {
+ // you can bind multipart form with explicit binding declaration:
+ // c.ShouldBindWith(&form, binding.Form)
+ // or you can simply use autobinding with ShouldBind method:
+ var form ProfileForm
+ // in this case proper binding will be automatically selected
+ if err := c.ShouldBind(&form); err != nil {
+ c.String(http.StatusBadRequest, "bad request")
+ return
+ }
+
+ err := c.SaveUploadedFile(form.Avatar, form.Avatar.Filename)
+ if err != nil {
+ c.String(http.StatusInternalServerError, "unknown error")
+ return
+ }
+
+ // db.Save(&form)
+
+ c.String(http.StatusOK, "ok")
+ })
+ router.Run(":8080")
+}
+```
+
+Test it with:
+```sh
+$ curl -X POST -v --form name=user --form "avatar=@./avatar.png" http://localhost:8080/profile
+```
+
+### XML, JSON, YAML and ProtoBuf rendering
+
+```go
+func main() {
+ r := gin.Default()
+
+ // gin.H is a shortcut for map[string]interface{}
+ r.GET("/someJSON", func(c *gin.Context) {
+ c.JSON(http.StatusOK, gin.H{"message": "hey", "status": http.StatusOK})
+ })
+
+ r.GET("/moreJSON", func(c *gin.Context) {
+ // You also can use a struct
+ var msg struct {
+ Name string `json:"user"`
+ Message string
+ Number int
+ }
+ msg.Name = "Lena"
+ msg.Message = "hey"
+ msg.Number = 123
+ // Note that msg.Name becomes "user" in the JSON
+ // Will output : {"user": "Lena", "Message": "hey", "Number": 123}
+ c.JSON(http.StatusOK, msg)
+ })
+
+ r.GET("/someXML", func(c *gin.Context) {
+ c.XML(http.StatusOK, gin.H{"message": "hey", "status": http.StatusOK})
+ })
+
+ r.GET("/someYAML", func(c *gin.Context) {
+ c.YAML(http.StatusOK, gin.H{"message": "hey", "status": http.StatusOK})
+ })
+
+ r.GET("/someProtoBuf", func(c *gin.Context) {
+ reps := []int64{int64(1), int64(2)}
+ label := "test"
+ // The specific definition of protobuf is written in the testdata/protoexample file.
+ data := &protoexample.Test{
+ Label: &label,
+ Reps: reps,
+ }
+ // Note that data becomes binary data in the response
+ // Will output protoexample.Test protobuf serialized data
+ c.ProtoBuf(http.StatusOK, data)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+#### SecureJSON
+
+Using SecureJSON to prevent json hijacking. Default prepends `"while(1),"` to response body if the given struct is array values.
+
+```go
+func main() {
+ r := gin.Default()
+
+ // You can also use your own secure json prefix
+ // r.SecureJsonPrefix(")]}',\n")
+
+ r.GET("/someJSON", func(c *gin.Context) {
+ names := []string{"lena", "austin", "foo"}
+
+ // Will output : while(1);["lena","austin","foo"]
+ c.SecureJSON(http.StatusOK, names)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+#### JSONP
+
+Using JSONP to request data from a server in a different domain. Add callback to response body if the query parameter callback exists.
+
+```go
+func main() {
+ r := gin.Default()
+
+ r.GET("/JSONP", func(c *gin.Context) {
+ data := gin.H{
+ "foo": "bar",
+ }
+
+ //callback is x
+ // Will output : x({\"foo\":\"bar\"})
+ c.JSONP(http.StatusOK, data)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+
+ // client
+ // curl http://127.0.0.1:8080/JSONP?callback=x
+}
+```
+
+#### AsciiJSON
+
+Using AsciiJSON to Generates ASCII-only JSON with escaped non-ASCII characters.
+
+```go
+func main() {
+ r := gin.Default()
+
+ r.GET("/someJSON", func(c *gin.Context) {
+ data := gin.H{
+ "lang": "GO语言",
+ "tag": "
",
+ }
+
+ // will output : {"lang":"GO\u8bed\u8a00","tag":"\u003cbr\u003e"}
+ c.AsciiJSON(http.StatusOK, data)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+#### PureJSON
+
+Normally, JSON replaces special HTML characters with their unicode entities, e.g. `<` becomes `\u003c`. If you want to encode such characters literally, you can use PureJSON instead.
+This feature is unavailable in Go 1.6 and lower.
+
+```go
+func main() {
+ r := gin.Default()
+
+ // Serves unicode entities
+ r.GET("/json", func(c *gin.Context) {
+ c.JSON(200, gin.H{
+ "html": "Hello, world!",
+ })
+ })
+
+ // Serves literal characters
+ r.GET("/purejson", func(c *gin.Context) {
+ c.PureJSON(200, gin.H{
+ "html": "Hello, world!",
+ })
+ })
+
+ // listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### Serving static files
+
+```go
+func main() {
+ router := gin.Default()
+ router.Static("/assets", "./assets")
+ router.StaticFS("/more_static", http.Dir("my_file_system"))
+ router.StaticFile("/favicon.ico", "./resources/favicon.ico")
+
+ // Listen and serve on 0.0.0.0:8080
+ router.Run(":8080")
+}
+```
+
+### Serving data from file
+
+```go
+func main() {
+ router := gin.Default()
+
+ router.GET("/local/file", func(c *gin.Context) {
+ c.File("local/file.go")
+ })
+
+ var fs http.FileSystem = // ...
+ router.GET("/fs/file", func(c *gin.Context) {
+ c.FileFromFS("fs/file.go", fs)
+ })
+}
+
+```
+
+### Serving data from reader
+
+```go
+func main() {
+ router := gin.Default()
+ router.GET("/someDataFromReader", func(c *gin.Context) {
+ response, err := http.Get("https://raw.githubusercontent.com/gin-gonic/logo/master/color.png")
+ if err != nil || response.StatusCode != http.StatusOK {
+ c.Status(http.StatusServiceUnavailable)
+ return
+ }
+
+ reader := response.Body
+ defer reader.Close()
+ contentLength := response.ContentLength
+ contentType := response.Header.Get("Content-Type")
+
+ extraHeaders := map[string]string{
+ "Content-Disposition": `attachment; filename="gopher.png"`,
+ }
+
+ c.DataFromReader(http.StatusOK, contentLength, contentType, reader, extraHeaders)
+ })
+ router.Run(":8080")
+}
+```
+
+### HTML rendering
+
+Using LoadHTMLGlob() or LoadHTMLFiles()
+
+```go
+func main() {
+ router := gin.Default()
+ router.LoadHTMLGlob("templates/*")
+ //router.LoadHTMLFiles("templates/template1.html", "templates/template2.html")
+ router.GET("/index", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "index.tmpl", gin.H{
+ "title": "Main website",
+ })
+ })
+ router.Run(":8080")
+}
+```
+
+templates/index.tmpl
+
+```html
+
+
+ {{ .title }}
+
+
+```
+
+Using templates with same name in different directories
+
+```go
+func main() {
+ router := gin.Default()
+ router.LoadHTMLGlob("templates/**/*")
+ router.GET("/posts/index", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "posts/index.tmpl", gin.H{
+ "title": "Posts",
+ })
+ })
+ router.GET("/users/index", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "users/index.tmpl", gin.H{
+ "title": "Users",
+ })
+ })
+ router.Run(":8080")
+}
+```
+
+templates/posts/index.tmpl
+
+```html
+{{ define "posts/index.tmpl" }}
+
+ {{ .title }}
+
+Using posts/index.tmpl
+
+{{ end }}
+```
+
+templates/users/index.tmpl
+
+```html
+{{ define "users/index.tmpl" }}
+
+ {{ .title }}
+
+Using users/index.tmpl
+
+{{ end }}
+```
+
+#### Custom Template renderer
+
+You can also use your own html template render
+
+```go
+import "html/template"
+
+func main() {
+ router := gin.Default()
+ html := template.Must(template.ParseFiles("file1", "file2"))
+ router.SetHTMLTemplate(html)
+ router.Run(":8080")
+}
+```
+
+#### Custom Delimiters
+
+You may use custom delims
+
+```go
+ r := gin.Default()
+ r.Delims("{[{", "}]}")
+ r.LoadHTMLGlob("/path/to/templates")
+```
+
+#### Custom Template Funcs
+
+See the detail [example code](https://github.com/gin-gonic/examples/tree/master/template).
+
+main.go
+
+```go
+import (
+ "fmt"
+ "html/template"
+ "net/http"
+ "time"
+
+ "github.com/gin-gonic/gin"
+)
+
+func formatAsDate(t time.Time) string {
+ year, month, day := t.Date()
+ return fmt.Sprintf("%d%02d/%02d", year, month, day)
+}
+
+func main() {
+ router := gin.Default()
+ router.Delims("{[{", "}]}")
+ router.SetFuncMap(template.FuncMap{
+ "formatAsDate": formatAsDate,
+ })
+ router.LoadHTMLFiles("./testdata/template/raw.tmpl")
+
+ router.GET("/raw", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "raw.tmpl", gin.H{
+ "now": time.Date(2017, 07, 01, 0, 0, 0, 0, time.UTC),
+ })
+ })
+
+ router.Run(":8080")
+}
+
+```
+
+raw.tmpl
+
+```html
+Date: {[{.now | formatAsDate}]}
+```
+
+Result:
+```
+Date: 2017/07/01
+```
+
+### Multitemplate
+
+Gin allow by default use only one html.Template. Check [a multitemplate render](https://github.com/gin-contrib/multitemplate) for using features like go 1.6 `block template`.
+
+### Redirects
+
+Issuing a HTTP redirect is easy. Both internal and external locations are supported.
+
+```go
+r.GET("/test", func(c *gin.Context) {
+ c.Redirect(http.StatusMovedPermanently, "http://www.google.com/")
+})
+```
+
+Issuing a HTTP redirect from POST. Refer to issue: [#444](https://github.com/gin-gonic/gin/issues/444)
+```go
+r.POST("/test", func(c *gin.Context) {
+ c.Redirect(http.StatusFound, "/foo")
+})
+```
+
+Issuing a Router redirect, use `HandleContext` like below.
+
+``` go
+r.GET("/test", func(c *gin.Context) {
+ c.Request.URL.Path = "/test2"
+ r.HandleContext(c)
+})
+r.GET("/test2", func(c *gin.Context) {
+ c.JSON(200, gin.H{"hello": "world"})
+})
+```
+
+
+### Custom Middleware
+
+```go
+func Logger() gin.HandlerFunc {
+ return func(c *gin.Context) {
+ t := time.Now()
+
+ // Set example variable
+ c.Set("example", "12345")
+
+ // before request
+
+ c.Next()
+
+ // after request
+ latency := time.Since(t)
+ log.Print(latency)
+
+ // access the status we are sending
+ status := c.Writer.Status()
+ log.Println(status)
+ }
+}
+
+func main() {
+ r := gin.New()
+ r.Use(Logger())
+
+ r.GET("/test", func(c *gin.Context) {
+ example := c.MustGet("example").(string)
+
+ // it would print: "12345"
+ log.Println(example)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### Using BasicAuth() middleware
+
+```go
+// simulate some private data
+var secrets = gin.H{
+ "foo": gin.H{"email": "foo@bar.com", "phone": "123433"},
+ "austin": gin.H{"email": "austin@example.com", "phone": "666"},
+ "lena": gin.H{"email": "lena@guapa.com", "phone": "523443"},
+}
+
+func main() {
+ r := gin.Default()
+
+ // Group using gin.BasicAuth() middleware
+ // gin.Accounts is a shortcut for map[string]string
+ authorized := r.Group("/admin", gin.BasicAuth(gin.Accounts{
+ "foo": "bar",
+ "austin": "1234",
+ "lena": "hello2",
+ "manu": "4321",
+ }))
+
+ // /admin/secrets endpoint
+ // hit "localhost:8080/admin/secrets
+ authorized.GET("/secrets", func(c *gin.Context) {
+ // get user, it was set by the BasicAuth middleware
+ user := c.MustGet(gin.AuthUserKey).(string)
+ if secret, ok := secrets[user]; ok {
+ c.JSON(http.StatusOK, gin.H{"user": user, "secret": secret})
+ } else {
+ c.JSON(http.StatusOK, gin.H{"user": user, "secret": "NO SECRET :("})
+ }
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### Goroutines inside a middleware
+
+When starting new Goroutines inside a middleware or handler, you **SHOULD NOT** use the original context inside it, you have to use a read-only copy.
+
+```go
+func main() {
+ r := gin.Default()
+
+ r.GET("/long_async", func(c *gin.Context) {
+ // create copy to be used inside the goroutine
+ cCp := c.Copy()
+ go func() {
+ // simulate a long task with time.Sleep(). 5 seconds
+ time.Sleep(5 * time.Second)
+
+ // note that you are using the copied context "cCp", IMPORTANT
+ log.Println("Done! in path " + cCp.Request.URL.Path)
+ }()
+ })
+
+ r.GET("/long_sync", func(c *gin.Context) {
+ // simulate a long task with time.Sleep(). 5 seconds
+ time.Sleep(5 * time.Second)
+
+ // since we are NOT using a goroutine, we do not have to copy the context
+ log.Println("Done! in path " + c.Request.URL.Path)
+ })
+
+ // Listen and serve on 0.0.0.0:8080
+ r.Run(":8080")
+}
+```
+
+### Custom HTTP configuration
+
+Use `http.ListenAndServe()` directly, like this:
+
+```go
+func main() {
+ router := gin.Default()
+ http.ListenAndServe(":8080", router)
+}
+```
+or
+
+```go
+func main() {
+ router := gin.Default()
+
+ s := &http.Server{
+ Addr: ":8080",
+ Handler: router,
+ ReadTimeout: 10 * time.Second,
+ WriteTimeout: 10 * time.Second,
+ MaxHeaderBytes: 1 << 20,
+ }
+ s.ListenAndServe()
+}
+```
+
+### Support Let's Encrypt
+
+example for 1-line LetsEncrypt HTTPS servers.
+
+```go
+package main
+
+import (
+ "log"
+
+ "github.com/gin-gonic/autotls"
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+
+ // Ping handler
+ r.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ log.Fatal(autotls.Run(r, "example1.com", "example2.com"))
+}
+```
+
+example for custom autocert manager.
+
+```go
+package main
+
+import (
+ "log"
+
+ "github.com/gin-gonic/autotls"
+ "github.com/gin-gonic/gin"
+ "golang.org/x/crypto/acme/autocert"
+)
+
+func main() {
+ r := gin.Default()
+
+ // Ping handler
+ r.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+
+ m := autocert.Manager{
+ Prompt: autocert.AcceptTOS,
+ HostPolicy: autocert.HostWhitelist("example1.com", "example2.com"),
+ Cache: autocert.DirCache("/var/www/.cache"),
+ }
+
+ log.Fatal(autotls.RunWithManager(r, &m))
+}
+```
+
+### Run multiple service using Gin
+
+See the [question](https://github.com/gin-gonic/gin/issues/346) and try the following example:
+
+```go
+package main
+
+import (
+ "log"
+ "net/http"
+ "time"
+
+ "github.com/gin-gonic/gin"
+ "golang.org/x/sync/errgroup"
+)
+
+var (
+ g errgroup.Group
+)
+
+func router01() http.Handler {
+ e := gin.New()
+ e.Use(gin.Recovery())
+ e.GET("/", func(c *gin.Context) {
+ c.JSON(
+ http.StatusOK,
+ gin.H{
+ "code": http.StatusOK,
+ "error": "Welcome server 01",
+ },
+ )
+ })
+
+ return e
+}
+
+func router02() http.Handler {
+ e := gin.New()
+ e.Use(gin.Recovery())
+ e.GET("/", func(c *gin.Context) {
+ c.JSON(
+ http.StatusOK,
+ gin.H{
+ "code": http.StatusOK,
+ "error": "Welcome server 02",
+ },
+ )
+ })
+
+ return e
+}
+
+func main() {
+ server01 := &http.Server{
+ Addr: ":8080",
+ Handler: router01(),
+ ReadTimeout: 5 * time.Second,
+ WriteTimeout: 10 * time.Second,
+ }
+
+ server02 := &http.Server{
+ Addr: ":8081",
+ Handler: router02(),
+ ReadTimeout: 5 * time.Second,
+ WriteTimeout: 10 * time.Second,
+ }
+
+ g.Go(func() error {
+ err := server01.ListenAndServe()
+ if err != nil && err != http.ErrServerClosed {
+ log.Fatal(err)
+ }
+ return err
+ })
+
+ g.Go(func() error {
+ err := server02.ListenAndServe()
+ if err != nil && err != http.ErrServerClosed {
+ log.Fatal(err)
+ }
+ return err
+ })
+
+ if err := g.Wait(); err != nil {
+ log.Fatal(err)
+ }
+}
+```
+
+### Graceful shutdown or restart
+
+There are a few approaches you can use to perform a graceful shutdown or restart. You can make use of third-party packages specifically built for that, or you can manually do the same with the functions and methods from the built-in packages.
+
+#### Third-party packages
+
+We can use [fvbock/endless](https://github.com/fvbock/endless) to replace the default `ListenAndServe`. Refer to issue [#296](https://github.com/gin-gonic/gin/issues/296) for more details.
+
+```go
+router := gin.Default()
+router.GET("/", handler)
+// [...]
+endless.ListenAndServe(":4242", router)
+```
+
+Alternatives:
+
+* [manners](https://github.com/braintree/manners): A polite Go HTTP server that shuts down gracefully.
+* [graceful](https://github.com/tylerb/graceful): Graceful is a Go package enabling graceful shutdown of an http.Handler server.
+* [grace](https://github.com/facebookgo/grace): Graceful restart & zero downtime deploy for Go servers.
+
+#### Manually
+
+In case you are using Go 1.8 or a later version, you may not need to use those libraries. Consider using `http.Server`'s built-in [Shutdown()](https://golang.org/pkg/net/http/#Server.Shutdown) method for graceful shutdowns. The example below describes its usage, and we've got more examples using gin [here](https://github.com/gin-gonic/examples/tree/master/graceful-shutdown).
+
+```go
+// +build go1.8
+
+package main
+
+import (
+ "context"
+ "log"
+ "net/http"
+ "os"
+ "os/signal"
+ "syscall"
+ "time"
+
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ router := gin.Default()
+ router.GET("/", func(c *gin.Context) {
+ time.Sleep(5 * time.Second)
+ c.String(http.StatusOK, "Welcome Gin Server")
+ })
+
+ srv := &http.Server{
+ Addr: ":8080",
+ Handler: router,
+ }
+
+ // Initializing the server in a goroutine so that
+ // it won't block the graceful shutdown handling below
+ go func() {
+ if err := srv.ListenAndServe(); err != nil && errors.Is(err, http.ErrServerClosed) {
+ log.Printf("listen: %s\n", err)
+ }
+ }()
+
+ // Wait for interrupt signal to gracefully shutdown the server with
+ // a timeout of 5 seconds.
+ quit := make(chan os.Signal)
+ // kill (no param) default send syscall.SIGTERM
+ // kill -2 is syscall.SIGINT
+ // kill -9 is syscall.SIGKILL but can't be catch, so don't need add it
+ signal.Notify(quit, syscall.SIGINT, syscall.SIGTERM)
+ <-quit
+ log.Println("Shutting down server...")
+
+ // The context is used to inform the server it has 5 seconds to finish
+ // the request it is currently handling
+ ctx, cancel := context.WithTimeout(context.Background(), 5*time.Second)
+ defer cancel()
+
+ if err := srv.Shutdown(ctx); err != nil {
+ log.Fatal("Server forced to shutdown:", err)
+ }
+
+ log.Println("Server exiting")
+}
+```
+
+### Build a single binary with templates
+
+You can build a server into a single binary containing templates by using [go-assets][].
+
+[go-assets]: https://github.com/jessevdk/go-assets
+
+```go
+func main() {
+ r := gin.New()
+
+ t, err := loadTemplate()
+ if err != nil {
+ panic(err)
+ }
+ r.SetHTMLTemplate(t)
+
+ r.GET("/", func(c *gin.Context) {
+ c.HTML(http.StatusOK, "/html/index.tmpl",nil)
+ })
+ r.Run(":8080")
+}
+
+// loadTemplate loads templates embedded by go-assets-builder
+func loadTemplate() (*template.Template, error) {
+ t := template.New("")
+ for name, file := range Assets.Files {
+ defer file.Close()
+ if file.IsDir() || !strings.HasSuffix(name, ".tmpl") {
+ continue
+ }
+ h, err := ioutil.ReadAll(file)
+ if err != nil {
+ return nil, err
+ }
+ t, err = t.New(name).Parse(string(h))
+ if err != nil {
+ return nil, err
+ }
+ }
+ return t, nil
+}
+```
+
+See a complete example in the `https://github.com/gin-gonic/examples/tree/master/assets-in-binary` directory.
+
+### Bind form-data request with custom struct
+
+The follow example using custom struct:
+
+```go
+type StructA struct {
+ FieldA string `form:"field_a"`
+}
+
+type StructB struct {
+ NestedStruct StructA
+ FieldB string `form:"field_b"`
+}
+
+type StructC struct {
+ NestedStructPointer *StructA
+ FieldC string `form:"field_c"`
+}
+
+type StructD struct {
+ NestedAnonyStruct struct {
+ FieldX string `form:"field_x"`
+ }
+ FieldD string `form:"field_d"`
+}
+
+func GetDataB(c *gin.Context) {
+ var b StructB
+ c.Bind(&b)
+ c.JSON(200, gin.H{
+ "a": b.NestedStruct,
+ "b": b.FieldB,
+ })
+}
+
+func GetDataC(c *gin.Context) {
+ var b StructC
+ c.Bind(&b)
+ c.JSON(200, gin.H{
+ "a": b.NestedStructPointer,
+ "c": b.FieldC,
+ })
+}
+
+func GetDataD(c *gin.Context) {
+ var b StructD
+ c.Bind(&b)
+ c.JSON(200, gin.H{
+ "x": b.NestedAnonyStruct,
+ "d": b.FieldD,
+ })
+}
+
+func main() {
+ r := gin.Default()
+ r.GET("/getb", GetDataB)
+ r.GET("/getc", GetDataC)
+ r.GET("/getd", GetDataD)
+
+ r.Run()
+}
+```
+
+Using the command `curl` command result:
+
+```
+$ curl "http://localhost:8080/getb?field_a=hello&field_b=world"
+{"a":{"FieldA":"hello"},"b":"world"}
+$ curl "http://localhost:8080/getc?field_a=hello&field_c=world"
+{"a":{"FieldA":"hello"},"c":"world"}
+$ curl "http://localhost:8080/getd?field_x=hello&field_d=world"
+{"d":"world","x":{"FieldX":"hello"}}
+```
+
+### Try to bind body into different structs
+
+The normal methods for binding request body consumes `c.Request.Body` and they
+cannot be called multiple times.
+
+```go
+type formA struct {
+ Foo string `json:"foo" xml:"foo" binding:"required"`
+}
+
+type formB struct {
+ Bar string `json:"bar" xml:"bar" binding:"required"`
+}
+
+func SomeHandler(c *gin.Context) {
+ objA := formA{}
+ objB := formB{}
+ // This c.ShouldBind consumes c.Request.Body and it cannot be reused.
+ if errA := c.ShouldBind(&objA); errA == nil {
+ c.String(http.StatusOK, `the body should be formA`)
+ // Always an error is occurred by this because c.Request.Body is EOF now.
+ } else if errB := c.ShouldBind(&objB); errB == nil {
+ c.String(http.StatusOK, `the body should be formB`)
+ } else {
+ ...
+ }
+}
+```
+
+For this, you can use `c.ShouldBindBodyWith`.
+
+```go
+func SomeHandler(c *gin.Context) {
+ objA := formA{}
+ objB := formB{}
+ // This reads c.Request.Body and stores the result into the context.
+ if errA := c.ShouldBindBodyWith(&objA, binding.JSON); errA == nil {
+ c.String(http.StatusOK, `the body should be formA`)
+ // At this time, it reuses body stored in the context.
+ } else if errB := c.ShouldBindBodyWith(&objB, binding.JSON); errB == nil {
+ c.String(http.StatusOK, `the body should be formB JSON`)
+ // And it can accepts other formats
+ } else if errB2 := c.ShouldBindBodyWith(&objB, binding.XML); errB2 == nil {
+ c.String(http.StatusOK, `the body should be formB XML`)
+ } else {
+ ...
+ }
+}
+```
+
+* `c.ShouldBindBodyWith` stores body into the context before binding. This has
+a slight impact to performance, so you should not use this method if you are
+enough to call binding at once.
+* This feature is only needed for some formats -- `JSON`, `XML`, `MsgPack`,
+`ProtoBuf`. For other formats, `Query`, `Form`, `FormPost`, `FormMultipart`,
+can be called by `c.ShouldBind()` multiple times without any damage to
+performance (See [#1341](https://github.com/gin-gonic/gin/pull/1341)).
+
+### Bind form-data request with custom struct and custom tag
+
+```go
+const (
+ customerTag = "url"
+ defaultMemory = 32 << 20
+)
+
+type customerBinding struct {}
+
+func (customerBinding) Name() string {
+ return "form"
+}
+
+func (customerBinding) Bind(req *http.Request, obj interface{}) error {
+ if err := req.ParseForm(); err != nil {
+ return err
+ }
+ if err := req.ParseMultipartForm(defaultMemory); err != nil {
+ if err != http.ErrNotMultipart {
+ return err
+ }
+ }
+ if err := binding.MapFormWithTag(obj, req.Form, customerTag); err != nil {
+ return err
+ }
+ return validate(obj)
+}
+
+func validate(obj interface{}) error {
+ if binding.Validator == nil {
+ return nil
+ }
+ return binding.Validator.ValidateStruct(obj)
+}
+
+// Now we can do this!!!
+// FormA is a external type that we can't modify it's tag
+type FormA struct {
+ FieldA string `url:"field_a"`
+}
+
+func ListHandler(s *Service) func(ctx *gin.Context) {
+ return func(ctx *gin.Context) {
+ var urlBinding = customerBinding{}
+ var opt FormA
+ err := ctx.MustBindWith(&opt, urlBinding)
+ if err != nil {
+ ...
+ }
+ ...
+ }
+}
+```
+
+### http2 server push
+
+http.Pusher is supported only **go1.8+**. See the [golang blog](https://blog.golang.org/h2push) for detail information.
+
+```go
+package main
+
+import (
+ "html/template"
+ "log"
+
+ "github.com/gin-gonic/gin"
+)
+
+var html = template.Must(template.New("https").Parse(`
+
+
+ Https Test
+
+
+
+ Welcome, Ginner!
+
+
+`))
+
+func main() {
+ r := gin.Default()
+ r.Static("/assets", "./assets")
+ r.SetHTMLTemplate(html)
+
+ r.GET("/", func(c *gin.Context) {
+ if pusher := c.Writer.Pusher(); pusher != nil {
+ // use pusher.Push() to do server push
+ if err := pusher.Push("/assets/app.js", nil); err != nil {
+ log.Printf("Failed to push: %v", err)
+ }
+ }
+ c.HTML(200, "https", gin.H{
+ "status": "success",
+ })
+ })
+
+ // Listen and Server in https://127.0.0.1:8080
+ r.RunTLS(":8080", "./testdata/server.pem", "./testdata/server.key")
+}
+```
+
+### Define format for the log of routes
+
+The default log of routes is:
+```
+[GIN-debug] POST /foo --> main.main.func1 (3 handlers)
+[GIN-debug] GET /bar --> main.main.func2 (3 handlers)
+[GIN-debug] GET /status --> main.main.func3 (3 handlers)
+```
+
+If you want to log this information in given format (e.g. JSON, key values or something else), then you can define this format with `gin.DebugPrintRouteFunc`.
+In the example below, we log all routes with standard log package but you can use another log tools that suits of your needs.
+```go
+import (
+ "log"
+ "net/http"
+
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+ r := gin.Default()
+ gin.DebugPrintRouteFunc = func(httpMethod, absolutePath, handlerName string, nuHandlers int) {
+ log.Printf("endpoint %v %v %v %v\n", httpMethod, absolutePath, handlerName, nuHandlers)
+ }
+
+ r.POST("/foo", func(c *gin.Context) {
+ c.JSON(http.StatusOK, "foo")
+ })
+
+ r.GET("/bar", func(c *gin.Context) {
+ c.JSON(http.StatusOK, "bar")
+ })
+
+ r.GET("/status", func(c *gin.Context) {
+ c.JSON(http.StatusOK, "ok")
+ })
+
+ // Listen and Server in http://0.0.0.0:8080
+ r.Run()
+}
+```
+
+### Set and get a cookie
+
+```go
+import (
+ "fmt"
+
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+
+ router := gin.Default()
+
+ router.GET("/cookie", func(c *gin.Context) {
+
+ cookie, err := c.Cookie("gin_cookie")
+
+ if err != nil {
+ cookie = "NotSet"
+ c.SetCookie("gin_cookie", "test", 3600, "/", "localhost", false, true)
+ }
+
+ fmt.Printf("Cookie value: %s \n", cookie)
+ })
+
+ router.Run()
+}
+```
+
+## Don't trust all proxies
+
+Gin lets you specify which headers to hold the real client IP (if any),
+as well as specifying which proxies (or direct clients) you trust to
+specify one of these headers.
+
+The `TrustedProxies` slice on your `gin.Engine` specifes network addresses or
+network CIDRs from where clients which their request headers related to client
+IP can be trusted. They can be IPv4 addresses, IPv4 CIDRs, IPv6 addresses or
+IPv6 CIDRs.
+
+```go
+import (
+ "fmt"
+
+ "github.com/gin-gonic/gin"
+)
+
+func main() {
+
+ router := gin.Default()
+ router.TrustedProxies = []string{"192.168.1.2"}
+
+ router.GET("/", func(c *gin.Context) {
+ // If the client is 192.168.1.2, use the X-Forwarded-For
+ // header to deduce the original client IP from the trust-
+ // worthy parts of that header.
+ // Otherwise, simply return the direct client IP
+ fmt.Printf("ClientIP: %s\n", c.ClientIP())
+ })
+ router.Run()
+}
+```
+
+## Testing
+
+The `net/http/httptest` package is preferable way for HTTP testing.
+
+```go
+package main
+
+func setupRouter() *gin.Engine {
+ r := gin.Default()
+ r.GET("/ping", func(c *gin.Context) {
+ c.String(200, "pong")
+ })
+ return r
+}
+
+func main() {
+ r := setupRouter()
+ r.Run(":8080")
+}
+```
+
+Test for code example above:
+
+```go
+package main
+
+import (
+ "net/http"
+ "net/http/httptest"
+ "testing"
+
+ "github.com/stretchr/testify/assert"
+)
+
+func TestPingRoute(t *testing.T) {
+ router := setupRouter()
+
+ w := httptest.NewRecorder()
+ req, _ := http.NewRequest("GET", "/ping", nil)
+ router.ServeHTTP(w, req)
+
+ assert.Equal(t, 200, w.Code)
+ assert.Equal(t, "pong", w.Body.String())
+}
+```
+
+## Users
+
+Awesome project lists using [Gin](https://github.com/gin-gonic/gin) web framework.
+
+* [gorush](https://github.com/appleboy/gorush): A push notification server written in Go.
+* [fnproject](https://github.com/fnproject/fn): The container native, cloud agnostic serverless platform.
+* [photoprism](https://github.com/photoprism/photoprism): Personal photo management powered by Go and Google TensorFlow.
+* [krakend](https://github.com/devopsfaith/krakend): Ultra performant API Gateway with middlewares.
+* [picfit](https://github.com/thoas/picfit): An image resizing server written in Go.
+* [brigade](https://github.com/brigadecore/brigade): Event-based Scripting for Kubernetes.
+* [dkron](https://github.com/distribworks/dkron): Distributed, fault tolerant job scheduling system.
+
diff --git a/vendor/github.com/gin-gonic/gin/auth.go b/vendor/github.com/gin-gonic/gin/auth.go
new file mode 100644
index 000000000..4d8a6ce48
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/auth.go
@@ -0,0 +1,91 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "crypto/subtle"
+ "encoding/base64"
+ "net/http"
+ "strconv"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+)
+
+// AuthUserKey is the cookie name for user credential in basic auth.
+const AuthUserKey = "user"
+
+// Accounts defines a key/value for user/pass list of authorized logins.
+type Accounts map[string]string
+
+type authPair struct {
+ value string
+ user string
+}
+
+type authPairs []authPair
+
+func (a authPairs) searchCredential(authValue string) (string, bool) {
+ if authValue == "" {
+ return "", false
+ }
+ for _, pair := range a {
+ if subtle.ConstantTimeCompare([]byte(pair.value), []byte(authValue)) == 1 {
+ return pair.user, true
+ }
+ }
+ return "", false
+}
+
+// BasicAuthForRealm returns a Basic HTTP Authorization middleware. It takes as arguments a map[string]string where
+// the key is the user name and the value is the password, as well as the name of the Realm.
+// If the realm is empty, "Authorization Required" will be used by default.
+// (see http://tools.ietf.org/html/rfc2617#section-1.2)
+func BasicAuthForRealm(accounts Accounts, realm string) HandlerFunc {
+ if realm == "" {
+ realm = "Authorization Required"
+ }
+ realm = "Basic realm=" + strconv.Quote(realm)
+ pairs := processAccounts(accounts)
+ return func(c *Context) {
+ // Search user in the slice of allowed credentials
+ user, found := pairs.searchCredential(c.requestHeader("Authorization"))
+ if !found {
+ // Credentials doesn't match, we return 401 and abort handlers chain.
+ c.Header("WWW-Authenticate", realm)
+ c.AbortWithStatus(http.StatusUnauthorized)
+ return
+ }
+
+ // The user credentials was found, set user's id to key AuthUserKey in this context, the user's id can be read later using
+ // c.MustGet(gin.AuthUserKey).
+ c.Set(AuthUserKey, user)
+ }
+}
+
+// BasicAuth returns a Basic HTTP Authorization middleware. It takes as argument a map[string]string where
+// the key is the user name and the value is the password.
+func BasicAuth(accounts Accounts) HandlerFunc {
+ return BasicAuthForRealm(accounts, "")
+}
+
+func processAccounts(accounts Accounts) authPairs {
+ length := len(accounts)
+ assert1(length > 0, "Empty list of authorized credentials")
+ pairs := make(authPairs, 0, length)
+ for user, password := range accounts {
+ assert1(user != "", "User can not be empty")
+ value := authorizationHeader(user, password)
+ pairs = append(pairs, authPair{
+ value: value,
+ user: user,
+ })
+ }
+ return pairs
+}
+
+func authorizationHeader(user, password string) string {
+ base := user + ":" + password
+ return "Basic " + base64.StdEncoding.EncodeToString(bytesconv.StringToBytes(base))
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/binding.go b/vendor/github.com/gin-gonic/gin/binding/binding.go
new file mode 100644
index 000000000..deb71661b
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/binding.go
@@ -0,0 +1,118 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build !nomsgpack
+// +build !nomsgpack
+
+package binding
+
+import "net/http"
+
+// Content-Type MIME of the most common data formats.
+const (
+ MIMEJSON = "application/json"
+ MIMEHTML = "text/html"
+ MIMEXML = "application/xml"
+ MIMEXML2 = "text/xml"
+ MIMEPlain = "text/plain"
+ MIMEPOSTForm = "application/x-www-form-urlencoded"
+ MIMEMultipartPOSTForm = "multipart/form-data"
+ MIMEPROTOBUF = "application/x-protobuf"
+ MIMEMSGPACK = "application/x-msgpack"
+ MIMEMSGPACK2 = "application/msgpack"
+ MIMEYAML = "application/x-yaml"
+)
+
+// Binding describes the interface which needs to be implemented for binding the
+// data present in the request such as JSON request body, query parameters or
+// the form POST.
+type Binding interface {
+ Name() string
+ Bind(*http.Request, interface{}) error
+}
+
+// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
+// but it reads the body from supplied bytes instead of req.Body.
+type BindingBody interface {
+ Binding
+ BindBody([]byte, interface{}) error
+}
+
+// BindingUri adds BindUri method to Binding. BindUri is similar with Bind,
+// but it read the Params.
+type BindingUri interface {
+ Name() string
+ BindUri(map[string][]string, interface{}) error
+}
+
+// StructValidator is the minimal interface which needs to be implemented in
+// order for it to be used as the validator engine for ensuring the correctness
+// of the request. Gin provides a default implementation for this using
+// https://github.com/go-playground/validator/tree/v10.6.1.
+type StructValidator interface {
+ // ValidateStruct can receive any kind of type and it should never panic, even if the configuration is not right.
+ // If the received type is a slice|array, the validation should be performed travel on every element.
+ // If the received type is not a struct or slice|array, any validation should be skipped and nil must be returned.
+ // If the received type is a struct or pointer to a struct, the validation should be performed.
+ // If the struct is not valid or the validation itself fails, a descriptive error should be returned.
+ // Otherwise nil must be returned.
+ ValidateStruct(interface{}) error
+
+ // Engine returns the underlying validator engine which powers the
+ // StructValidator implementation.
+ Engine() interface{}
+}
+
+// Validator is the default validator which implements the StructValidator
+// interface. It uses https://github.com/go-playground/validator/tree/v10.6.1
+// under the hood.
+var Validator StructValidator = &defaultValidator{}
+
+// These implement the Binding interface and can be used to bind the data
+// present in the request to struct instances.
+var (
+ JSON = jsonBinding{}
+ XML = xmlBinding{}
+ Form = formBinding{}
+ Query = queryBinding{}
+ FormPost = formPostBinding{}
+ FormMultipart = formMultipartBinding{}
+ ProtoBuf = protobufBinding{}
+ MsgPack = msgpackBinding{}
+ YAML = yamlBinding{}
+ Uri = uriBinding{}
+ Header = headerBinding{}
+)
+
+// Default returns the appropriate Binding instance based on the HTTP method
+// and the content type.
+func Default(method, contentType string) Binding {
+ if method == http.MethodGet {
+ return Form
+ }
+
+ switch contentType {
+ case MIMEJSON:
+ return JSON
+ case MIMEXML, MIMEXML2:
+ return XML
+ case MIMEPROTOBUF:
+ return ProtoBuf
+ case MIMEMSGPACK, MIMEMSGPACK2:
+ return MsgPack
+ case MIMEYAML:
+ return YAML
+ case MIMEMultipartPOSTForm:
+ return FormMultipart
+ default: // case MIMEPOSTForm:
+ return Form
+ }
+}
+
+func validate(obj interface{}) error {
+ if Validator == nil {
+ return nil
+ }
+ return Validator.ValidateStruct(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/binding_nomsgpack.go b/vendor/github.com/gin-gonic/gin/binding/binding_nomsgpack.go
new file mode 100644
index 000000000..234244707
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/binding_nomsgpack.go
@@ -0,0 +1,112 @@
+// Copyright 2020 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build nomsgpack
+// +build nomsgpack
+
+package binding
+
+import "net/http"
+
+// Content-Type MIME of the most common data formats.
+const (
+ MIMEJSON = "application/json"
+ MIMEHTML = "text/html"
+ MIMEXML = "application/xml"
+ MIMEXML2 = "text/xml"
+ MIMEPlain = "text/plain"
+ MIMEPOSTForm = "application/x-www-form-urlencoded"
+ MIMEMultipartPOSTForm = "multipart/form-data"
+ MIMEPROTOBUF = "application/x-protobuf"
+ MIMEYAML = "application/x-yaml"
+)
+
+// Binding describes the interface which needs to be implemented for binding the
+// data present in the request such as JSON request body, query parameters or
+// the form POST.
+type Binding interface {
+ Name() string
+ Bind(*http.Request, interface{}) error
+}
+
+// BindingBody adds BindBody method to Binding. BindBody is similar with Bind,
+// but it reads the body from supplied bytes instead of req.Body.
+type BindingBody interface {
+ Binding
+ BindBody([]byte, interface{}) error
+}
+
+// BindingUri adds BindUri method to Binding. BindUri is similar with Bind,
+// but it read the Params.
+type BindingUri interface {
+ Name() string
+ BindUri(map[string][]string, interface{}) error
+}
+
+// StructValidator is the minimal interface which needs to be implemented in
+// order for it to be used as the validator engine for ensuring the correctness
+// of the request. Gin provides a default implementation for this using
+// https://github.com/go-playground/validator/tree/v10.6.1.
+type StructValidator interface {
+ // ValidateStruct can receive any kind of type and it should never panic, even if the configuration is not right.
+ // If the received type is not a struct, any validation should be skipped and nil must be returned.
+ // If the received type is a struct or pointer to a struct, the validation should be performed.
+ // If the struct is not valid or the validation itself fails, a descriptive error should be returned.
+ // Otherwise nil must be returned.
+ ValidateStruct(interface{}) error
+
+ // Engine returns the underlying validator engine which powers the
+ // StructValidator implementation.
+ Engine() interface{}
+}
+
+// Validator is the default validator which implements the StructValidator
+// interface. It uses https://github.com/go-playground/validator/tree/v10.6.1
+// under the hood.
+var Validator StructValidator = &defaultValidator{}
+
+// These implement the Binding interface and can be used to bind the data
+// present in the request to struct instances.
+var (
+ JSON = jsonBinding{}
+ XML = xmlBinding{}
+ Form = formBinding{}
+ Query = queryBinding{}
+ FormPost = formPostBinding{}
+ FormMultipart = formMultipartBinding{}
+ ProtoBuf = protobufBinding{}
+ YAML = yamlBinding{}
+ Uri = uriBinding{}
+ Header = headerBinding{}
+)
+
+// Default returns the appropriate Binding instance based on the HTTP method
+// and the content type.
+func Default(method, contentType string) Binding {
+ if method == "GET" {
+ return Form
+ }
+
+ switch contentType {
+ case MIMEJSON:
+ return JSON
+ case MIMEXML, MIMEXML2:
+ return XML
+ case MIMEPROTOBUF:
+ return ProtoBuf
+ case MIMEYAML:
+ return YAML
+ case MIMEMultipartPOSTForm:
+ return FormMultipart
+ default: // case MIMEPOSTForm:
+ return Form
+ }
+}
+
+func validate(obj interface{}) error {
+ if Validator == nil {
+ return nil
+ }
+ return Validator.ValidateStruct(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/default_validator.go b/vendor/github.com/gin-gonic/gin/binding/default_validator.go
new file mode 100644
index 000000000..87fc4c665
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/default_validator.go
@@ -0,0 +1,97 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "fmt"
+ "reflect"
+ "strings"
+ "sync"
+
+ "github.com/go-playground/validator/v10"
+)
+
+type defaultValidator struct {
+ once sync.Once
+ validate *validator.Validate
+}
+
+type sliceValidateError []error
+
+// Error concatenates all error elements in sliceValidateError into a single string separated by \n.
+func (err sliceValidateError) Error() string {
+ n := len(err)
+ switch n {
+ case 0:
+ return ""
+ default:
+ var b strings.Builder
+ if err[0] != nil {
+ fmt.Fprintf(&b, "[%d]: %s", 0, err[0].Error())
+ }
+ if n > 1 {
+ for i := 1; i < n; i++ {
+ if err[i] != nil {
+ b.WriteString("\n")
+ fmt.Fprintf(&b, "[%d]: %s", i, err[i].Error())
+ }
+ }
+ }
+ return b.String()
+ }
+}
+
+var _ StructValidator = &defaultValidator{}
+
+// ValidateStruct receives any kind of type, but only performed struct or pointer to struct type.
+func (v *defaultValidator) ValidateStruct(obj interface{}) error {
+ if obj == nil {
+ return nil
+ }
+
+ value := reflect.ValueOf(obj)
+ switch value.Kind() {
+ case reflect.Ptr:
+ return v.ValidateStruct(value.Elem().Interface())
+ case reflect.Struct:
+ return v.validateStruct(obj)
+ case reflect.Slice, reflect.Array:
+ count := value.Len()
+ validateRet := make(sliceValidateError, 0)
+ for i := 0; i < count; i++ {
+ if err := v.ValidateStruct(value.Index(i).Interface()); err != nil {
+ validateRet = append(validateRet, err)
+ }
+ }
+ if len(validateRet) == 0 {
+ return nil
+ }
+ return validateRet
+ default:
+ return nil
+ }
+}
+
+// validateStruct receives struct type
+func (v *defaultValidator) validateStruct(obj interface{}) error {
+ v.lazyinit()
+ return v.validate.Struct(obj)
+}
+
+// Engine returns the underlying validator engine which powers the default
+// Validator instance. This is useful if you want to register custom validations
+// or struct level validations. See validator GoDoc for more info -
+// https://pkg.go.dev/github.com/go-playground/validator/v10
+func (v *defaultValidator) Engine() interface{} {
+ v.lazyinit()
+ return v.validate
+}
+
+func (v *defaultValidator) lazyinit() {
+ v.once.Do(func() {
+ v.validate = validator.New()
+ v.validate.SetTagName("binding")
+ })
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/form.go b/vendor/github.com/gin-gonic/gin/binding/form.go
new file mode 100644
index 000000000..040af9e20
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/form.go
@@ -0,0 +1,61 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "net/http"
+)
+
+const defaultMemory = 32 << 20
+
+type formBinding struct{}
+type formPostBinding struct{}
+type formMultipartBinding struct{}
+
+func (formBinding) Name() string {
+ return "form"
+}
+
+func (formBinding) Bind(req *http.Request, obj interface{}) error {
+ if err := req.ParseForm(); err != nil {
+ return err
+ }
+ if err := req.ParseMultipartForm(defaultMemory); err != nil && err != http.ErrNotMultipart {
+ return err
+ }
+ if err := mapForm(obj, req.Form); err != nil {
+ return err
+ }
+ return validate(obj)
+}
+
+func (formPostBinding) Name() string {
+ return "form-urlencoded"
+}
+
+func (formPostBinding) Bind(req *http.Request, obj interface{}) error {
+ if err := req.ParseForm(); err != nil {
+ return err
+ }
+ if err := mapForm(obj, req.PostForm); err != nil {
+ return err
+ }
+ return validate(obj)
+}
+
+func (formMultipartBinding) Name() string {
+ return "multipart/form-data"
+}
+
+func (formMultipartBinding) Bind(req *http.Request, obj interface{}) error {
+ if err := req.ParseMultipartForm(defaultMemory); err != nil {
+ return err
+ }
+ if err := mappingByPtr(obj, (*multipartRequest)(req), "form"); err != nil {
+ return err
+ }
+
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/form_mapping.go b/vendor/github.com/gin-gonic/gin/binding/form_mapping.go
new file mode 100644
index 000000000..cb66dd4a7
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/form_mapping.go
@@ -0,0 +1,404 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "errors"
+ "fmt"
+ "reflect"
+ "strconv"
+ "strings"
+ "time"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+ "github.com/gin-gonic/gin/internal/json"
+)
+
+var (
+ errUnknownType = errors.New("unknown type")
+
+ // ErrConvertMapStringSlice can not covert to map[string][]string
+ ErrConvertMapStringSlice = errors.New("can not convert to map slices of strings")
+
+ // ErrConvertToMapString can not convert to map[string]string
+ ErrConvertToMapString = errors.New("can not convert to map of strings")
+)
+
+func mapUri(ptr interface{}, m map[string][]string) error {
+ return mapFormByTag(ptr, m, "uri")
+}
+
+func mapForm(ptr interface{}, form map[string][]string) error {
+ return mapFormByTag(ptr, form, "form")
+}
+
+func MapFormWithTag(ptr interface{}, form map[string][]string, tag string) error {
+ return mapFormByTag(ptr, form, tag)
+}
+
+var emptyField = reflect.StructField{}
+
+func mapFormByTag(ptr interface{}, form map[string][]string, tag string) error {
+ // Check if ptr is a map
+ ptrVal := reflect.ValueOf(ptr)
+ var pointed interface{}
+ if ptrVal.Kind() == reflect.Ptr {
+ ptrVal = ptrVal.Elem()
+ pointed = ptrVal.Interface()
+ }
+ if ptrVal.Kind() == reflect.Map &&
+ ptrVal.Type().Key().Kind() == reflect.String {
+ if pointed != nil {
+ ptr = pointed
+ }
+ return setFormMap(ptr, form)
+ }
+
+ return mappingByPtr(ptr, formSource(form), tag)
+}
+
+// setter tries to set value on a walking by fields of a struct
+type setter interface {
+ TrySet(value reflect.Value, field reflect.StructField, key string, opt setOptions) (isSetted bool, err error)
+}
+
+type formSource map[string][]string
+
+var _ setter = formSource(nil)
+
+// TrySet tries to set a value by request's form source (like map[string][]string)
+func (form formSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions) (isSetted bool, err error) {
+ return setByForm(value, field, form, tagValue, opt)
+}
+
+func mappingByPtr(ptr interface{}, setter setter, tag string) error {
+ _, err := mapping(reflect.ValueOf(ptr), emptyField, setter, tag)
+ return err
+}
+
+func mapping(value reflect.Value, field reflect.StructField, setter setter, tag string) (bool, error) {
+ if field.Tag.Get(tag) == "-" { // just ignoring this field
+ return false, nil
+ }
+
+ var vKind = value.Kind()
+
+ if vKind == reflect.Ptr {
+ var isNew bool
+ vPtr := value
+ if value.IsNil() {
+ isNew = true
+ vPtr = reflect.New(value.Type().Elem())
+ }
+ isSetted, err := mapping(vPtr.Elem(), field, setter, tag)
+ if err != nil {
+ return false, err
+ }
+ if isNew && isSetted {
+ value.Set(vPtr)
+ }
+ return isSetted, nil
+ }
+
+ if vKind != reflect.Struct || !field.Anonymous {
+ ok, err := tryToSetValue(value, field, setter, tag)
+ if err != nil {
+ return false, err
+ }
+ if ok {
+ return true, nil
+ }
+ }
+
+ if vKind == reflect.Struct {
+ tValue := value.Type()
+
+ var isSetted bool
+ for i := 0; i < value.NumField(); i++ {
+ sf := tValue.Field(i)
+ if sf.PkgPath != "" && !sf.Anonymous { // unexported
+ continue
+ }
+ ok, err := mapping(value.Field(i), sf, setter, tag)
+ if err != nil {
+ return false, err
+ }
+ isSetted = isSetted || ok
+ }
+ return isSetted, nil
+ }
+ return false, nil
+}
+
+type setOptions struct {
+ isDefaultExists bool
+ defaultValue string
+}
+
+func tryToSetValue(value reflect.Value, field reflect.StructField, setter setter, tag string) (bool, error) {
+ var tagValue string
+ var setOpt setOptions
+
+ tagValue = field.Tag.Get(tag)
+ tagValue, opts := head(tagValue, ",")
+
+ if tagValue == "" { // default value is FieldName
+ tagValue = field.Name
+ }
+ if tagValue == "" { // when field is "emptyField" variable
+ return false, nil
+ }
+
+ var opt string
+ for len(opts) > 0 {
+ opt, opts = head(opts, ",")
+
+ if k, v := head(opt, "="); k == "default" {
+ setOpt.isDefaultExists = true
+ setOpt.defaultValue = v
+ }
+ }
+
+ return setter.TrySet(value, field, tagValue, setOpt)
+}
+
+func setByForm(value reflect.Value, field reflect.StructField, form map[string][]string, tagValue string, opt setOptions) (isSetted bool, err error) {
+ vs, ok := form[tagValue]
+ if !ok && !opt.isDefaultExists {
+ return false, nil
+ }
+
+ switch value.Kind() {
+ case reflect.Slice:
+ if !ok {
+ vs = []string{opt.defaultValue}
+ }
+ return true, setSlice(vs, value, field)
+ case reflect.Array:
+ if !ok {
+ vs = []string{opt.defaultValue}
+ }
+ if len(vs) != value.Len() {
+ return false, fmt.Errorf("%q is not valid value for %s", vs, value.Type().String())
+ }
+ return true, setArray(vs, value, field)
+ default:
+ var val string
+ if !ok {
+ val = opt.defaultValue
+ }
+
+ if len(vs) > 0 {
+ val = vs[0]
+ }
+ return true, setWithProperType(val, value, field)
+ }
+}
+
+func setWithProperType(val string, value reflect.Value, field reflect.StructField) error {
+ switch value.Kind() {
+ case reflect.Int:
+ return setIntField(val, 0, value)
+ case reflect.Int8:
+ return setIntField(val, 8, value)
+ case reflect.Int16:
+ return setIntField(val, 16, value)
+ case reflect.Int32:
+ return setIntField(val, 32, value)
+ case reflect.Int64:
+ switch value.Interface().(type) {
+ case time.Duration:
+ return setTimeDuration(val, value, field)
+ }
+ return setIntField(val, 64, value)
+ case reflect.Uint:
+ return setUintField(val, 0, value)
+ case reflect.Uint8:
+ return setUintField(val, 8, value)
+ case reflect.Uint16:
+ return setUintField(val, 16, value)
+ case reflect.Uint32:
+ return setUintField(val, 32, value)
+ case reflect.Uint64:
+ return setUintField(val, 64, value)
+ case reflect.Bool:
+ return setBoolField(val, value)
+ case reflect.Float32:
+ return setFloatField(val, 32, value)
+ case reflect.Float64:
+ return setFloatField(val, 64, value)
+ case reflect.String:
+ value.SetString(val)
+ case reflect.Struct:
+ switch value.Interface().(type) {
+ case time.Time:
+ return setTimeField(val, field, value)
+ }
+ return json.Unmarshal(bytesconv.StringToBytes(val), value.Addr().Interface())
+ case reflect.Map:
+ return json.Unmarshal(bytesconv.StringToBytes(val), value.Addr().Interface())
+ default:
+ return errUnknownType
+ }
+ return nil
+}
+
+func setIntField(val string, bitSize int, field reflect.Value) error {
+ if val == "" {
+ val = "0"
+ }
+ intVal, err := strconv.ParseInt(val, 10, bitSize)
+ if err == nil {
+ field.SetInt(intVal)
+ }
+ return err
+}
+
+func setUintField(val string, bitSize int, field reflect.Value) error {
+ if val == "" {
+ val = "0"
+ }
+ uintVal, err := strconv.ParseUint(val, 10, bitSize)
+ if err == nil {
+ field.SetUint(uintVal)
+ }
+ return err
+}
+
+func setBoolField(val string, field reflect.Value) error {
+ if val == "" {
+ val = "false"
+ }
+ boolVal, err := strconv.ParseBool(val)
+ if err == nil {
+ field.SetBool(boolVal)
+ }
+ return err
+}
+
+func setFloatField(val string, bitSize int, field reflect.Value) error {
+ if val == "" {
+ val = "0.0"
+ }
+ floatVal, err := strconv.ParseFloat(val, bitSize)
+ if err == nil {
+ field.SetFloat(floatVal)
+ }
+ return err
+}
+
+func setTimeField(val string, structField reflect.StructField, value reflect.Value) error {
+ timeFormat := structField.Tag.Get("time_format")
+ if timeFormat == "" {
+ timeFormat = time.RFC3339
+ }
+
+ switch tf := strings.ToLower(timeFormat); tf {
+ case "unix", "unixnano":
+ tv, err := strconv.ParseInt(val, 10, 64)
+ if err != nil {
+ return err
+ }
+
+ d := time.Duration(1)
+ if tf == "unixnano" {
+ d = time.Second
+ }
+
+ t := time.Unix(tv/int64(d), tv%int64(d))
+ value.Set(reflect.ValueOf(t))
+ return nil
+
+ }
+
+ if val == "" {
+ value.Set(reflect.ValueOf(time.Time{}))
+ return nil
+ }
+
+ l := time.Local
+ if isUTC, _ := strconv.ParseBool(structField.Tag.Get("time_utc")); isUTC {
+ l = time.UTC
+ }
+
+ if locTag := structField.Tag.Get("time_location"); locTag != "" {
+ loc, err := time.LoadLocation(locTag)
+ if err != nil {
+ return err
+ }
+ l = loc
+ }
+
+ t, err := time.ParseInLocation(timeFormat, val, l)
+ if err != nil {
+ return err
+ }
+
+ value.Set(reflect.ValueOf(t))
+ return nil
+}
+
+func setArray(vals []string, value reflect.Value, field reflect.StructField) error {
+ for i, s := range vals {
+ err := setWithProperType(s, value.Index(i), field)
+ if err != nil {
+ return err
+ }
+ }
+ return nil
+}
+
+func setSlice(vals []string, value reflect.Value, field reflect.StructField) error {
+ slice := reflect.MakeSlice(value.Type(), len(vals), len(vals))
+ err := setArray(vals, slice, field)
+ if err != nil {
+ return err
+ }
+ value.Set(slice)
+ return nil
+}
+
+func setTimeDuration(val string, value reflect.Value, field reflect.StructField) error {
+ d, err := time.ParseDuration(val)
+ if err != nil {
+ return err
+ }
+ value.Set(reflect.ValueOf(d))
+ return nil
+}
+
+func head(str, sep string) (head string, tail string) {
+ idx := strings.Index(str, sep)
+ if idx < 0 {
+ return str, ""
+ }
+ return str[:idx], str[idx+len(sep):]
+}
+
+func setFormMap(ptr interface{}, form map[string][]string) error {
+ el := reflect.TypeOf(ptr).Elem()
+
+ if el.Kind() == reflect.Slice {
+ ptrMap, ok := ptr.(map[string][]string)
+ if !ok {
+ return ErrConvertMapStringSlice
+ }
+ for k, v := range form {
+ ptrMap[k] = v
+ }
+
+ return nil
+ }
+
+ ptrMap, ok := ptr.(map[string]string)
+ if !ok {
+ return ErrConvertToMapString
+ }
+ for k, v := range form {
+ ptrMap[k] = v[len(v)-1] // pick last
+ }
+
+ return nil
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/header.go b/vendor/github.com/gin-gonic/gin/binding/header.go
new file mode 100644
index 000000000..b99302af8
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/header.go
@@ -0,0 +1,34 @@
+package binding
+
+import (
+ "net/http"
+ "net/textproto"
+ "reflect"
+)
+
+type headerBinding struct{}
+
+func (headerBinding) Name() string {
+ return "header"
+}
+
+func (headerBinding) Bind(req *http.Request, obj interface{}) error {
+
+ if err := mapHeader(obj, req.Header); err != nil {
+ return err
+ }
+
+ return validate(obj)
+}
+
+func mapHeader(ptr interface{}, h map[string][]string) error {
+ return mappingByPtr(ptr, headerSource(h), "header")
+}
+
+type headerSource map[string][]string
+
+var _ setter = headerSource(nil)
+
+func (hs headerSource) TrySet(value reflect.Value, field reflect.StructField, tagValue string, opt setOptions) (bool, error) {
+ return setByForm(value, field, hs, textproto.CanonicalMIMEHeaderKey(tagValue), opt)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/json.go b/vendor/github.com/gin-gonic/gin/binding/json.go
new file mode 100644
index 000000000..45aaa4948
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/json.go
@@ -0,0 +1,56 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "bytes"
+ "errors"
+ "io"
+ "net/http"
+
+ "github.com/gin-gonic/gin/internal/json"
+)
+
+// EnableDecoderUseNumber is used to call the UseNumber method on the JSON
+// Decoder instance. UseNumber causes the Decoder to unmarshal a number into an
+// interface{} as a Number instead of as a float64.
+var EnableDecoderUseNumber = false
+
+// EnableDecoderDisallowUnknownFields is used to call the DisallowUnknownFields method
+// on the JSON Decoder instance. DisallowUnknownFields causes the Decoder to
+// return an error when the destination is a struct and the input contains object
+// keys which do not match any non-ignored, exported fields in the destination.
+var EnableDecoderDisallowUnknownFields = false
+
+type jsonBinding struct{}
+
+func (jsonBinding) Name() string {
+ return "json"
+}
+
+func (jsonBinding) Bind(req *http.Request, obj interface{}) error {
+ if req == nil || req.Body == nil {
+ return errors.New("invalid request")
+ }
+ return decodeJSON(req.Body, obj)
+}
+
+func (jsonBinding) BindBody(body []byte, obj interface{}) error {
+ return decodeJSON(bytes.NewReader(body), obj)
+}
+
+func decodeJSON(r io.Reader, obj interface{}) error {
+ decoder := json.NewDecoder(r)
+ if EnableDecoderUseNumber {
+ decoder.UseNumber()
+ }
+ if EnableDecoderDisallowUnknownFields {
+ decoder.DisallowUnknownFields()
+ }
+ if err := decoder.Decode(obj); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/msgpack.go b/vendor/github.com/gin-gonic/gin/binding/msgpack.go
new file mode 100644
index 000000000..2a442996a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/msgpack.go
@@ -0,0 +1,38 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build !nomsgpack
+// +build !nomsgpack
+
+package binding
+
+import (
+ "bytes"
+ "io"
+ "net/http"
+
+ "github.com/ugorji/go/codec"
+)
+
+type msgpackBinding struct{}
+
+func (msgpackBinding) Name() string {
+ return "msgpack"
+}
+
+func (msgpackBinding) Bind(req *http.Request, obj interface{}) error {
+ return decodeMsgPack(req.Body, obj)
+}
+
+func (msgpackBinding) BindBody(body []byte, obj interface{}) error {
+ return decodeMsgPack(bytes.NewReader(body), obj)
+}
+
+func decodeMsgPack(r io.Reader, obj interface{}) error {
+ cdc := new(codec.MsgpackHandle)
+ if err := codec.NewDecoder(r, cdc).Decode(&obj); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/multipart_form_mapping.go b/vendor/github.com/gin-gonic/gin/binding/multipart_form_mapping.go
new file mode 100644
index 000000000..69c0a5443
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/multipart_form_mapping.go
@@ -0,0 +1,74 @@
+// Copyright 2019 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "errors"
+ "mime/multipart"
+ "net/http"
+ "reflect"
+)
+
+type multipartRequest http.Request
+
+var _ setter = (*multipartRequest)(nil)
+
+var (
+ // ErrMultiFileHeader multipart.FileHeader invalid
+ ErrMultiFileHeader = errors.New("unsupported field type for multipart.FileHeader")
+
+ // ErrMultiFileHeaderLenInvalid array for []*multipart.FileHeader len invalid
+ ErrMultiFileHeaderLenInvalid = errors.New("unsupported len of array for []*multipart.FileHeader")
+)
+
+// TrySet tries to set a value by the multipart request with the binding a form file
+func (r *multipartRequest) TrySet(value reflect.Value, field reflect.StructField, key string, opt setOptions) (bool, error) {
+ if files := r.MultipartForm.File[key]; len(files) != 0 {
+ return setByMultipartFormFile(value, field, files)
+ }
+
+ return setByForm(value, field, r.MultipartForm.Value, key, opt)
+}
+
+func setByMultipartFormFile(value reflect.Value, field reflect.StructField, files []*multipart.FileHeader) (isSetted bool, err error) {
+ switch value.Kind() {
+ case reflect.Ptr:
+ switch value.Interface().(type) {
+ case *multipart.FileHeader:
+ value.Set(reflect.ValueOf(files[0]))
+ return true, nil
+ }
+ case reflect.Struct:
+ switch value.Interface().(type) {
+ case multipart.FileHeader:
+ value.Set(reflect.ValueOf(*files[0]))
+ return true, nil
+ }
+ case reflect.Slice:
+ slice := reflect.MakeSlice(value.Type(), len(files), len(files))
+ isSetted, err = setArrayOfMultipartFormFiles(slice, field, files)
+ if err != nil || !isSetted {
+ return isSetted, err
+ }
+ value.Set(slice)
+ return true, nil
+ case reflect.Array:
+ return setArrayOfMultipartFormFiles(value, field, files)
+ }
+ return false, ErrMultiFileHeader
+}
+
+func setArrayOfMultipartFormFiles(value reflect.Value, field reflect.StructField, files []*multipart.FileHeader) (isSetted bool, err error) {
+ if value.Len() != len(files) {
+ return false, ErrMultiFileHeaderLenInvalid
+ }
+ for i := range files {
+ setted, err := setByMultipartFormFile(value.Index(i), field, files[i:i+1])
+ if err != nil || !setted {
+ return setted, err
+ }
+ }
+ return true, nil
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/protobuf.go b/vendor/github.com/gin-gonic/gin/binding/protobuf.go
new file mode 100644
index 000000000..f9ece928d
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/protobuf.go
@@ -0,0 +1,36 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "io/ioutil"
+ "net/http"
+
+ "github.com/golang/protobuf/proto"
+)
+
+type protobufBinding struct{}
+
+func (protobufBinding) Name() string {
+ return "protobuf"
+}
+
+func (b protobufBinding) Bind(req *http.Request, obj interface{}) error {
+ buf, err := ioutil.ReadAll(req.Body)
+ if err != nil {
+ return err
+ }
+ return b.BindBody(buf, obj)
+}
+
+func (protobufBinding) BindBody(body []byte, obj interface{}) error {
+ if err := proto.Unmarshal(body, obj.(proto.Message)); err != nil {
+ return err
+ }
+ // Here it's same to return validate(obj), but util now we can't add
+ // `binding:""` to the struct which automatically generate by gen-proto
+ return nil
+ // return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/query.go b/vendor/github.com/gin-gonic/gin/binding/query.go
new file mode 100644
index 000000000..219743f2a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/query.go
@@ -0,0 +1,21 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import "net/http"
+
+type queryBinding struct{}
+
+func (queryBinding) Name() string {
+ return "query"
+}
+
+func (queryBinding) Bind(req *http.Request, obj interface{}) error {
+ values := req.URL.Query()
+ if err := mapForm(obj, values); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/uri.go b/vendor/github.com/gin-gonic/gin/binding/uri.go
new file mode 100644
index 000000000..f91ec3819
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/uri.go
@@ -0,0 +1,18 @@
+// Copyright 2018 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+type uriBinding struct{}
+
+func (uriBinding) Name() string {
+ return "uri"
+}
+
+func (uriBinding) BindUri(m map[string][]string, obj interface{}) error {
+ if err := mapUri(obj, m); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/xml.go b/vendor/github.com/gin-gonic/gin/binding/xml.go
new file mode 100644
index 000000000..4e9011496
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/xml.go
@@ -0,0 +1,33 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "bytes"
+ "encoding/xml"
+ "io"
+ "net/http"
+)
+
+type xmlBinding struct{}
+
+func (xmlBinding) Name() string {
+ return "xml"
+}
+
+func (xmlBinding) Bind(req *http.Request, obj interface{}) error {
+ return decodeXML(req.Body, obj)
+}
+
+func (xmlBinding) BindBody(body []byte, obj interface{}) error {
+ return decodeXML(bytes.NewReader(body), obj)
+}
+func decodeXML(r io.Reader, obj interface{}) error {
+ decoder := xml.NewDecoder(r)
+ if err := decoder.Decode(obj); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/binding/yaml.go b/vendor/github.com/gin-gonic/gin/binding/yaml.go
new file mode 100644
index 000000000..a2d36d6a5
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/binding/yaml.go
@@ -0,0 +1,35 @@
+// Copyright 2018 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package binding
+
+import (
+ "bytes"
+ "io"
+ "net/http"
+
+ "gopkg.in/yaml.v2"
+)
+
+type yamlBinding struct{}
+
+func (yamlBinding) Name() string {
+ return "yaml"
+}
+
+func (yamlBinding) Bind(req *http.Request, obj interface{}) error {
+ return decodeYAML(req.Body, obj)
+}
+
+func (yamlBinding) BindBody(body []byte, obj interface{}) error {
+ return decodeYAML(bytes.NewReader(body), obj)
+}
+
+func decodeYAML(r io.Reader, obj interface{}) error {
+ decoder := yaml.NewDecoder(r)
+ if err := decoder.Decode(obj); err != nil {
+ return err
+ }
+ return validate(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/codecov.yml b/vendor/github.com/gin-gonic/gin/codecov.yml
new file mode 100644
index 000000000..c9c9a522d
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/codecov.yml
@@ -0,0 +1,5 @@
+coverage:
+ notify:
+ gitter:
+ default:
+ url: https://webhooks.gitter.im/e/d90dcdeeab2f1e357165
diff --git a/vendor/github.com/gin-gonic/gin/context.go b/vendor/github.com/gin-gonic/gin/context.go
new file mode 100644
index 000000000..ecf74ba9b
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/context.go
@@ -0,0 +1,1198 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "errors"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "log"
+ "math"
+ "mime/multipart"
+ "net"
+ "net/http"
+ "net/url"
+ "os"
+ "strings"
+ "sync"
+ "time"
+
+ "github.com/gin-contrib/sse"
+ "github.com/gin-gonic/gin/binding"
+ "github.com/gin-gonic/gin/render"
+)
+
+// Content-Type MIME of the most common data formats.
+const (
+ MIMEJSON = binding.MIMEJSON
+ MIMEHTML = binding.MIMEHTML
+ MIMEXML = binding.MIMEXML
+ MIMEXML2 = binding.MIMEXML2
+ MIMEPlain = binding.MIMEPlain
+ MIMEPOSTForm = binding.MIMEPOSTForm
+ MIMEMultipartPOSTForm = binding.MIMEMultipartPOSTForm
+ MIMEYAML = binding.MIMEYAML
+)
+
+// BodyBytesKey indicates a default body bytes key.
+const BodyBytesKey = "_gin-gonic/gin/bodybyteskey"
+
+// abortIndex represents a typical value used in abort functions.
+const abortIndex int8 = math.MaxInt8 >> 1
+
+// Context is the most important part of gin. It allows us to pass variables between middleware,
+// manage the flow, validate the JSON of a request and render a JSON response for example.
+type Context struct {
+ writermem responseWriter
+ Request *http.Request
+ Writer ResponseWriter
+
+ Params Params
+ handlers HandlersChain
+ index int8
+ fullPath string
+
+ engine *Engine
+ params *Params
+
+ // This mutex protect Keys map
+ mu sync.RWMutex
+
+ // Keys is a key/value pair exclusively for the context of each request.
+ Keys map[string]interface{}
+
+ // Errors is a list of errors attached to all the handlers/middlewares who used this context.
+ Errors errorMsgs
+
+ // Accepted defines a list of manually accepted formats for content negotiation.
+ Accepted []string
+
+ // queryCache use url.ParseQuery cached the param query result from c.Request.URL.Query()
+ queryCache url.Values
+
+ // formCache use url.ParseQuery cached PostForm contains the parsed form data from POST, PATCH,
+ // or PUT body parameters.
+ formCache url.Values
+
+ // SameSite allows a server to define a cookie attribute making it impossible for
+ // the browser to send this cookie along with cross-site requests.
+ sameSite http.SameSite
+}
+
+/************************************/
+/********** CONTEXT CREATION ********/
+/************************************/
+
+func (c *Context) reset() {
+ c.Writer = &c.writermem
+ c.Params = c.Params[:0]
+ c.handlers = nil
+ c.index = -1
+
+ c.fullPath = ""
+ c.Keys = nil
+ c.Errors = c.Errors[:0]
+ c.Accepted = nil
+ c.queryCache = nil
+ c.formCache = nil
+ *c.params = (*c.params)[:0]
+}
+
+// Copy returns a copy of the current context that can be safely used outside the request's scope.
+// This has to be used when the context has to be passed to a goroutine.
+func (c *Context) Copy() *Context {
+ cp := Context{
+ writermem: c.writermem,
+ Request: c.Request,
+ Params: c.Params,
+ engine: c.engine,
+ }
+ cp.writermem.ResponseWriter = nil
+ cp.Writer = &cp.writermem
+ cp.index = abortIndex
+ cp.handlers = nil
+ cp.Keys = map[string]interface{}{}
+ for k, v := range c.Keys {
+ cp.Keys[k] = v
+ }
+ paramCopy := make([]Param, len(cp.Params))
+ copy(paramCopy, cp.Params)
+ cp.Params = paramCopy
+ return &cp
+}
+
+// HandlerName returns the main handler's name. For example if the handler is "handleGetUsers()",
+// this function will return "main.handleGetUsers".
+func (c *Context) HandlerName() string {
+ return nameOfFunction(c.handlers.Last())
+}
+
+// HandlerNames returns a list of all registered handlers for this context in descending order,
+// following the semantics of HandlerName()
+func (c *Context) HandlerNames() []string {
+ hn := make([]string, 0, len(c.handlers))
+ for _, val := range c.handlers {
+ hn = append(hn, nameOfFunction(val))
+ }
+ return hn
+}
+
+// Handler returns the main handler.
+func (c *Context) Handler() HandlerFunc {
+ return c.handlers.Last()
+}
+
+// FullPath returns a matched route full path. For not found routes
+// returns an empty string.
+// router.GET("/user/:id", func(c *gin.Context) {
+// c.FullPath() == "/user/:id" // true
+// })
+func (c *Context) FullPath() string {
+ return c.fullPath
+}
+
+/************************************/
+/*********** FLOW CONTROL ***********/
+/************************************/
+
+// Next should be used only inside middleware.
+// It executes the pending handlers in the chain inside the calling handler.
+// See example in GitHub.
+func (c *Context) Next() {
+ c.index++
+ for c.index < int8(len(c.handlers)) {
+ c.handlers[c.index](c)
+ c.index++
+ }
+}
+
+// IsAborted returns true if the current context was aborted.
+func (c *Context) IsAborted() bool {
+ return c.index >= abortIndex
+}
+
+// Abort prevents pending handlers from being called. Note that this will not stop the current handler.
+// Let's say you have an authorization middleware that validates that the current request is authorized.
+// If the authorization fails (ex: the password does not match), call Abort to ensure the remaining handlers
+// for this request are not called.
+func (c *Context) Abort() {
+ c.index = abortIndex
+}
+
+// AbortWithStatus calls `Abort()` and writes the headers with the specified status code.
+// For example, a failed attempt to authenticate a request could use: context.AbortWithStatus(401).
+func (c *Context) AbortWithStatus(code int) {
+ c.Status(code)
+ c.Writer.WriteHeaderNow()
+ c.Abort()
+}
+
+// AbortWithStatusJSON calls `Abort()` and then `JSON` internally.
+// This method stops the chain, writes the status code and return a JSON body.
+// It also sets the Content-Type as "application/json".
+func (c *Context) AbortWithStatusJSON(code int, jsonObj interface{}) {
+ c.Abort()
+ c.JSON(code, jsonObj)
+}
+
+// AbortWithError calls `AbortWithStatus()` and `Error()` internally.
+// This method stops the chain, writes the status code and pushes the specified error to `c.Errors`.
+// See Context.Error() for more details.
+func (c *Context) AbortWithError(code int, err error) *Error {
+ c.AbortWithStatus(code)
+ return c.Error(err)
+}
+
+/************************************/
+/********* ERROR MANAGEMENT *********/
+/************************************/
+
+// Error attaches an error to the current context. The error is pushed to a list of errors.
+// It's a good idea to call Error for each error that occurred during the resolution of a request.
+// A middleware can be used to collect all the errors and push them to a database together,
+// print a log, or append it in the HTTP response.
+// Error will panic if err is nil.
+func (c *Context) Error(err error) *Error {
+ if err == nil {
+ panic("err is nil")
+ }
+
+ parsedError, ok := err.(*Error)
+ if !ok {
+ parsedError = &Error{
+ Err: err,
+ Type: ErrorTypePrivate,
+ }
+ }
+
+ c.Errors = append(c.Errors, parsedError)
+ return parsedError
+}
+
+/************************************/
+/******** METADATA MANAGEMENT********/
+/************************************/
+
+// Set is used to store a new key/value pair exclusively for this context.
+// It also lazy initializes c.Keys if it was not used previously.
+func (c *Context) Set(key string, value interface{}) {
+ c.mu.Lock()
+ if c.Keys == nil {
+ c.Keys = make(map[string]interface{})
+ }
+
+ c.Keys[key] = value
+ c.mu.Unlock()
+}
+
+// Get returns the value for the given key, ie: (value, true).
+// If the value does not exists it returns (nil, false)
+func (c *Context) Get(key string) (value interface{}, exists bool) {
+ c.mu.RLock()
+ value, exists = c.Keys[key]
+ c.mu.RUnlock()
+ return
+}
+
+// MustGet returns the value for the given key if it exists, otherwise it panics.
+func (c *Context) MustGet(key string) interface{} {
+ if value, exists := c.Get(key); exists {
+ return value
+ }
+ panic("Key \"" + key + "\" does not exist")
+}
+
+// GetString returns the value associated with the key as a string.
+func (c *Context) GetString(key string) (s string) {
+ if val, ok := c.Get(key); ok && val != nil {
+ s, _ = val.(string)
+ }
+ return
+}
+
+// GetBool returns the value associated with the key as a boolean.
+func (c *Context) GetBool(key string) (b bool) {
+ if val, ok := c.Get(key); ok && val != nil {
+ b, _ = val.(bool)
+ }
+ return
+}
+
+// GetInt returns the value associated with the key as an integer.
+func (c *Context) GetInt(key string) (i int) {
+ if val, ok := c.Get(key); ok && val != nil {
+ i, _ = val.(int)
+ }
+ return
+}
+
+// GetInt64 returns the value associated with the key as an integer.
+func (c *Context) GetInt64(key string) (i64 int64) {
+ if val, ok := c.Get(key); ok && val != nil {
+ i64, _ = val.(int64)
+ }
+ return
+}
+
+// GetUint returns the value associated with the key as an unsigned integer.
+func (c *Context) GetUint(key string) (ui uint) {
+ if val, ok := c.Get(key); ok && val != nil {
+ ui, _ = val.(uint)
+ }
+ return
+}
+
+// GetUint64 returns the value associated with the key as an unsigned integer.
+func (c *Context) GetUint64(key string) (ui64 uint64) {
+ if val, ok := c.Get(key); ok && val != nil {
+ ui64, _ = val.(uint64)
+ }
+ return
+}
+
+// GetFloat64 returns the value associated with the key as a float64.
+func (c *Context) GetFloat64(key string) (f64 float64) {
+ if val, ok := c.Get(key); ok && val != nil {
+ f64, _ = val.(float64)
+ }
+ return
+}
+
+// GetTime returns the value associated with the key as time.
+func (c *Context) GetTime(key string) (t time.Time) {
+ if val, ok := c.Get(key); ok && val != nil {
+ t, _ = val.(time.Time)
+ }
+ return
+}
+
+// GetDuration returns the value associated with the key as a duration.
+func (c *Context) GetDuration(key string) (d time.Duration) {
+ if val, ok := c.Get(key); ok && val != nil {
+ d, _ = val.(time.Duration)
+ }
+ return
+}
+
+// GetStringSlice returns the value associated with the key as a slice of strings.
+func (c *Context) GetStringSlice(key string) (ss []string) {
+ if val, ok := c.Get(key); ok && val != nil {
+ ss, _ = val.([]string)
+ }
+ return
+}
+
+// GetStringMap returns the value associated with the key as a map of interfaces.
+func (c *Context) GetStringMap(key string) (sm map[string]interface{}) {
+ if val, ok := c.Get(key); ok && val != nil {
+ sm, _ = val.(map[string]interface{})
+ }
+ return
+}
+
+// GetStringMapString returns the value associated with the key as a map of strings.
+func (c *Context) GetStringMapString(key string) (sms map[string]string) {
+ if val, ok := c.Get(key); ok && val != nil {
+ sms, _ = val.(map[string]string)
+ }
+ return
+}
+
+// GetStringMapStringSlice returns the value associated with the key as a map to a slice of strings.
+func (c *Context) GetStringMapStringSlice(key string) (smss map[string][]string) {
+ if val, ok := c.Get(key); ok && val != nil {
+ smss, _ = val.(map[string][]string)
+ }
+ return
+}
+
+/************************************/
+/************ INPUT DATA ************/
+/************************************/
+
+// Param returns the value of the URL param.
+// It is a shortcut for c.Params.ByName(key)
+// router.GET("/user/:id", func(c *gin.Context) {
+// // a GET request to /user/john
+// id := c.Param("id") // id == "john"
+// })
+func (c *Context) Param(key string) string {
+ return c.Params.ByName(key)
+}
+
+// Query returns the keyed url query value if it exists,
+// otherwise it returns an empty string `("")`.
+// It is shortcut for `c.Request.URL.Query().Get(key)`
+// GET /path?id=1234&name=Manu&value=
+// c.Query("id") == "1234"
+// c.Query("name") == "Manu"
+// c.Query("value") == ""
+// c.Query("wtf") == ""
+func (c *Context) Query(key string) string {
+ value, _ := c.GetQuery(key)
+ return value
+}
+
+// DefaultQuery returns the keyed url query value if it exists,
+// otherwise it returns the specified defaultValue string.
+// See: Query() and GetQuery() for further information.
+// GET /?name=Manu&lastname=
+// c.DefaultQuery("name", "unknown") == "Manu"
+// c.DefaultQuery("id", "none") == "none"
+// c.DefaultQuery("lastname", "none") == ""
+func (c *Context) DefaultQuery(key, defaultValue string) string {
+ if value, ok := c.GetQuery(key); ok {
+ return value
+ }
+ return defaultValue
+}
+
+// GetQuery is like Query(), it returns the keyed url query value
+// if it exists `(value, true)` (even when the value is an empty string),
+// otherwise it returns `("", false)`.
+// It is shortcut for `c.Request.URL.Query().Get(key)`
+// GET /?name=Manu&lastname=
+// ("Manu", true) == c.GetQuery("name")
+// ("", false) == c.GetQuery("id")
+// ("", true) == c.GetQuery("lastname")
+func (c *Context) GetQuery(key string) (string, bool) {
+ if values, ok := c.GetQueryArray(key); ok {
+ return values[0], ok
+ }
+ return "", false
+}
+
+// QueryArray returns a slice of strings for a given query key.
+// The length of the slice depends on the number of params with the given key.
+func (c *Context) QueryArray(key string) []string {
+ values, _ := c.GetQueryArray(key)
+ return values
+}
+
+func (c *Context) initQueryCache() {
+ if c.queryCache == nil {
+ if c.Request != nil {
+ c.queryCache = c.Request.URL.Query()
+ } else {
+ c.queryCache = url.Values{}
+ }
+ }
+}
+
+// GetQueryArray returns a slice of strings for a given query key, plus
+// a boolean value whether at least one value exists for the given key.
+func (c *Context) GetQueryArray(key string) ([]string, bool) {
+ c.initQueryCache()
+ if values, ok := c.queryCache[key]; ok && len(values) > 0 {
+ return values, true
+ }
+ return []string{}, false
+}
+
+// QueryMap returns a map for a given query key.
+func (c *Context) QueryMap(key string) map[string]string {
+ dicts, _ := c.GetQueryMap(key)
+ return dicts
+}
+
+// GetQueryMap returns a map for a given query key, plus a boolean value
+// whether at least one value exists for the given key.
+func (c *Context) GetQueryMap(key string) (map[string]string, bool) {
+ c.initQueryCache()
+ return c.get(c.queryCache, key)
+}
+
+// PostForm returns the specified key from a POST urlencoded form or multipart form
+// when it exists, otherwise it returns an empty string `("")`.
+func (c *Context) PostForm(key string) string {
+ value, _ := c.GetPostForm(key)
+ return value
+}
+
+// DefaultPostForm returns the specified key from a POST urlencoded form or multipart form
+// when it exists, otherwise it returns the specified defaultValue string.
+// See: PostForm() and GetPostForm() for further information.
+func (c *Context) DefaultPostForm(key, defaultValue string) string {
+ if value, ok := c.GetPostForm(key); ok {
+ return value
+ }
+ return defaultValue
+}
+
+// GetPostForm is like PostForm(key). It returns the specified key from a POST urlencoded
+// form or multipart form when it exists `(value, true)` (even when the value is an empty string),
+// otherwise it returns ("", false).
+// For example, during a PATCH request to update the user's email:
+// email=mail@example.com --> ("mail@example.com", true) := GetPostForm("email") // set email to "mail@example.com"
+// email= --> ("", true) := GetPostForm("email") // set email to ""
+// --> ("", false) := GetPostForm("email") // do nothing with email
+func (c *Context) GetPostForm(key string) (string, bool) {
+ if values, ok := c.GetPostFormArray(key); ok {
+ return values[0], ok
+ }
+ return "", false
+}
+
+// PostFormArray returns a slice of strings for a given form key.
+// The length of the slice depends on the number of params with the given key.
+func (c *Context) PostFormArray(key string) []string {
+ values, _ := c.GetPostFormArray(key)
+ return values
+}
+
+func (c *Context) initFormCache() {
+ if c.formCache == nil {
+ c.formCache = make(url.Values)
+ req := c.Request
+ if err := req.ParseMultipartForm(c.engine.MaxMultipartMemory); err != nil {
+ if err != http.ErrNotMultipart {
+ debugPrint("error on parse multipart form array: %v", err)
+ }
+ }
+ c.formCache = req.PostForm
+ }
+}
+
+// GetPostFormArray returns a slice of strings for a given form key, plus
+// a boolean value whether at least one value exists for the given key.
+func (c *Context) GetPostFormArray(key string) ([]string, bool) {
+ c.initFormCache()
+ if values := c.formCache[key]; len(values) > 0 {
+ return values, true
+ }
+ return []string{}, false
+}
+
+// PostFormMap returns a map for a given form key.
+func (c *Context) PostFormMap(key string) map[string]string {
+ dicts, _ := c.GetPostFormMap(key)
+ return dicts
+}
+
+// GetPostFormMap returns a map for a given form key, plus a boolean value
+// whether at least one value exists for the given key.
+func (c *Context) GetPostFormMap(key string) (map[string]string, bool) {
+ c.initFormCache()
+ return c.get(c.formCache, key)
+}
+
+// get is an internal method and returns a map which satisfy conditions.
+func (c *Context) get(m map[string][]string, key string) (map[string]string, bool) {
+ dicts := make(map[string]string)
+ exist := false
+ for k, v := range m {
+ if i := strings.IndexByte(k, '['); i >= 1 && k[0:i] == key {
+ if j := strings.IndexByte(k[i+1:], ']'); j >= 1 {
+ exist = true
+ dicts[k[i+1:][:j]] = v[0]
+ }
+ }
+ }
+ return dicts, exist
+}
+
+// FormFile returns the first file for the provided form key.
+func (c *Context) FormFile(name string) (*multipart.FileHeader, error) {
+ if c.Request.MultipartForm == nil {
+ if err := c.Request.ParseMultipartForm(c.engine.MaxMultipartMemory); err != nil {
+ return nil, err
+ }
+ }
+ f, fh, err := c.Request.FormFile(name)
+ if err != nil {
+ return nil, err
+ }
+ f.Close()
+ return fh, err
+}
+
+// MultipartForm is the parsed multipart form, including file uploads.
+func (c *Context) MultipartForm() (*multipart.Form, error) {
+ err := c.Request.ParseMultipartForm(c.engine.MaxMultipartMemory)
+ return c.Request.MultipartForm, err
+}
+
+// SaveUploadedFile uploads the form file to specific dst.
+func (c *Context) SaveUploadedFile(file *multipart.FileHeader, dst string) error {
+ src, err := file.Open()
+ if err != nil {
+ return err
+ }
+ defer src.Close()
+
+ out, err := os.Create(dst)
+ if err != nil {
+ return err
+ }
+ defer out.Close()
+
+ _, err = io.Copy(out, src)
+ return err
+}
+
+// Bind checks the Content-Type to select a binding engine automatically,
+// Depending the "Content-Type" header different bindings are used:
+// "application/json" --> JSON binding
+// "application/xml" --> XML binding
+// otherwise --> returns an error.
+// It parses the request's body as JSON if Content-Type == "application/json" using JSON or XML as a JSON input.
+// It decodes the json payload into the struct specified as a pointer.
+// It writes a 400 error and sets Content-Type header "text/plain" in the response if input is not valid.
+func (c *Context) Bind(obj interface{}) error {
+ b := binding.Default(c.Request.Method, c.ContentType())
+ return c.MustBindWith(obj, b)
+}
+
+// BindJSON is a shortcut for c.MustBindWith(obj, binding.JSON).
+func (c *Context) BindJSON(obj interface{}) error {
+ return c.MustBindWith(obj, binding.JSON)
+}
+
+// BindXML is a shortcut for c.MustBindWith(obj, binding.BindXML).
+func (c *Context) BindXML(obj interface{}) error {
+ return c.MustBindWith(obj, binding.XML)
+}
+
+// BindQuery is a shortcut for c.MustBindWith(obj, binding.Query).
+func (c *Context) BindQuery(obj interface{}) error {
+ return c.MustBindWith(obj, binding.Query)
+}
+
+// BindYAML is a shortcut for c.MustBindWith(obj, binding.YAML).
+func (c *Context) BindYAML(obj interface{}) error {
+ return c.MustBindWith(obj, binding.YAML)
+}
+
+// BindHeader is a shortcut for c.MustBindWith(obj, binding.Header).
+func (c *Context) BindHeader(obj interface{}) error {
+ return c.MustBindWith(obj, binding.Header)
+}
+
+// BindUri binds the passed struct pointer using binding.Uri.
+// It will abort the request with HTTP 400 if any error occurs.
+func (c *Context) BindUri(obj interface{}) error {
+ if err := c.ShouldBindUri(obj); err != nil {
+ c.AbortWithError(http.StatusBadRequest, err).SetType(ErrorTypeBind) // nolint: errcheck
+ return err
+ }
+ return nil
+}
+
+// MustBindWith binds the passed struct pointer using the specified binding engine.
+// It will abort the request with HTTP 400 if any error occurs.
+// See the binding package.
+func (c *Context) MustBindWith(obj interface{}, b binding.Binding) error {
+ if err := c.ShouldBindWith(obj, b); err != nil {
+ c.AbortWithError(http.StatusBadRequest, err).SetType(ErrorTypeBind) // nolint: errcheck
+ return err
+ }
+ return nil
+}
+
+// ShouldBind checks the Content-Type to select a binding engine automatically,
+// Depending the "Content-Type" header different bindings are used:
+// "application/json" --> JSON binding
+// "application/xml" --> XML binding
+// otherwise --> returns an error
+// It parses the request's body as JSON if Content-Type == "application/json" using JSON or XML as a JSON input.
+// It decodes the json payload into the struct specified as a pointer.
+// Like c.Bind() but this method does not set the response status code to 400 and abort if the json is not valid.
+func (c *Context) ShouldBind(obj interface{}) error {
+ b := binding.Default(c.Request.Method, c.ContentType())
+ return c.ShouldBindWith(obj, b)
+}
+
+// ShouldBindJSON is a shortcut for c.ShouldBindWith(obj, binding.JSON).
+func (c *Context) ShouldBindJSON(obj interface{}) error {
+ return c.ShouldBindWith(obj, binding.JSON)
+}
+
+// ShouldBindXML is a shortcut for c.ShouldBindWith(obj, binding.XML).
+func (c *Context) ShouldBindXML(obj interface{}) error {
+ return c.ShouldBindWith(obj, binding.XML)
+}
+
+// ShouldBindQuery is a shortcut for c.ShouldBindWith(obj, binding.Query).
+func (c *Context) ShouldBindQuery(obj interface{}) error {
+ return c.ShouldBindWith(obj, binding.Query)
+}
+
+// ShouldBindYAML is a shortcut for c.ShouldBindWith(obj, binding.YAML).
+func (c *Context) ShouldBindYAML(obj interface{}) error {
+ return c.ShouldBindWith(obj, binding.YAML)
+}
+
+// ShouldBindHeader is a shortcut for c.ShouldBindWith(obj, binding.Header).
+func (c *Context) ShouldBindHeader(obj interface{}) error {
+ return c.ShouldBindWith(obj, binding.Header)
+}
+
+// ShouldBindUri binds the passed struct pointer using the specified binding engine.
+func (c *Context) ShouldBindUri(obj interface{}) error {
+ m := make(map[string][]string)
+ for _, v := range c.Params {
+ m[v.Key] = []string{v.Value}
+ }
+ return binding.Uri.BindUri(m, obj)
+}
+
+// ShouldBindWith binds the passed struct pointer using the specified binding engine.
+// See the binding package.
+func (c *Context) ShouldBindWith(obj interface{}, b binding.Binding) error {
+ return b.Bind(c.Request, obj)
+}
+
+// ShouldBindBodyWith is similar with ShouldBindWith, but it stores the request
+// body into the context, and reuse when it is called again.
+//
+// NOTE: This method reads the body before binding. So you should use
+// ShouldBindWith for better performance if you need to call only once.
+func (c *Context) ShouldBindBodyWith(obj interface{}, bb binding.BindingBody) (err error) {
+ var body []byte
+ if cb, ok := c.Get(BodyBytesKey); ok {
+ if cbb, ok := cb.([]byte); ok {
+ body = cbb
+ }
+ }
+ if body == nil {
+ body, err = ioutil.ReadAll(c.Request.Body)
+ if err != nil {
+ return err
+ }
+ c.Set(BodyBytesKey, body)
+ }
+ return bb.BindBody(body, obj)
+}
+
+// ClientIP implements a best effort algorithm to return the real client IP.
+// It called c.RemoteIP() under the hood, to check if the remote IP is a trusted proxy or not.
+// If it's it will then try to parse the headers defined in Engine.RemoteIPHeaders (defaulting to [X-Forwarded-For, X-Real-Ip]).
+// If the headers are nots syntactically valid OR the remote IP does not correspong to a trusted proxy,
+// the remote IP (coming form Request.RemoteAddr) is returned.
+func (c *Context) ClientIP() string {
+ // Check if we're running on a trusted platform
+ switch c.engine.TrustedPlatform {
+ case PlatformGoogleAppEngine:
+ if addr := c.requestHeader("X-Appengine-Remote-Addr"); addr != "" {
+ return addr
+ }
+ case PlatformCloudflare:
+ if addr := c.requestHeader("CF-Connecting-IP"); addr != "" {
+ return addr
+ }
+ }
+
+ // Legacy "AppEngine" flag
+ if c.engine.AppEngine {
+ log.Println(`The AppEngine flag is going to be deprecated. Please check issues #2723 and #2739 and use 'TrustedPlatform: gin.PlatformGoogleAppEngine' instead.`)
+ if addr := c.requestHeader("X-Appengine-Remote-Addr"); addr != "" {
+ return addr
+ }
+ }
+
+ remoteIP, trusted := c.RemoteIP()
+ if remoteIP == nil {
+ return ""
+ }
+
+ if trusted && c.engine.ForwardedByClientIP && c.engine.RemoteIPHeaders != nil {
+ for _, headerName := range c.engine.RemoteIPHeaders {
+ ip, valid := validateHeader(c.requestHeader(headerName))
+ if valid {
+ return ip
+ }
+ }
+ }
+ return remoteIP.String()
+}
+
+// RemoteIP parses the IP from Request.RemoteAddr, normalizes and returns the IP (without the port).
+// It also checks if the remoteIP is a trusted proxy or not.
+// In order to perform this validation, it will see if the IP is contained within at least one of the CIDR blocks
+// defined in Engine.TrustedProxies
+func (c *Context) RemoteIP() (net.IP, bool) {
+ ip, _, err := net.SplitHostPort(strings.TrimSpace(c.Request.RemoteAddr))
+ if err != nil {
+ return nil, false
+ }
+ remoteIP := net.ParseIP(ip)
+ if remoteIP == nil {
+ return nil, false
+ }
+
+ if c.engine.trustedCIDRs != nil {
+ for _, cidr := range c.engine.trustedCIDRs {
+ if cidr.Contains(remoteIP) {
+ return remoteIP, true
+ }
+ }
+ }
+
+ return remoteIP, false
+}
+
+func validateHeader(header string) (clientIP string, valid bool) {
+ if header == "" {
+ return "", false
+ }
+ items := strings.Split(header, ",")
+ for i, ipStr := range items {
+ ipStr = strings.TrimSpace(ipStr)
+ ip := net.ParseIP(ipStr)
+ if ip == nil {
+ return "", false
+ }
+
+ // We need to return the first IP in the list, but,
+ // we should not early return since we need to validate that
+ // the rest of the header is syntactically valid
+ if i == 0 {
+ clientIP = ipStr
+ valid = true
+ }
+ }
+ return
+}
+
+// ContentType returns the Content-Type header of the request.
+func (c *Context) ContentType() string {
+ return filterFlags(c.requestHeader("Content-Type"))
+}
+
+// IsWebsocket returns true if the request headers indicate that a websocket
+// handshake is being initiated by the client.
+func (c *Context) IsWebsocket() bool {
+ if strings.Contains(strings.ToLower(c.requestHeader("Connection")), "upgrade") &&
+ strings.EqualFold(c.requestHeader("Upgrade"), "websocket") {
+ return true
+ }
+ return false
+}
+
+func (c *Context) requestHeader(key string) string {
+ return c.Request.Header.Get(key)
+}
+
+/************************************/
+/******** RESPONSE RENDERING ********/
+/************************************/
+
+// bodyAllowedForStatus is a copy of http.bodyAllowedForStatus non-exported function.
+func bodyAllowedForStatus(status int) bool {
+ switch {
+ case status >= 100 && status <= 199:
+ return false
+ case status == http.StatusNoContent:
+ return false
+ case status == http.StatusNotModified:
+ return false
+ }
+ return true
+}
+
+// Status sets the HTTP response code.
+func (c *Context) Status(code int) {
+ c.Writer.WriteHeader(code)
+}
+
+// Header is a intelligent shortcut for c.Writer.Header().Set(key, value).
+// It writes a header in the response.
+// If value == "", this method removes the header `c.Writer.Header().Del(key)`
+func (c *Context) Header(key, value string) {
+ if value == "" {
+ c.Writer.Header().Del(key)
+ return
+ }
+ c.Writer.Header().Set(key, value)
+}
+
+// GetHeader returns value from request headers.
+func (c *Context) GetHeader(key string) string {
+ return c.requestHeader(key)
+}
+
+// GetRawData return stream data.
+func (c *Context) GetRawData() ([]byte, error) {
+ return ioutil.ReadAll(c.Request.Body)
+}
+
+// SetSameSite with cookie
+func (c *Context) SetSameSite(samesite http.SameSite) {
+ c.sameSite = samesite
+}
+
+// SetCookie adds a Set-Cookie header to the ResponseWriter's headers.
+// The provided cookie must have a valid Name. Invalid cookies may be
+// silently dropped.
+func (c *Context) SetCookie(name, value string, maxAge int, path, domain string, secure, httpOnly bool) {
+ if path == "" {
+ path = "/"
+ }
+ http.SetCookie(c.Writer, &http.Cookie{
+ Name: name,
+ Value: url.QueryEscape(value),
+ MaxAge: maxAge,
+ Path: path,
+ Domain: domain,
+ SameSite: c.sameSite,
+ Secure: secure,
+ HttpOnly: httpOnly,
+ })
+}
+
+// Cookie returns the named cookie provided in the request or
+// ErrNoCookie if not found. And return the named cookie is unescaped.
+// If multiple cookies match the given name, only one cookie will
+// be returned.
+func (c *Context) Cookie(name string) (string, error) {
+ cookie, err := c.Request.Cookie(name)
+ if err != nil {
+ return "", err
+ }
+ val, _ := url.QueryUnescape(cookie.Value)
+ return val, nil
+}
+
+// Render writes the response headers and calls render.Render to render data.
+func (c *Context) Render(code int, r render.Render) {
+ c.Status(code)
+
+ if !bodyAllowedForStatus(code) {
+ r.WriteContentType(c.Writer)
+ c.Writer.WriteHeaderNow()
+ return
+ }
+
+ if err := r.Render(c.Writer); err != nil {
+ panic(err)
+ }
+}
+
+// HTML renders the HTTP template specified by its file name.
+// It also updates the HTTP code and sets the Content-Type as "text/html".
+// See http://golang.org/doc/articles/wiki/
+func (c *Context) HTML(code int, name string, obj interface{}) {
+ instance := c.engine.HTMLRender.Instance(name, obj)
+ c.Render(code, instance)
+}
+
+// IndentedJSON serializes the given struct as pretty JSON (indented + endlines) into the response body.
+// It also sets the Content-Type as "application/json".
+// WARNING: we recommend to use this only for development purposes since printing pretty JSON is
+// more CPU and bandwidth consuming. Use Context.JSON() instead.
+func (c *Context) IndentedJSON(code int, obj interface{}) {
+ c.Render(code, render.IndentedJSON{Data: obj})
+}
+
+// SecureJSON serializes the given struct as Secure JSON into the response body.
+// Default prepends "while(1)," to response body if the given struct is array values.
+// It also sets the Content-Type as "application/json".
+func (c *Context) SecureJSON(code int, obj interface{}) {
+ c.Render(code, render.SecureJSON{Prefix: c.engine.secureJSONPrefix, Data: obj})
+}
+
+// JSONP serializes the given struct as JSON into the response body.
+// It adds padding to response body to request data from a server residing in a different domain than the client.
+// It also sets the Content-Type as "application/javascript".
+func (c *Context) JSONP(code int, obj interface{}) {
+ callback := c.DefaultQuery("callback", "")
+ if callback == "" {
+ c.Render(code, render.JSON{Data: obj})
+ return
+ }
+ c.Render(code, render.JsonpJSON{Callback: callback, Data: obj})
+}
+
+// JSON serializes the given struct as JSON into the response body.
+// It also sets the Content-Type as "application/json".
+func (c *Context) JSON(code int, obj interface{}) {
+ c.Render(code, render.JSON{Data: obj})
+}
+
+// AsciiJSON serializes the given struct as JSON into the response body with unicode to ASCII string.
+// It also sets the Content-Type as "application/json".
+func (c *Context) AsciiJSON(code int, obj interface{}) {
+ c.Render(code, render.AsciiJSON{Data: obj})
+}
+
+// PureJSON serializes the given struct as JSON into the response body.
+// PureJSON, unlike JSON, does not replace special html characters with their unicode entities.
+func (c *Context) PureJSON(code int, obj interface{}) {
+ c.Render(code, render.PureJSON{Data: obj})
+}
+
+// XML serializes the given struct as XML into the response body.
+// It also sets the Content-Type as "application/xml".
+func (c *Context) XML(code int, obj interface{}) {
+ c.Render(code, render.XML{Data: obj})
+}
+
+// YAML serializes the given struct as YAML into the response body.
+func (c *Context) YAML(code int, obj interface{}) {
+ c.Render(code, render.YAML{Data: obj})
+}
+
+// ProtoBuf serializes the given struct as ProtoBuf into the response body.
+func (c *Context) ProtoBuf(code int, obj interface{}) {
+ c.Render(code, render.ProtoBuf{Data: obj})
+}
+
+// String writes the given string into the response body.
+func (c *Context) String(code int, format string, values ...interface{}) {
+ c.Render(code, render.String{Format: format, Data: values})
+}
+
+// Redirect returns a HTTP redirect to the specific location.
+func (c *Context) Redirect(code int, location string) {
+ c.Render(-1, render.Redirect{
+ Code: code,
+ Location: location,
+ Request: c.Request,
+ })
+}
+
+// Data writes some data into the body stream and updates the HTTP code.
+func (c *Context) Data(code int, contentType string, data []byte) {
+ c.Render(code, render.Data{
+ ContentType: contentType,
+ Data: data,
+ })
+}
+
+// DataFromReader writes the specified reader into the body stream and updates the HTTP code.
+func (c *Context) DataFromReader(code int, contentLength int64, contentType string, reader io.Reader, extraHeaders map[string]string) {
+ c.Render(code, render.Reader{
+ Headers: extraHeaders,
+ ContentType: contentType,
+ ContentLength: contentLength,
+ Reader: reader,
+ })
+}
+
+// File writes the specified file into the body stream in an efficient way.
+func (c *Context) File(filepath string) {
+ http.ServeFile(c.Writer, c.Request, filepath)
+}
+
+// FileFromFS writes the specified file from http.FileSystem into the body stream in an efficient way.
+func (c *Context) FileFromFS(filepath string, fs http.FileSystem) {
+ defer func(old string) {
+ c.Request.URL.Path = old
+ }(c.Request.URL.Path)
+
+ c.Request.URL.Path = filepath
+
+ http.FileServer(fs).ServeHTTP(c.Writer, c.Request)
+}
+
+// FileAttachment writes the specified file into the body stream in an efficient way
+// On the client side, the file will typically be downloaded with the given filename
+func (c *Context) FileAttachment(filepath, filename string) {
+ c.Writer.Header().Set("Content-Disposition", fmt.Sprintf("attachment; filename=\"%s\"", filename))
+ http.ServeFile(c.Writer, c.Request, filepath)
+}
+
+// SSEvent writes a Server-Sent Event into the body stream.
+func (c *Context) SSEvent(name string, message interface{}) {
+ c.Render(-1, sse.Event{
+ Event: name,
+ Data: message,
+ })
+}
+
+// Stream sends a streaming response and returns a boolean
+// indicates "Is client disconnected in middle of stream"
+func (c *Context) Stream(step func(w io.Writer) bool) bool {
+ w := c.Writer
+ clientGone := w.CloseNotify()
+ for {
+ select {
+ case <-clientGone:
+ return true
+ default:
+ keepOpen := step(w)
+ w.Flush()
+ if !keepOpen {
+ return false
+ }
+ }
+ }
+}
+
+/************************************/
+/******** CONTENT NEGOTIATION *******/
+/************************************/
+
+// Negotiate contains all negotiations data.
+type Negotiate struct {
+ Offered []string
+ HTMLName string
+ HTMLData interface{}
+ JSONData interface{}
+ XMLData interface{}
+ YAMLData interface{}
+ Data interface{}
+}
+
+// Negotiate calls different Render according acceptable Accept format.
+func (c *Context) Negotiate(code int, config Negotiate) {
+ switch c.NegotiateFormat(config.Offered...) {
+ case binding.MIMEJSON:
+ data := chooseData(config.JSONData, config.Data)
+ c.JSON(code, data)
+
+ case binding.MIMEHTML:
+ data := chooseData(config.HTMLData, config.Data)
+ c.HTML(code, config.HTMLName, data)
+
+ case binding.MIMEXML:
+ data := chooseData(config.XMLData, config.Data)
+ c.XML(code, data)
+
+ case binding.MIMEYAML:
+ data := chooseData(config.YAMLData, config.Data)
+ c.YAML(code, data)
+
+ default:
+ c.AbortWithError(http.StatusNotAcceptable, errors.New("the accepted formats are not offered by the server")) // nolint: errcheck
+ }
+}
+
+// NegotiateFormat returns an acceptable Accept format.
+func (c *Context) NegotiateFormat(offered ...string) string {
+ assert1(len(offered) > 0, "you must provide at least one offer")
+
+ if c.Accepted == nil {
+ c.Accepted = parseAccept(c.requestHeader("Accept"))
+ }
+ if len(c.Accepted) == 0 {
+ return offered[0]
+ }
+ for _, accepted := range c.Accepted {
+ for _, offer := range offered {
+ // According to RFC 2616 and RFC 2396, non-ASCII characters are not allowed in headers,
+ // therefore we can just iterate over the string without casting it into []rune
+ i := 0
+ for ; i < len(accepted); i++ {
+ if accepted[i] == '*' || offer[i] == '*' {
+ return offer
+ }
+ if accepted[i] != offer[i] {
+ break
+ }
+ }
+ if i == len(accepted) {
+ return offer
+ }
+ }
+ }
+ return ""
+}
+
+// SetAccepted sets Accept header data.
+func (c *Context) SetAccepted(formats ...string) {
+ c.Accepted = formats
+}
+
+/************************************/
+/***** GOLANG.ORG/X/NET/CONTEXT *****/
+/************************************/
+
+// Deadline always returns that there is no deadline (ok==false),
+// maybe you want to use Request.Context().Deadline() instead.
+func (c *Context) Deadline() (deadline time.Time, ok bool) {
+ return
+}
+
+// Done always returns nil (chan which will wait forever),
+// if you want to abort your work when the connection was closed
+// you should use Request.Context().Done() instead.
+func (c *Context) Done() <-chan struct{} {
+ return nil
+}
+
+// Err always returns nil, maybe you want to use Request.Context().Err() instead.
+func (c *Context) Err() error {
+ return nil
+}
+
+// Value returns the value associated with this context for key, or nil
+// if no value is associated with key. Successive calls to Value with
+// the same key returns the same result.
+func (c *Context) Value(key interface{}) interface{} {
+ if key == 0 {
+ return c.Request
+ }
+ if keyAsString, ok := key.(string); ok {
+ if val, exists := c.Get(keyAsString); exists {
+ return val
+ }
+ }
+ if c.Request == nil || c.Request.Context() == nil {
+ return nil
+ }
+ return c.Request.Context().Value(key)
+}
diff --git a/vendor/github.com/gin-gonic/gin/context_appengine.go b/vendor/github.com/gin-gonic/gin/context_appengine.go
new file mode 100644
index 000000000..8bf938961
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/context_appengine.go
@@ -0,0 +1,12 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build appengine
+// +build appengine
+
+package gin
+
+func init() {
+ defaultPlatform = PlatformGoogleAppEngine
+}
diff --git a/vendor/github.com/gin-gonic/gin/debug.go b/vendor/github.com/gin-gonic/gin/debug.go
new file mode 100644
index 000000000..ed313868e
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/debug.go
@@ -0,0 +1,101 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "fmt"
+ "html/template"
+ "runtime"
+ "strconv"
+ "strings"
+)
+
+const ginSupportMinGoVer = 13
+
+// IsDebugging returns true if the framework is running in debug mode.
+// Use SetMode(gin.ReleaseMode) to disable debug mode.
+func IsDebugging() bool {
+ return ginMode == debugCode
+}
+
+// DebugPrintRouteFunc indicates debug log output format.
+var DebugPrintRouteFunc func(httpMethod, absolutePath, handlerName string, nuHandlers int)
+
+func debugPrintRoute(httpMethod, absolutePath string, handlers HandlersChain) {
+ if IsDebugging() {
+ nuHandlers := len(handlers)
+ handlerName := nameOfFunction(handlers.Last())
+ if DebugPrintRouteFunc == nil {
+ debugPrint("%-6s %-25s --> %s (%d handlers)\n", httpMethod, absolutePath, handlerName, nuHandlers)
+ } else {
+ DebugPrintRouteFunc(httpMethod, absolutePath, handlerName, nuHandlers)
+ }
+ }
+}
+
+func debugPrintLoadTemplate(tmpl *template.Template) {
+ if IsDebugging() {
+ var buf strings.Builder
+ for _, tmpl := range tmpl.Templates() {
+ buf.WriteString("\t- ")
+ buf.WriteString(tmpl.Name())
+ buf.WriteString("\n")
+ }
+ debugPrint("Loaded HTML Templates (%d): \n%s\n", len(tmpl.Templates()), buf.String())
+ }
+}
+
+func debugPrint(format string, values ...interface{}) {
+ if IsDebugging() {
+ if !strings.HasSuffix(format, "\n") {
+ format += "\n"
+ }
+ fmt.Fprintf(DefaultWriter, "[GIN-debug] "+format, values...)
+ }
+}
+
+func getMinVer(v string) (uint64, error) {
+ first := strings.IndexByte(v, '.')
+ last := strings.LastIndexByte(v, '.')
+ if first == last {
+ return strconv.ParseUint(v[first+1:], 10, 64)
+ }
+ return strconv.ParseUint(v[first+1:last], 10, 64)
+}
+
+func debugPrintWARNINGDefault() {
+ if v, e := getMinVer(runtime.Version()); e == nil && v <= ginSupportMinGoVer {
+ debugPrint(`[WARNING] Now Gin requires Go 1.13+.
+
+`)
+ }
+ debugPrint(`[WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
+
+`)
+}
+
+func debugPrintWARNINGNew() {
+ debugPrint(`[WARNING] Running in "debug" mode. Switch to "release" mode in production.
+ - using env: export GIN_MODE=release
+ - using code: gin.SetMode(gin.ReleaseMode)
+
+`)
+}
+
+func debugPrintWARNINGSetHTMLTemplate() {
+ debugPrint(`[WARNING] Since SetHTMLTemplate() is NOT thread-safe. It should only be called
+at initialization. ie. before any route is registered or the router is listening in a socket:
+
+ router := gin.Default()
+ router.SetHTMLTemplate(template) // << good place
+
+`)
+}
+
+func debugPrintError(err error) {
+ if err != nil && IsDebugging() {
+ fmt.Fprintf(DefaultErrorWriter, "[GIN-debug] [ERROR] %v\n", err)
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/deprecated.go b/vendor/github.com/gin-gonic/gin/deprecated.go
new file mode 100644
index 000000000..ab4474296
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/deprecated.go
@@ -0,0 +1,21 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "log"
+
+ "github.com/gin-gonic/gin/binding"
+)
+
+// BindWith binds the passed struct pointer using the specified binding engine.
+// See the binding package.
+func (c *Context) BindWith(obj interface{}, b binding.Binding) error {
+ log.Println(`BindWith(\"interface{}, binding.Binding\") error is going to
+ be deprecated, please check issue #662 and either use MustBindWith() if you
+ want HTTP 400 to be automatically returned if any error occur, or use
+ ShouldBindWith() if you need to manage the error.`)
+ return c.MustBindWith(obj, b)
+}
diff --git a/vendor/github.com/gin-gonic/gin/doc.go b/vendor/github.com/gin-gonic/gin/doc.go
new file mode 100644
index 000000000..1bd03864f
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/doc.go
@@ -0,0 +1,6 @@
+/*
+Package gin implements a HTTP web framework called gin.
+
+See https://gin-gonic.com/ for more information about gin.
+*/
+package gin // import "github.com/gin-gonic/gin"
diff --git a/vendor/github.com/gin-gonic/gin/errors.go b/vendor/github.com/gin-gonic/gin/errors.go
new file mode 100644
index 000000000..0f276c13d
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/errors.go
@@ -0,0 +1,174 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "fmt"
+ "reflect"
+ "strings"
+
+ "github.com/gin-gonic/gin/internal/json"
+)
+
+// ErrorType is an unsigned 64-bit error code as defined in the gin spec.
+type ErrorType uint64
+
+const (
+ // ErrorTypeBind is used when Context.Bind() fails.
+ ErrorTypeBind ErrorType = 1 << 63
+ // ErrorTypeRender is used when Context.Render() fails.
+ ErrorTypeRender ErrorType = 1 << 62
+ // ErrorTypePrivate indicates a private error.
+ ErrorTypePrivate ErrorType = 1 << 0
+ // ErrorTypePublic indicates a public error.
+ ErrorTypePublic ErrorType = 1 << 1
+ // ErrorTypeAny indicates any other error.
+ ErrorTypeAny ErrorType = 1<<64 - 1
+ // ErrorTypeNu indicates any other error.
+ ErrorTypeNu = 2
+)
+
+// Error represents a error's specification.
+type Error struct {
+ Err error
+ Type ErrorType
+ Meta interface{}
+}
+
+type errorMsgs []*Error
+
+var _ error = &Error{}
+
+// SetType sets the error's type.
+func (msg *Error) SetType(flags ErrorType) *Error {
+ msg.Type = flags
+ return msg
+}
+
+// SetMeta sets the error's meta data.
+func (msg *Error) SetMeta(data interface{}) *Error {
+ msg.Meta = data
+ return msg
+}
+
+// JSON creates a properly formatted JSON
+func (msg *Error) JSON() interface{} {
+ jsonData := H{}
+ if msg.Meta != nil {
+ value := reflect.ValueOf(msg.Meta)
+ switch value.Kind() {
+ case reflect.Struct:
+ return msg.Meta
+ case reflect.Map:
+ for _, key := range value.MapKeys() {
+ jsonData[key.String()] = value.MapIndex(key).Interface()
+ }
+ default:
+ jsonData["meta"] = msg.Meta
+ }
+ }
+ if _, ok := jsonData["error"]; !ok {
+ jsonData["error"] = msg.Error()
+ }
+ return jsonData
+}
+
+// MarshalJSON implements the json.Marshaller interface.
+func (msg *Error) MarshalJSON() ([]byte, error) {
+ return json.Marshal(msg.JSON())
+}
+
+// Error implements the error interface.
+func (msg Error) Error() string {
+ return msg.Err.Error()
+}
+
+// IsType judges one error.
+func (msg *Error) IsType(flags ErrorType) bool {
+ return (msg.Type & flags) > 0
+}
+
+// Unwrap returns the wrapped error, to allow interoperability with errors.Is(), errors.As() and errors.Unwrap()
+func (msg *Error) Unwrap() error {
+ return msg.Err
+}
+
+// ByType returns a readonly copy filtered the byte.
+// ie ByType(gin.ErrorTypePublic) returns a slice of errors with type=ErrorTypePublic.
+func (a errorMsgs) ByType(typ ErrorType) errorMsgs {
+ if len(a) == 0 {
+ return nil
+ }
+ if typ == ErrorTypeAny {
+ return a
+ }
+ var result errorMsgs
+ for _, msg := range a {
+ if msg.IsType(typ) {
+ result = append(result, msg)
+ }
+ }
+ return result
+}
+
+// Last returns the last error in the slice. It returns nil if the array is empty.
+// Shortcut for errors[len(errors)-1].
+func (a errorMsgs) Last() *Error {
+ if length := len(a); length > 0 {
+ return a[length-1]
+ }
+ return nil
+}
+
+// Errors returns an array will all the error messages.
+// Example:
+// c.Error(errors.New("first"))
+// c.Error(errors.New("second"))
+// c.Error(errors.New("third"))
+// c.Errors.Errors() // == []string{"first", "second", "third"}
+func (a errorMsgs) Errors() []string {
+ if len(a) == 0 {
+ return nil
+ }
+ errorStrings := make([]string, len(a))
+ for i, err := range a {
+ errorStrings[i] = err.Error()
+ }
+ return errorStrings
+}
+
+func (a errorMsgs) JSON() interface{} {
+ switch length := len(a); length {
+ case 0:
+ return nil
+ case 1:
+ return a.Last().JSON()
+ default:
+ jsonData := make([]interface{}, length)
+ for i, err := range a {
+ jsonData[i] = err.JSON()
+ }
+ return jsonData
+ }
+}
+
+// MarshalJSON implements the json.Marshaller interface.
+func (a errorMsgs) MarshalJSON() ([]byte, error) {
+ return json.Marshal(a.JSON())
+}
+
+func (a errorMsgs) String() string {
+ if len(a) == 0 {
+ return ""
+ }
+ var buffer strings.Builder
+ for i, msg := range a {
+ fmt.Fprintf(&buffer, "Error #%02d: %s\n", i+1, msg.Err)
+ if msg.Meta != nil {
+ fmt.Fprintf(&buffer, " Meta: %v\n", msg.Meta)
+ }
+ }
+ return buffer.String()
+}
diff --git a/vendor/github.com/gin-gonic/gin/fs.go b/vendor/github.com/gin-gonic/gin/fs.go
new file mode 100644
index 000000000..e5f3d602a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/fs.go
@@ -0,0 +1,45 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "net/http"
+ "os"
+)
+
+type onlyFilesFS struct {
+ fs http.FileSystem
+}
+
+type neuteredReaddirFile struct {
+ http.File
+}
+
+// Dir returns a http.FileSystem that can be used by http.FileServer(). It is used internally
+// in router.Static().
+// if listDirectory == true, then it works the same as http.Dir() otherwise it returns
+// a filesystem that prevents http.FileServer() to list the directory files.
+func Dir(root string, listDirectory bool) http.FileSystem {
+ fs := http.Dir(root)
+ if listDirectory {
+ return fs
+ }
+ return &onlyFilesFS{fs}
+}
+
+// Open conforms to http.Filesystem.
+func (fs onlyFilesFS) Open(name string) (http.File, error) {
+ f, err := fs.fs.Open(name)
+ if err != nil {
+ return nil, err
+ }
+ return neuteredReaddirFile{f}, nil
+}
+
+// Readdir overrides the http.File default implementation.
+func (f neuteredReaddirFile) Readdir(count int) ([]os.FileInfo, error) {
+ // this disables directory listing
+ return nil, nil
+}
diff --git a/vendor/github.com/gin-gonic/gin/gin.go b/vendor/github.com/gin-gonic/gin/gin.go
new file mode 100644
index 000000000..6ab2be66d
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/gin.go
@@ -0,0 +1,626 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "fmt"
+ "html/template"
+ "net"
+ "net/http"
+ "os"
+ "path"
+ "strings"
+ "sync"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+ "github.com/gin-gonic/gin/render"
+)
+
+const defaultMultipartMemory = 32 << 20 // 32 MB
+
+var (
+ default404Body = []byte("404 page not found")
+ default405Body = []byte("405 method not allowed")
+)
+
+var defaultPlatform string
+
+// HandlerFunc defines the handler used by gin middleware as return value.
+type HandlerFunc func(*Context)
+
+// HandlersChain defines a HandlerFunc array.
+type HandlersChain []HandlerFunc
+
+// Last returns the last handler in the chain. ie. the last handler is the main one.
+func (c HandlersChain) Last() HandlerFunc {
+ if length := len(c); length > 0 {
+ return c[length-1]
+ }
+ return nil
+}
+
+// RouteInfo represents a request route's specification which contains method and path and its handler.
+type RouteInfo struct {
+ Method string
+ Path string
+ Handler string
+ HandlerFunc HandlerFunc
+}
+
+// RoutesInfo defines a RouteInfo array.
+type RoutesInfo []RouteInfo
+
+// Trusted platforms
+const (
+ // When running on Google App Engine. Trust X-Appengine-Remote-Addr
+ // for determining the client's IP
+ PlatformGoogleAppEngine = "google-app-engine"
+ // When using Cloudflare's CDN. Trust CF-Connecting-IP for determining
+ // the client's IP
+ PlatformCloudflare = "cloudflare"
+)
+
+// Engine is the framework's instance, it contains the muxer, middleware and configuration settings.
+// Create an instance of Engine, by using New() or Default()
+type Engine struct {
+ RouterGroup
+
+ // Enables automatic redirection if the current route can't be matched but a
+ // handler for the path with (without) the trailing slash exists.
+ // For example if /foo/ is requested but a route only exists for /foo, the
+ // client is redirected to /foo with http status code 301 for GET requests
+ // and 307 for all other request methods.
+ RedirectTrailingSlash bool
+
+ // If enabled, the router tries to fix the current request path, if no
+ // handle is registered for it.
+ // First superfluous path elements like ../ or // are removed.
+ // Afterwards the router does a case-insensitive lookup of the cleaned path.
+ // If a handle can be found for this route, the router makes a redirection
+ // to the corrected path with status code 301 for GET requests and 307 for
+ // all other request methods.
+ // For example /FOO and /..//Foo could be redirected to /foo.
+ // RedirectTrailingSlash is independent of this option.
+ RedirectFixedPath bool
+
+ // If enabled, the router checks if another method is allowed for the
+ // current route, if the current request can not be routed.
+ // If this is the case, the request is answered with 'Method Not Allowed'
+ // and HTTP status code 405.
+ // If no other Method is allowed, the request is delegated to the NotFound
+ // handler.
+ HandleMethodNotAllowed bool
+
+ // If enabled, client IP will be parsed from the request's headers that
+ // match those stored at `(*gin.Engine).RemoteIPHeaders`. If no IP was
+ // fetched, it falls back to the IP obtained from
+ // `(*gin.Context).Request.RemoteAddr`.
+ ForwardedByClientIP bool
+
+ // DEPRECATED: USE `TrustedPlatform` WITH VALUE `gin.GoogleAppEngine` INSTEAD
+ // #726 #755 If enabled, it will trust some headers starting with
+ // 'X-AppEngine...' for better integration with that PaaS.
+ AppEngine bool
+
+ // If enabled, the url.RawPath will be used to find parameters.
+ UseRawPath bool
+
+ // If true, the path value will be unescaped.
+ // If UseRawPath is false (by default), the UnescapePathValues effectively is true,
+ // as url.Path gonna be used, which is already unescaped.
+ UnescapePathValues bool
+
+ // RemoveExtraSlash a parameter can be parsed from the URL even with extra slashes.
+ // See the PR #1817 and issue #1644
+ RemoveExtraSlash bool
+
+ // List of headers used to obtain the client IP when
+ // `(*gin.Engine).ForwardedByClientIP` is `true` and
+ // `(*gin.Context).Request.RemoteAddr` is matched by at least one of the
+ // network origins of `(*gin.Engine).TrustedProxies`.
+ RemoteIPHeaders []string
+
+ // List of network origins (IPv4 addresses, IPv4 CIDRs, IPv6 addresses or
+ // IPv6 CIDRs) from which to trust request's headers that contain
+ // alternative client IP when `(*gin.Engine).ForwardedByClientIP` is
+ // `true`.
+ TrustedProxies []string
+
+ // If set to a constant of value gin.Platform*, trusts the headers set by
+ // that platform, for example to determine the client IP
+ TrustedPlatform string
+
+ // Value of 'maxMemory' param that is given to http.Request's ParseMultipartForm
+ // method call.
+ MaxMultipartMemory int64
+
+ delims render.Delims
+ secureJSONPrefix string
+ HTMLRender render.HTMLRender
+ FuncMap template.FuncMap
+ allNoRoute HandlersChain
+ allNoMethod HandlersChain
+ noRoute HandlersChain
+ noMethod HandlersChain
+ pool sync.Pool
+ trees methodTrees
+ maxParams uint16
+ trustedCIDRs []*net.IPNet
+}
+
+var _ IRouter = &Engine{}
+
+// New returns a new blank Engine instance without any middleware attached.
+// By default the configuration is:
+// - RedirectTrailingSlash: true
+// - RedirectFixedPath: false
+// - HandleMethodNotAllowed: false
+// - ForwardedByClientIP: true
+// - UseRawPath: false
+// - UnescapePathValues: true
+func New() *Engine {
+ debugPrintWARNINGNew()
+ engine := &Engine{
+ RouterGroup: RouterGroup{
+ Handlers: nil,
+ basePath: "/",
+ root: true,
+ },
+ FuncMap: template.FuncMap{},
+ RedirectTrailingSlash: true,
+ RedirectFixedPath: false,
+ HandleMethodNotAllowed: false,
+ ForwardedByClientIP: true,
+ RemoteIPHeaders: []string{"X-Forwarded-For", "X-Real-IP"},
+ TrustedProxies: []string{"0.0.0.0/0"},
+ TrustedPlatform: defaultPlatform,
+ UseRawPath: false,
+ RemoveExtraSlash: false,
+ UnescapePathValues: true,
+ MaxMultipartMemory: defaultMultipartMemory,
+ trees: make(methodTrees, 0, 9),
+ delims: render.Delims{Left: "{{", Right: "}}"},
+ secureJSONPrefix: "while(1);",
+ }
+ engine.RouterGroup.engine = engine
+ engine.pool.New = func() interface{} {
+ return engine.allocateContext()
+ }
+ return engine
+}
+
+// Default returns an Engine instance with the Logger and Recovery middleware already attached.
+func Default() *Engine {
+ debugPrintWARNINGDefault()
+ engine := New()
+ engine.Use(Logger(), Recovery())
+ return engine
+}
+
+func (engine *Engine) allocateContext() *Context {
+ v := make(Params, 0, engine.maxParams)
+ return &Context{engine: engine, params: &v}
+}
+
+// Delims sets template left and right delims and returns a Engine instance.
+func (engine *Engine) Delims(left, right string) *Engine {
+ engine.delims = render.Delims{Left: left, Right: right}
+ return engine
+}
+
+// SecureJsonPrefix sets the secureJSONPrefix used in Context.SecureJSON.
+func (engine *Engine) SecureJsonPrefix(prefix string) *Engine {
+ engine.secureJSONPrefix = prefix
+ return engine
+}
+
+// LoadHTMLGlob loads HTML files identified by glob pattern
+// and associates the result with HTML renderer.
+func (engine *Engine) LoadHTMLGlob(pattern string) {
+ left := engine.delims.Left
+ right := engine.delims.Right
+ templ := template.Must(template.New("").Delims(left, right).Funcs(engine.FuncMap).ParseGlob(pattern))
+
+ if IsDebugging() {
+ debugPrintLoadTemplate(templ)
+ engine.HTMLRender = render.HTMLDebug{Glob: pattern, FuncMap: engine.FuncMap, Delims: engine.delims}
+ return
+ }
+
+ engine.SetHTMLTemplate(templ)
+}
+
+// LoadHTMLFiles loads a slice of HTML files
+// and associates the result with HTML renderer.
+func (engine *Engine) LoadHTMLFiles(files ...string) {
+ if IsDebugging() {
+ engine.HTMLRender = render.HTMLDebug{Files: files, FuncMap: engine.FuncMap, Delims: engine.delims}
+ return
+ }
+
+ templ := template.Must(template.New("").Delims(engine.delims.Left, engine.delims.Right).Funcs(engine.FuncMap).ParseFiles(files...))
+ engine.SetHTMLTemplate(templ)
+}
+
+// SetHTMLTemplate associate a template with HTML renderer.
+func (engine *Engine) SetHTMLTemplate(templ *template.Template) {
+ if len(engine.trees) > 0 {
+ debugPrintWARNINGSetHTMLTemplate()
+ }
+
+ engine.HTMLRender = render.HTMLProduction{Template: templ.Funcs(engine.FuncMap)}
+}
+
+// SetFuncMap sets the FuncMap used for template.FuncMap.
+func (engine *Engine) SetFuncMap(funcMap template.FuncMap) {
+ engine.FuncMap = funcMap
+}
+
+// NoRoute adds handlers for NoRoute. It return a 404 code by default.
+func (engine *Engine) NoRoute(handlers ...HandlerFunc) {
+ engine.noRoute = handlers
+ engine.rebuild404Handlers()
+}
+
+// NoMethod sets the handlers called when... TODO.
+func (engine *Engine) NoMethod(handlers ...HandlerFunc) {
+ engine.noMethod = handlers
+ engine.rebuild405Handlers()
+}
+
+// Use attaches a global middleware to the router. ie. the middleware attached though Use() will be
+// included in the handlers chain for every single request. Even 404, 405, static files...
+// For example, this is the right place for a logger or error management middleware.
+func (engine *Engine) Use(middleware ...HandlerFunc) IRoutes {
+ engine.RouterGroup.Use(middleware...)
+ engine.rebuild404Handlers()
+ engine.rebuild405Handlers()
+ return engine
+}
+
+func (engine *Engine) rebuild404Handlers() {
+ engine.allNoRoute = engine.combineHandlers(engine.noRoute)
+}
+
+func (engine *Engine) rebuild405Handlers() {
+ engine.allNoMethod = engine.combineHandlers(engine.noMethod)
+}
+
+func (engine *Engine) addRoute(method, path string, handlers HandlersChain) {
+ assert1(path[0] == '/', "path must begin with '/'")
+ assert1(method != "", "HTTP method can not be empty")
+ assert1(len(handlers) > 0, "there must be at least one handler")
+
+ debugPrintRoute(method, path, handlers)
+
+ root := engine.trees.get(method)
+ if root == nil {
+ root = new(node)
+ root.fullPath = "/"
+ engine.trees = append(engine.trees, methodTree{method: method, root: root})
+ }
+ root.addRoute(path, handlers)
+
+ // Update maxParams
+ if paramsCount := countParams(path); paramsCount > engine.maxParams {
+ engine.maxParams = paramsCount
+ }
+}
+
+// Routes returns a slice of registered routes, including some useful information, such as:
+// the http method, path and the handler name.
+func (engine *Engine) Routes() (routes RoutesInfo) {
+ for _, tree := range engine.trees {
+ routes = iterate("", tree.method, routes, tree.root)
+ }
+ return routes
+}
+
+func iterate(path, method string, routes RoutesInfo, root *node) RoutesInfo {
+ path += root.path
+ if len(root.handlers) > 0 {
+ handlerFunc := root.handlers.Last()
+ routes = append(routes, RouteInfo{
+ Method: method,
+ Path: path,
+ Handler: nameOfFunction(handlerFunc),
+ HandlerFunc: handlerFunc,
+ })
+ }
+ for _, child := range root.children {
+ routes = iterate(path, method, routes, child)
+ }
+ return routes
+}
+
+// Run attaches the router to a http.Server and starts listening and serving HTTP requests.
+// It is a shortcut for http.ListenAndServe(addr, router)
+// Note: this method will block the calling goroutine indefinitely unless an error happens.
+func (engine *Engine) Run(addr ...string) (err error) {
+ defer func() { debugPrintError(err) }()
+
+ err = engine.parseTrustedProxies()
+ if err != nil {
+ return err
+ }
+
+ address := resolveAddress(addr)
+ debugPrint("Listening and serving HTTP on %s\n", address)
+ err = http.ListenAndServe(address, engine)
+ return
+}
+
+func (engine *Engine) prepareTrustedCIDRs() ([]*net.IPNet, error) {
+ if engine.TrustedProxies == nil {
+ return nil, nil
+ }
+
+ cidr := make([]*net.IPNet, 0, len(engine.TrustedProxies))
+ for _, trustedProxy := range engine.TrustedProxies {
+ if !strings.Contains(trustedProxy, "/") {
+ ip := parseIP(trustedProxy)
+ if ip == nil {
+ return cidr, &net.ParseError{Type: "IP address", Text: trustedProxy}
+ }
+
+ switch len(ip) {
+ case net.IPv4len:
+ trustedProxy += "/32"
+ case net.IPv6len:
+ trustedProxy += "/128"
+ }
+ }
+ _, cidrNet, err := net.ParseCIDR(trustedProxy)
+ if err != nil {
+ return cidr, err
+ }
+ cidr = append(cidr, cidrNet)
+ }
+ return cidr, nil
+}
+
+// SetTrustedProxies set Engine.TrustedProxies
+func (engine *Engine) SetTrustedProxies(trustedProxies []string) error {
+ engine.TrustedProxies = trustedProxies
+ return engine.parseTrustedProxies()
+}
+
+// parseTrustedProxies parse Engine.TrustedProxies to Engine.trustedCIDRs
+func (engine *Engine) parseTrustedProxies() error {
+ trustedCIDRs, err := engine.prepareTrustedCIDRs()
+ engine.trustedCIDRs = trustedCIDRs
+ return err
+}
+
+// parseIP parse a string representation of an IP and returns a net.IP with the
+// minimum byte representation or nil if input is invalid.
+func parseIP(ip string) net.IP {
+ parsedIP := net.ParseIP(ip)
+
+ if ipv4 := parsedIP.To4(); ipv4 != nil {
+ // return ip in a 4-byte representation
+ return ipv4
+ }
+
+ // return ip in a 16-byte representation or nil
+ return parsedIP
+}
+
+// RunTLS attaches the router to a http.Server and starts listening and serving HTTPS (secure) requests.
+// It is a shortcut for http.ListenAndServeTLS(addr, certFile, keyFile, router)
+// Note: this method will block the calling goroutine indefinitely unless an error happens.
+func (engine *Engine) RunTLS(addr, certFile, keyFile string) (err error) {
+ debugPrint("Listening and serving HTTPS on %s\n", addr)
+ defer func() { debugPrintError(err) }()
+
+ err = engine.parseTrustedProxies()
+ if err != nil {
+ return err
+ }
+
+ err = http.ListenAndServeTLS(addr, certFile, keyFile, engine)
+ return
+}
+
+// RunUnix attaches the router to a http.Server and starts listening and serving HTTP requests
+// through the specified unix socket (ie. a file).
+// Note: this method will block the calling goroutine indefinitely unless an error happens.
+func (engine *Engine) RunUnix(file string) (err error) {
+ debugPrint("Listening and serving HTTP on unix:/%s", file)
+ defer func() { debugPrintError(err) }()
+
+ err = engine.parseTrustedProxies()
+ if err != nil {
+ return err
+ }
+
+ listener, err := net.Listen("unix", file)
+ if err != nil {
+ return
+ }
+ defer listener.Close()
+ defer os.Remove(file)
+
+ err = http.Serve(listener, engine)
+ return
+}
+
+// RunFd attaches the router to a http.Server and starts listening and serving HTTP requests
+// through the specified file descriptor.
+// Note: this method will block the calling goroutine indefinitely unless an error happens.
+func (engine *Engine) RunFd(fd int) (err error) {
+ debugPrint("Listening and serving HTTP on fd@%d", fd)
+ defer func() { debugPrintError(err) }()
+
+ err = engine.parseTrustedProxies()
+ if err != nil {
+ return err
+ }
+
+ f := os.NewFile(uintptr(fd), fmt.Sprintf("fd@%d", fd))
+ listener, err := net.FileListener(f)
+ if err != nil {
+ return
+ }
+ defer listener.Close()
+ err = engine.RunListener(listener)
+ return
+}
+
+// RunListener attaches the router to a http.Server and starts listening and serving HTTP requests
+// through the specified net.Listener
+func (engine *Engine) RunListener(listener net.Listener) (err error) {
+ debugPrint("Listening and serving HTTP on listener what's bind with address@%s", listener.Addr())
+ defer func() { debugPrintError(err) }()
+
+ err = engine.parseTrustedProxies()
+ if err != nil {
+ return err
+ }
+
+ err = http.Serve(listener, engine)
+ return
+}
+
+// ServeHTTP conforms to the http.Handler interface.
+func (engine *Engine) ServeHTTP(w http.ResponseWriter, req *http.Request) {
+ c := engine.pool.Get().(*Context)
+ c.writermem.reset(w)
+ c.Request = req
+ c.reset()
+
+ engine.handleHTTPRequest(c)
+
+ engine.pool.Put(c)
+}
+
+// HandleContext re-enter a context that has been rewritten.
+// This can be done by setting c.Request.URL.Path to your new target.
+// Disclaimer: You can loop yourself to death with this, use wisely.
+func (engine *Engine) HandleContext(c *Context) {
+ oldIndexValue := c.index
+ c.reset()
+ engine.handleHTTPRequest(c)
+
+ c.index = oldIndexValue
+}
+
+func (engine *Engine) handleHTTPRequest(c *Context) {
+ httpMethod := c.Request.Method
+ rPath := c.Request.URL.Path
+ unescape := false
+ if engine.UseRawPath && len(c.Request.URL.RawPath) > 0 {
+ rPath = c.Request.URL.RawPath
+ unescape = engine.UnescapePathValues
+ }
+
+ if engine.RemoveExtraSlash {
+ rPath = cleanPath(rPath)
+ }
+
+ // Find root of the tree for the given HTTP method
+ t := engine.trees
+ for i, tl := 0, len(t); i < tl; i++ {
+ if t[i].method != httpMethod {
+ continue
+ }
+ root := t[i].root
+ // Find route in tree
+ value := root.getValue(rPath, c.params, unescape)
+ if value.params != nil {
+ c.Params = *value.params
+ }
+ if value.handlers != nil {
+ c.handlers = value.handlers
+ c.fullPath = value.fullPath
+ c.Next()
+ c.writermem.WriteHeaderNow()
+ return
+ }
+ if httpMethod != http.MethodConnect && rPath != "/" {
+ if value.tsr && engine.RedirectTrailingSlash {
+ redirectTrailingSlash(c)
+ return
+ }
+ if engine.RedirectFixedPath && redirectFixedPath(c, root, engine.RedirectFixedPath) {
+ return
+ }
+ }
+ break
+ }
+
+ if engine.HandleMethodNotAllowed {
+ for _, tree := range engine.trees {
+ if tree.method == httpMethod {
+ continue
+ }
+ if value := tree.root.getValue(rPath, nil, unescape); value.handlers != nil {
+ c.handlers = engine.allNoMethod
+ serveError(c, http.StatusMethodNotAllowed, default405Body)
+ return
+ }
+ }
+ }
+ c.handlers = engine.allNoRoute
+ serveError(c, http.StatusNotFound, default404Body)
+}
+
+var mimePlain = []string{MIMEPlain}
+
+func serveError(c *Context, code int, defaultMessage []byte) {
+ c.writermem.status = code
+ c.Next()
+ if c.writermem.Written() {
+ return
+ }
+ if c.writermem.Status() == code {
+ c.writermem.Header()["Content-Type"] = mimePlain
+ _, err := c.Writer.Write(defaultMessage)
+ if err != nil {
+ debugPrint("cannot write message to writer during serve error: %v", err)
+ }
+ return
+ }
+ c.writermem.WriteHeaderNow()
+}
+
+func redirectTrailingSlash(c *Context) {
+ req := c.Request
+ p := req.URL.Path
+ if prefix := path.Clean(c.Request.Header.Get("X-Forwarded-Prefix")); prefix != "." {
+ p = prefix + "/" + req.URL.Path
+ }
+ req.URL.Path = p + "/"
+ if length := len(p); length > 1 && p[length-1] == '/' {
+ req.URL.Path = p[:length-1]
+ }
+ redirectRequest(c)
+}
+
+func redirectFixedPath(c *Context, root *node, trailingSlash bool) bool {
+ req := c.Request
+ rPath := req.URL.Path
+
+ if fixedPath, ok := root.findCaseInsensitivePath(cleanPath(rPath), trailingSlash); ok {
+ req.URL.Path = bytesconv.BytesToString(fixedPath)
+ redirectRequest(c)
+ return true
+ }
+ return false
+}
+
+func redirectRequest(c *Context) {
+ req := c.Request
+ rPath := req.URL.Path
+ rURL := req.URL.String()
+
+ code := http.StatusMovedPermanently // Permanent redirect, request with GET method
+ if req.Method != http.MethodGet {
+ code = http.StatusTemporaryRedirect
+ }
+ debugPrint("redirecting request %d: %s --> %s", code, rPath, rURL)
+ http.Redirect(c.Writer, req, rURL, code)
+ c.writermem.WriteHeaderNow()
+}
diff --git a/vendor/github.com/gin-gonic/gin/go.mod b/vendor/github.com/gin-gonic/gin/go.mod
new file mode 100644
index 000000000..9484b2644
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/go.mod
@@ -0,0 +1,15 @@
+module github.com/gin-gonic/gin
+
+go 1.13
+
+require (
+ github.com/gin-contrib/sse v0.1.0
+ github.com/go-playground/validator/v10 v10.6.1
+ github.com/goccy/go-json v0.5.1
+ github.com/golang/protobuf v1.3.3
+ github.com/json-iterator/go v1.1.9
+ github.com/mattn/go-isatty v0.0.12
+ github.com/stretchr/testify v1.4.0
+ github.com/ugorji/go/codec v1.2.6
+ gopkg.in/yaml.v2 v2.2.8
+)
diff --git a/vendor/github.com/gin-gonic/gin/go.sum b/vendor/github.com/gin-gonic/gin/go.sum
new file mode 100644
index 000000000..e61ef908a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/go.sum
@@ -0,0 +1,55 @@
+github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
+github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
+github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
+github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
+github.com/go-playground/assert/v2 v2.0.1 h1:MsBgLAaY856+nPRTKrp3/OZK38U/wa0CcBYNjji3q3A=
+github.com/go-playground/assert/v2 v2.0.1/go.mod h1:VDjEfimB/XKnb+ZQfWdccd7VUvScMdVu0Titje2rxJ4=
+github.com/go-playground/locales v0.13.0 h1:HyWk6mgj5qFqCT5fjGBuRArbVDfE4hi8+e8ceBS/t7Q=
+github.com/go-playground/locales v0.13.0/go.mod h1:taPMhCMXrRLJO55olJkUXHZBHCxTMfnGwq/HNwmWNS8=
+github.com/go-playground/universal-translator v0.17.0 h1:icxd5fm+REJzpZx7ZfpaD876Lmtgy7VtROAbHHXk8no=
+github.com/go-playground/universal-translator v0.17.0/go.mod h1:UkSxE5sNxxRwHyU+Scu5vgOQjsIJAF8j9muTVoKLVtA=
+github.com/go-playground/validator/v10 v10.6.1 h1:W6TRDXt4WcWp4c4nf/G+6BkGdhiIo0k417gfr+V6u4I=
+github.com/go-playground/validator/v10 v10.6.1/go.mod h1:xm76BBt941f7yWdGnI2DVPFFg1UK3YY04qifoXU3lOk=
+github.com/goccy/go-json v0.5.1 h1:R9UYTOUvo7eIY9aeDMZ4L6OVtHaSr1k2No9W6MKjXrA=
+github.com/goccy/go-json v0.5.1/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
+github.com/golang/protobuf v1.3.3 h1:gyjaxf+svBWX08ZjK86iN9geUJF0H6gp2IRKX6Nf6/I=
+github.com/golang/protobuf v1.3.3/go.mod h1:vzj43D7+SQXF/4pzW/hwtAqwc6iTitCiVSaWz5lYuqw=
+github.com/google/gofuzz v1.0.0/go.mod h1:dBl0BpW6vV/+mYPU4Po3pmUjxk6FQPldtuIdl/M65Eg=
+github.com/json-iterator/go v1.1.9 h1:9yzud/Ht36ygwatGx56VwCZtlI/2AD15T1X2sjSuGns=
+github.com/json-iterator/go v1.1.9/go.mod h1:KdQUCv79m/52Kvf8AW2vK1V8akMuk1QjK/uOdHXbAo4=
+github.com/leodido/go-urn v1.2.0 h1:hpXL4XnriNwQ/ABnpepYM/1vCLWNDfUNts8dX3xTG6Y=
+github.com/leodido/go-urn v1.2.0/go.mod h1:+8+nEpDfqqsY+g338gtMEUOtuK+4dEMhiQEgxpxOKII=
+github.com/mattn/go-isatty v0.0.12 h1:wuysRhFDzyxgEmMf5xjvJ2M9dZoWAXNNr5LSBS7uHXY=
+github.com/mattn/go-isatty v0.0.12/go.mod h1:cbi8OIDigv2wuxKPP5vlRcQ1OAZbq2CE4Kysco4FUpU=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421 h1:ZqeYNhU3OHLH3mGKHDcjJRFFRrJa6eAM5H+CtDdOsPc=
+github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742 h1:Esafd1046DLDQ0W1YjYsBW+p8U2u7vzgW2SQVmlNazg=
+github.com/modern-go/reflect2 v0.0.0-20180701023420-4b7aa43c6742/go.mod h1:bx2lNnkwVCuqBIxFjflWJWanXIb3RllmbCylyMrvgv0=
+github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
+github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
+github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
+github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
+github.com/stretchr/testify v1.4.0 h1:2E4SXV/wtOkTonXsotYi4li6zVWxYlZuYNCXe9XRJyk=
+github.com/stretchr/testify v1.4.0/go.mod h1:j7eGeouHqKxXV5pUuKE4zz7dFj8WfuZ+81PSLYec5m4=
+github.com/ugorji/go v1.2.6 h1:tGiWC9HENWE2tqYycIqFTNorMmFRVhNwCpDOpWqnk8E=
+github.com/ugorji/go v1.2.6/go.mod h1:anCg0y61KIhDlPZmnH+so+RQbysYVyDko0IMgJv0Nn0=
+github.com/ugorji/go/codec v1.2.6 h1:7kbGefxLoDBuYXOms4yD7223OpNMMPNPZxXk5TvFcyQ=
+github.com/ugorji/go/codec v1.2.6/go.mod h1:V6TCNZ4PHqoHGFZuSG1W8nrCzzdgA2DozYxWFFpvxTw=
+golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9 h1:psW17arqaxU48Z5kZ0CQnkZWQJsqcURM6tKiBApRjXI=
+golang.org/x/crypto v0.0.0-20200622213623-75b288015ac9/go.mod h1:LzIPMQfyMNhhGPhUkYOs5KpL4U8rLKemX1yGLhDgUto=
+golang.org/x/net v0.0.0-20190404232315-eb5bcb51f2a3/go.mod h1:t9HGtf8HONx5eT2rtn7q6eTqICYqUVnKs3thJo3Qplg=
+golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
+golang.org/x/sys v0.0.0-20190412213103-97732733099d/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42 h1:vEOn+mP2zCOVzKckCZy6YsCtDblrpj/w7B9nxGNELpg=
+golang.org/x/sys v0.0.0-20200116001909-b77594299b42/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
+golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
+golang.org/x/text v0.3.2 h1:tW2bmiBqwgJj/UpqtC8EpXEZVYOwU0yG4iWbprSVAcs=
+golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk=
+golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM=
+gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
+gopkg.in/yaml.v2 v2.2.2/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
+gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10=
+gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI=
diff --git a/vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv.go b/vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv.go
new file mode 100644
index 000000000..86e4c4d44
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/internal/bytesconv/bytesconv.go
@@ -0,0 +1,24 @@
+// Copyright 2020 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package bytesconv
+
+import (
+ "unsafe"
+)
+
+// StringToBytes converts string to byte slice without a memory allocation.
+func StringToBytes(s string) []byte {
+ return *(*[]byte)(unsafe.Pointer(
+ &struct {
+ string
+ Cap int
+ }{s, len(s)},
+ ))
+}
+
+// BytesToString converts byte slice to string without a memory allocation.
+func BytesToString(b []byte) string {
+ return *(*string)(unsafe.Pointer(&b))
+}
diff --git a/vendor/github.com/gin-gonic/gin/internal/json/go_json.go b/vendor/github.com/gin-gonic/gin/internal/json/go_json.go
new file mode 100644
index 000000000..da960571a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/internal/json/go_json.go
@@ -0,0 +1,23 @@
+// Copyright 2017 Bo-Yi Wu. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build go_json
+// +build go_json
+
+package json
+
+import json "github.com/goccy/go-json"
+
+var (
+ // Marshal is exported by gin/json package.
+ Marshal = json.Marshal
+ // Unmarshal is exported by gin/json package.
+ Unmarshal = json.Unmarshal
+ // MarshalIndent is exported by gin/json package.
+ MarshalIndent = json.MarshalIndent
+ // NewDecoder is exported by gin/json package.
+ NewDecoder = json.NewDecoder
+ // NewEncoder is exported by gin/json package.
+ NewEncoder = json.NewEncoder
+)
diff --git a/vendor/github.com/gin-gonic/gin/internal/json/json.go b/vendor/github.com/gin-gonic/gin/internal/json/json.go
new file mode 100644
index 000000000..75b602240
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/internal/json/json.go
@@ -0,0 +1,23 @@
+// Copyright 2017 Bo-Yi Wu. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build !jsoniter && !go_json
+// +build !jsoniter,!go_json
+
+package json
+
+import "encoding/json"
+
+var (
+ // Marshal is exported by gin/json package.
+ Marshal = json.Marshal
+ // Unmarshal is exported by gin/json package.
+ Unmarshal = json.Unmarshal
+ // MarshalIndent is exported by gin/json package.
+ MarshalIndent = json.MarshalIndent
+ // NewDecoder is exported by gin/json package.
+ NewDecoder = json.NewDecoder
+ // NewEncoder is exported by gin/json package.
+ NewEncoder = json.NewEncoder
+)
diff --git a/vendor/github.com/gin-gonic/gin/internal/json/jsoniter.go b/vendor/github.com/gin-gonic/gin/internal/json/jsoniter.go
new file mode 100644
index 000000000..232f8dcad
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/internal/json/jsoniter.go
@@ -0,0 +1,24 @@
+// Copyright 2017 Bo-Yi Wu. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build jsoniter
+// +build jsoniter
+
+package json
+
+import jsoniter "github.com/json-iterator/go"
+
+var (
+ json = jsoniter.ConfigCompatibleWithStandardLibrary
+ // Marshal is exported by gin/json package.
+ Marshal = json.Marshal
+ // Unmarshal is exported by gin/json package.
+ Unmarshal = json.Unmarshal
+ // MarshalIndent is exported by gin/json package.
+ MarshalIndent = json.MarshalIndent
+ // NewDecoder is exported by gin/json package.
+ NewDecoder = json.NewDecoder
+ // NewEncoder is exported by gin/json package.
+ NewEncoder = json.NewEncoder
+)
diff --git a/vendor/github.com/gin-gonic/gin/logger.go b/vendor/github.com/gin-gonic/gin/logger.go
new file mode 100644
index 000000000..22138a8d3
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/logger.go
@@ -0,0 +1,270 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "fmt"
+ "io"
+ "net/http"
+ "os"
+ "time"
+
+ "github.com/mattn/go-isatty"
+)
+
+type consoleColorModeValue int
+
+const (
+ autoColor consoleColorModeValue = iota
+ disableColor
+ forceColor
+)
+
+const (
+ green = "\033[97;42m"
+ white = "\033[90;47m"
+ yellow = "\033[90;43m"
+ red = "\033[97;41m"
+ blue = "\033[97;44m"
+ magenta = "\033[97;45m"
+ cyan = "\033[97;46m"
+ reset = "\033[0m"
+)
+
+var consoleColorMode = autoColor
+
+// LoggerConfig defines the config for Logger middleware.
+type LoggerConfig struct {
+ // Optional. Default value is gin.defaultLogFormatter
+ Formatter LogFormatter
+
+ // Output is a writer where logs are written.
+ // Optional. Default value is gin.DefaultWriter.
+ Output io.Writer
+
+ // SkipPaths is a url path array which logs are not written.
+ // Optional.
+ SkipPaths []string
+}
+
+// LogFormatter gives the signature of the formatter function passed to LoggerWithFormatter
+type LogFormatter func(params LogFormatterParams) string
+
+// LogFormatterParams is the structure any formatter will be handed when time to log comes
+type LogFormatterParams struct {
+ Request *http.Request
+
+ // TimeStamp shows the time after the server returns a response.
+ TimeStamp time.Time
+ // StatusCode is HTTP response code.
+ StatusCode int
+ // Latency is how much time the server cost to process a certain request.
+ Latency time.Duration
+ // ClientIP equals Context's ClientIP method.
+ ClientIP string
+ // Method is the HTTP method given to the request.
+ Method string
+ // Path is a path the client requests.
+ Path string
+ // ErrorMessage is set if error has occurred in processing the request.
+ ErrorMessage string
+ // isTerm shows whether does gin's output descriptor refers to a terminal.
+ isTerm bool
+ // BodySize is the size of the Response Body
+ BodySize int
+ // Keys are the keys set on the request's context.
+ Keys map[string]interface{}
+}
+
+// StatusCodeColor is the ANSI color for appropriately logging http status code to a terminal.
+func (p *LogFormatterParams) StatusCodeColor() string {
+ code := p.StatusCode
+
+ switch {
+ case code >= http.StatusOK && code < http.StatusMultipleChoices:
+ return green
+ case code >= http.StatusMultipleChoices && code < http.StatusBadRequest:
+ return white
+ case code >= http.StatusBadRequest && code < http.StatusInternalServerError:
+ return yellow
+ default:
+ return red
+ }
+}
+
+// MethodColor is the ANSI color for appropriately logging http method to a terminal.
+func (p *LogFormatterParams) MethodColor() string {
+ method := p.Method
+
+ switch method {
+ case http.MethodGet:
+ return blue
+ case http.MethodPost:
+ return cyan
+ case http.MethodPut:
+ return yellow
+ case http.MethodDelete:
+ return red
+ case http.MethodPatch:
+ return green
+ case http.MethodHead:
+ return magenta
+ case http.MethodOptions:
+ return white
+ default:
+ return reset
+ }
+}
+
+// ResetColor resets all escape attributes.
+func (p *LogFormatterParams) ResetColor() string {
+ return reset
+}
+
+// IsOutputColor indicates whether can colors be outputted to the log.
+func (p *LogFormatterParams) IsOutputColor() bool {
+ return consoleColorMode == forceColor || (consoleColorMode == autoColor && p.isTerm)
+}
+
+// defaultLogFormatter is the default log format function Logger middleware uses.
+var defaultLogFormatter = func(param LogFormatterParams) string {
+ var statusColor, methodColor, resetColor string
+ if param.IsOutputColor() {
+ statusColor = param.StatusCodeColor()
+ methodColor = param.MethodColor()
+ resetColor = param.ResetColor()
+ }
+
+ if param.Latency > time.Minute {
+ param.Latency = param.Latency.Truncate(time.Second)
+ }
+ return fmt.Sprintf("[GIN] %v |%s %3d %s| %13v | %15s |%s %-7s %s %#v\n%s",
+ param.TimeStamp.Format("2006/01/02 - 15:04:05"),
+ statusColor, param.StatusCode, resetColor,
+ param.Latency,
+ param.ClientIP,
+ methodColor, param.Method, resetColor,
+ param.Path,
+ param.ErrorMessage,
+ )
+}
+
+// DisableConsoleColor disables color output in the console.
+func DisableConsoleColor() {
+ consoleColorMode = disableColor
+}
+
+// ForceConsoleColor force color output in the console.
+func ForceConsoleColor() {
+ consoleColorMode = forceColor
+}
+
+// ErrorLogger returns a handlerfunc for any error type.
+func ErrorLogger() HandlerFunc {
+ return ErrorLoggerT(ErrorTypeAny)
+}
+
+// ErrorLoggerT returns a handlerfunc for a given error type.
+func ErrorLoggerT(typ ErrorType) HandlerFunc {
+ return func(c *Context) {
+ c.Next()
+ errors := c.Errors.ByType(typ)
+ if len(errors) > 0 {
+ c.JSON(-1, errors)
+ }
+ }
+}
+
+// Logger instances a Logger middleware that will write the logs to gin.DefaultWriter.
+// By default gin.DefaultWriter = os.Stdout.
+func Logger() HandlerFunc {
+ return LoggerWithConfig(LoggerConfig{})
+}
+
+// LoggerWithFormatter instance a Logger middleware with the specified log format function.
+func LoggerWithFormatter(f LogFormatter) HandlerFunc {
+ return LoggerWithConfig(LoggerConfig{
+ Formatter: f,
+ })
+}
+
+// LoggerWithWriter instance a Logger middleware with the specified writer buffer.
+// Example: os.Stdout, a file opened in write mode, a socket...
+func LoggerWithWriter(out io.Writer, notlogged ...string) HandlerFunc {
+ return LoggerWithConfig(LoggerConfig{
+ Output: out,
+ SkipPaths: notlogged,
+ })
+}
+
+// LoggerWithConfig instance a Logger middleware with config.
+func LoggerWithConfig(conf LoggerConfig) HandlerFunc {
+ formatter := conf.Formatter
+ if formatter == nil {
+ formatter = defaultLogFormatter
+ }
+
+ out := conf.Output
+ if out == nil {
+ out = DefaultWriter
+ }
+
+ notlogged := conf.SkipPaths
+
+ isTerm := true
+
+ if w, ok := out.(*os.File); !ok || os.Getenv("TERM") == "dumb" ||
+ (!isatty.IsTerminal(w.Fd()) && !isatty.IsCygwinTerminal(w.Fd())) {
+ isTerm = false
+ }
+
+ var skip map[string]struct{}
+
+ if length := len(notlogged); length > 0 {
+ skip = make(map[string]struct{}, length)
+
+ for _, path := range notlogged {
+ skip[path] = struct{}{}
+ }
+ }
+
+ return func(c *Context) {
+ // Start timer
+ start := time.Now()
+ path := c.Request.URL.Path
+ raw := c.Request.URL.RawQuery
+
+ // Process request
+ c.Next()
+
+ // Log only when path is not being skipped
+ if _, ok := skip[path]; !ok {
+ param := LogFormatterParams{
+ Request: c.Request,
+ isTerm: isTerm,
+ Keys: c.Keys,
+ }
+
+ // Stop timer
+ param.TimeStamp = time.Now()
+ param.Latency = param.TimeStamp.Sub(start)
+
+ param.ClientIP = c.ClientIP()
+ param.Method = c.Request.Method
+ param.StatusCode = c.Writer.Status()
+ param.ErrorMessage = c.Errors.ByType(ErrorTypePrivate).String()
+
+ param.BodySize = c.Writer.Size()
+
+ if raw != "" {
+ path = path + "?" + raw
+ }
+
+ param.Path = path
+
+ fmt.Fprint(out, formatter(param))
+ }
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/mode.go b/vendor/github.com/gin-gonic/gin/mode.go
new file mode 100644
index 000000000..c8813aff2
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/mode.go
@@ -0,0 +1,92 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "io"
+ "os"
+
+ "github.com/gin-gonic/gin/binding"
+)
+
+// EnvGinMode indicates environment name for gin mode.
+const EnvGinMode = "GIN_MODE"
+
+const (
+ // DebugMode indicates gin mode is debug.
+ DebugMode = "debug"
+ // ReleaseMode indicates gin mode is release.
+ ReleaseMode = "release"
+ // TestMode indicates gin mode is test.
+ TestMode = "test"
+)
+
+const (
+ debugCode = iota
+ releaseCode
+ testCode
+)
+
+// DefaultWriter is the default io.Writer used by Gin for debug output and
+// middleware output like Logger() or Recovery().
+// Note that both Logger and Recovery provides custom ways to configure their
+// output io.Writer.
+// To support coloring in Windows use:
+// import "github.com/mattn/go-colorable"
+// gin.DefaultWriter = colorable.NewColorableStdout()
+var DefaultWriter io.Writer = os.Stdout
+
+// DefaultErrorWriter is the default io.Writer used by Gin to debug errors
+var DefaultErrorWriter io.Writer = os.Stderr
+
+var ginMode = debugCode
+var modeName = DebugMode
+
+func init() {
+ mode := os.Getenv(EnvGinMode)
+ SetMode(mode)
+}
+
+// SetMode sets gin mode according to input string.
+func SetMode(value string) {
+ if value == "" {
+ value = DebugMode
+ }
+
+ switch value {
+ case DebugMode:
+ ginMode = debugCode
+ case ReleaseMode:
+ ginMode = releaseCode
+ case TestMode:
+ ginMode = testCode
+ default:
+ panic("gin mode unknown: " + value + " (available mode: debug release test)")
+ }
+
+ modeName = value
+}
+
+// DisableBindValidation closes the default validator.
+func DisableBindValidation() {
+ binding.Validator = nil
+}
+
+// EnableJsonDecoderUseNumber sets true for binding.EnableDecoderUseNumber to
+// call the UseNumber method on the JSON Decoder instance.
+func EnableJsonDecoderUseNumber() {
+ binding.EnableDecoderUseNumber = true
+}
+
+// EnableJsonDecoderDisallowUnknownFields sets true for binding.EnableDecoderDisallowUnknownFields to
+// call the DisallowUnknownFields method on the JSON Decoder instance.
+func EnableJsonDecoderDisallowUnknownFields() {
+ binding.EnableDecoderDisallowUnknownFields = true
+}
+
+// Mode returns currently gin mode.
+func Mode() string {
+ return modeName
+}
diff --git a/vendor/github.com/gin-gonic/gin/path.go b/vendor/github.com/gin-gonic/gin/path.go
new file mode 100644
index 000000000..d42d6b9d0
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/path.go
@@ -0,0 +1,150 @@
+// Copyright 2013 Julien Schmidt. All rights reserved.
+// Based on the path package, Copyright 2009 The Go Authors.
+// Use of this source code is governed by a BSD-style license that can be found
+// at https://github.com/julienschmidt/httprouter/blob/master/LICENSE.
+
+package gin
+
+// cleanPath is the URL version of path.Clean, it returns a canonical URL path
+// for p, eliminating . and .. elements.
+//
+// The following rules are applied iteratively until no further processing can
+// be done:
+// 1. Replace multiple slashes with a single slash.
+// 2. Eliminate each . path name element (the current directory).
+// 3. Eliminate each inner .. path name element (the parent directory)
+// along with the non-.. element that precedes it.
+// 4. Eliminate .. elements that begin a rooted path:
+// that is, replace "/.." by "/" at the beginning of a path.
+//
+// If the result of this process is an empty string, "/" is returned.
+func cleanPath(p string) string {
+ const stackBufSize = 128
+ // Turn empty string into "/"
+ if p == "" {
+ return "/"
+ }
+
+ // Reasonably sized buffer on stack to avoid allocations in the common case.
+ // If a larger buffer is required, it gets allocated dynamically.
+ buf := make([]byte, 0, stackBufSize)
+
+ n := len(p)
+
+ // Invariants:
+ // reading from path; r is index of next byte to process.
+ // writing to buf; w is index of next byte to write.
+
+ // path must start with '/'
+ r := 1
+ w := 1
+
+ if p[0] != '/' {
+ r = 0
+
+ if n+1 > stackBufSize {
+ buf = make([]byte, n+1)
+ } else {
+ buf = buf[:n+1]
+ }
+ buf[0] = '/'
+ }
+
+ trailing := n > 1 && p[n-1] == '/'
+
+ // A bit more clunky without a 'lazybuf' like the path package, but the loop
+ // gets completely inlined (bufApp calls).
+ // loop has no expensive function calls (except 1x make) // So in contrast to the path package this loop has no expensive function
+ // calls (except make, if needed).
+
+ for r < n {
+ switch {
+ case p[r] == '/':
+ // empty path element, trailing slash is added after the end
+ r++
+
+ case p[r] == '.' && r+1 == n:
+ trailing = true
+ r++
+
+ case p[r] == '.' && p[r+1] == '/':
+ // . element
+ r += 2
+
+ case p[r] == '.' && p[r+1] == '.' && (r+2 == n || p[r+2] == '/'):
+ // .. element: remove to last /
+ r += 3
+
+ if w > 1 {
+ // can backtrack
+ w--
+
+ if len(buf) == 0 {
+ for w > 1 && p[w] != '/' {
+ w--
+ }
+ } else {
+ for w > 1 && buf[w] != '/' {
+ w--
+ }
+ }
+ }
+
+ default:
+ // Real path element.
+ // Add slash if needed
+ if w > 1 {
+ bufApp(&buf, p, w, '/')
+ w++
+ }
+
+ // Copy element
+ for r < n && p[r] != '/' {
+ bufApp(&buf, p, w, p[r])
+ w++
+ r++
+ }
+ }
+ }
+
+ // Re-append trailing slash
+ if trailing && w > 1 {
+ bufApp(&buf, p, w, '/')
+ w++
+ }
+
+ // If the original string was not modified (or only shortened at the end),
+ // return the respective substring of the original string.
+ // Otherwise return a new string from the buffer.
+ if len(buf) == 0 {
+ return p[:w]
+ }
+ return string(buf[:w])
+}
+
+// Internal helper to lazily create a buffer if necessary.
+// Calls to this function get inlined.
+func bufApp(buf *[]byte, s string, w int, c byte) {
+ b := *buf
+ if len(b) == 0 {
+ // No modification of the original string so far.
+ // If the next character is the same as in the original string, we do
+ // not yet have to allocate a buffer.
+ if s[w] == c {
+ return
+ }
+
+ // Otherwise use either the stack buffer, if it is large enough, or
+ // allocate a new buffer on the heap, and copy all previous characters.
+ length := len(s)
+ if length > cap(b) {
+ *buf = make([]byte, length)
+ } else {
+ *buf = (*buf)[:length]
+ }
+ b = *buf
+
+ copy(b, s[:w])
+ }
+ b[w] = c
+}
diff --git a/vendor/github.com/gin-gonic/gin/recovery.go b/vendor/github.com/gin-gonic/gin/recovery.go
new file mode 100644
index 000000000..3101fe28a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/recovery.go
@@ -0,0 +1,171 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "bytes"
+ "fmt"
+ "io"
+ "io/ioutil"
+ "log"
+ "net"
+ "net/http"
+ "net/http/httputil"
+ "os"
+ "runtime"
+ "strings"
+ "time"
+)
+
+var (
+ dunno = []byte("???")
+ centerDot = []byte("·")
+ dot = []byte(".")
+ slash = []byte("/")
+)
+
+// RecoveryFunc defines the function passable to CustomRecovery.
+type RecoveryFunc func(c *Context, err interface{})
+
+// Recovery returns a middleware that recovers from any panics and writes a 500 if there was one.
+func Recovery() HandlerFunc {
+ return RecoveryWithWriter(DefaultErrorWriter)
+}
+
+// CustomRecovery returns a middleware that recovers from any panics and calls the provided handle func to handle it.
+func CustomRecovery(handle RecoveryFunc) HandlerFunc {
+ return RecoveryWithWriter(DefaultErrorWriter, handle)
+}
+
+// RecoveryWithWriter returns a middleware for a given writer that recovers from any panics and writes a 500 if there was one.
+func RecoveryWithWriter(out io.Writer, recovery ...RecoveryFunc) HandlerFunc {
+ if len(recovery) > 0 {
+ return CustomRecoveryWithWriter(out, recovery[0])
+ }
+ return CustomRecoveryWithWriter(out, defaultHandleRecovery)
+}
+
+// CustomRecoveryWithWriter returns a middleware for a given writer that recovers from any panics and calls the provided handle func to handle it.
+func CustomRecoveryWithWriter(out io.Writer, handle RecoveryFunc) HandlerFunc {
+ var logger *log.Logger
+ if out != nil {
+ logger = log.New(out, "\n\n\x1b[31m", log.LstdFlags)
+ }
+ return func(c *Context) {
+ defer func() {
+ if err := recover(); err != nil {
+ // Check for a broken connection, as it is not really a
+ // condition that warrants a panic stack trace.
+ var brokenPipe bool
+ if ne, ok := err.(*net.OpError); ok {
+ if se, ok := ne.Err.(*os.SyscallError); ok {
+ if strings.Contains(strings.ToLower(se.Error()), "broken pipe") || strings.Contains(strings.ToLower(se.Error()), "connection reset by peer") {
+ brokenPipe = true
+ }
+ }
+ }
+ if logger != nil {
+ stack := stack(3)
+ httpRequest, _ := httputil.DumpRequest(c.Request, false)
+ headers := strings.Split(string(httpRequest), "\r\n")
+ for idx, header := range headers {
+ current := strings.Split(header, ":")
+ if current[0] == "Authorization" {
+ headers[idx] = current[0] + ": *"
+ }
+ }
+ headersToStr := strings.Join(headers, "\r\n")
+ if brokenPipe {
+ logger.Printf("%s\n%s%s", err, headersToStr, reset)
+ } else if IsDebugging() {
+ logger.Printf("[Recovery] %s panic recovered:\n%s\n%s\n%s%s",
+ timeFormat(time.Now()), headersToStr, err, stack, reset)
+ } else {
+ logger.Printf("[Recovery] %s panic recovered:\n%s\n%s%s",
+ timeFormat(time.Now()), err, stack, reset)
+ }
+ }
+ if brokenPipe {
+ // If the connection is dead, we can't write a status to it.
+ c.Error(err.(error)) // nolint: errcheck
+ c.Abort()
+ } else {
+ handle(c, err)
+ }
+ }
+ }()
+ c.Next()
+ }
+}
+
+func defaultHandleRecovery(c *Context, err interface{}) {
+ c.AbortWithStatus(http.StatusInternalServerError)
+}
+
+// stack returns a nicely formatted stack frame, skipping skip frames.
+func stack(skip int) []byte {
+ buf := new(bytes.Buffer) // the returned data
+ // As we loop, we open files and read them. These variables record the currently
+ // loaded file.
+ var lines [][]byte
+ var lastFile string
+ for i := skip; ; i++ { // Skip the expected number of frames
+ pc, file, line, ok := runtime.Caller(i)
+ if !ok {
+ break
+ }
+ // Print this much at least. If we can't find the source, it won't show.
+ fmt.Fprintf(buf, "%s:%d (0x%x)\n", file, line, pc)
+ if file != lastFile {
+ data, err := ioutil.ReadFile(file)
+ if err != nil {
+ continue
+ }
+ lines = bytes.Split(data, []byte{'\n'})
+ lastFile = file
+ }
+ fmt.Fprintf(buf, "\t%s: %s\n", function(pc), source(lines, line))
+ }
+ return buf.Bytes()
+}
+
+// source returns a space-trimmed slice of the n'th line.
+func source(lines [][]byte, n int) []byte {
+ n-- // in stack trace, lines are 1-indexed but our array is 0-indexed
+ if n < 0 || n >= len(lines) {
+ return dunno
+ }
+ return bytes.TrimSpace(lines[n])
+}
+
+// function returns, if possible, the name of the function containing the PC.
+func function(pc uintptr) []byte {
+ fn := runtime.FuncForPC(pc)
+ if fn == nil {
+ return dunno
+ }
+ name := []byte(fn.Name())
+ // The name includes the path name to the package, which is unnecessary
+ // since the file name is already included. Plus, it has center dots.
+ // That is, we see
+ // runtime/debug.*T·ptrmethod
+ // and want
+ // *T.ptrmethod
+ // Also the package path might contains dot (e.g. code.google.com/...),
+ // so first eliminate the path prefix
+ if lastSlash := bytes.LastIndex(name, slash); lastSlash >= 0 {
+ name = name[lastSlash+1:]
+ }
+ if period := bytes.Index(name, dot); period >= 0 {
+ name = name[period+1:]
+ }
+ name = bytes.Replace(name, centerDot, dot, -1)
+ return name
+}
+
+// timeFormat returns a customized time string for logger.
+func timeFormat(t time.Time) string {
+ return t.Format("2006/01/02 - 15:04:05")
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/data.go b/vendor/github.com/gin-gonic/gin/render/data.go
new file mode 100644
index 000000000..6ba657ba0
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/data.go
@@ -0,0 +1,25 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import "net/http"
+
+// Data contains ContentType and bytes data.
+type Data struct {
+ ContentType string
+ Data []byte
+}
+
+// Render (Data) writes data with custom ContentType.
+func (r Data) Render(w http.ResponseWriter) (err error) {
+ r.WriteContentType(w)
+ _, err = w.Write(r.Data)
+ return
+}
+
+// WriteContentType (Data) writes custom ContentType.
+func (r Data) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, []string{r.ContentType})
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/html.go b/vendor/github.com/gin-gonic/gin/render/html.go
new file mode 100644
index 000000000..6696ece99
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/html.go
@@ -0,0 +1,92 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "html/template"
+ "net/http"
+)
+
+// Delims represents a set of Left and Right delimiters for HTML template rendering.
+type Delims struct {
+ // Left delimiter, defaults to {{.
+ Left string
+ // Right delimiter, defaults to }}.
+ Right string
+}
+
+// HTMLRender interface is to be implemented by HTMLProduction and HTMLDebug.
+type HTMLRender interface {
+ // Instance returns an HTML instance.
+ Instance(string, interface{}) Render
+}
+
+// HTMLProduction contains template reference and its delims.
+type HTMLProduction struct {
+ Template *template.Template
+ Delims Delims
+}
+
+// HTMLDebug contains template delims and pattern and function with file list.
+type HTMLDebug struct {
+ Files []string
+ Glob string
+ Delims Delims
+ FuncMap template.FuncMap
+}
+
+// HTML contains template reference and its name with given interface object.
+type HTML struct {
+ Template *template.Template
+ Name string
+ Data interface{}
+}
+
+var htmlContentType = []string{"text/html; charset=utf-8"}
+
+// Instance (HTMLProduction) returns an HTML instance which it realizes Render interface.
+func (r HTMLProduction) Instance(name string, data interface{}) Render {
+ return HTML{
+ Template: r.Template,
+ Name: name,
+ Data: data,
+ }
+}
+
+// Instance (HTMLDebug) returns an HTML instance which it realizes Render interface.
+func (r HTMLDebug) Instance(name string, data interface{}) Render {
+ return HTML{
+ Template: r.loadTemplate(),
+ Name: name,
+ Data: data,
+ }
+}
+func (r HTMLDebug) loadTemplate() *template.Template {
+ if r.FuncMap == nil {
+ r.FuncMap = template.FuncMap{}
+ }
+ if len(r.Files) > 0 {
+ return template.Must(template.New("").Delims(r.Delims.Left, r.Delims.Right).Funcs(r.FuncMap).ParseFiles(r.Files...))
+ }
+ if r.Glob != "" {
+ return template.Must(template.New("").Delims(r.Delims.Left, r.Delims.Right).Funcs(r.FuncMap).ParseGlob(r.Glob))
+ }
+ panic("the HTML debug render was created without files or glob pattern")
+}
+
+// Render (HTML) executes template and writes its result with custom ContentType for response.
+func (r HTML) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+
+ if r.Name == "" {
+ return r.Template.Execute(w, r.Data)
+ }
+ return r.Template.ExecuteTemplate(w, r.Name, r.Data)
+}
+
+// WriteContentType (HTML) writes HTML ContentType.
+func (r HTML) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, htmlContentType)
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/json.go b/vendor/github.com/gin-gonic/gin/render/json.go
new file mode 100644
index 000000000..e25415b00
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/json.go
@@ -0,0 +1,195 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "bytes"
+ "fmt"
+ "html/template"
+ "net/http"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+ "github.com/gin-gonic/gin/internal/json"
+)
+
+// JSON contains the given interface object.
+type JSON struct {
+ Data interface{}
+}
+
+// IndentedJSON contains the given interface object.
+type IndentedJSON struct {
+ Data interface{}
+}
+
+// SecureJSON contains the given interface object and its prefix.
+type SecureJSON struct {
+ Prefix string
+ Data interface{}
+}
+
+// JsonpJSON contains the given interface object its callback.
+type JsonpJSON struct {
+ Callback string
+ Data interface{}
+}
+
+// AsciiJSON contains the given interface object.
+type AsciiJSON struct {
+ Data interface{}
+}
+
+// PureJSON contains the given interface object.
+type PureJSON struct {
+ Data interface{}
+}
+
+var (
+ jsonContentType = []string{"application/json; charset=utf-8"}
+ jsonpContentType = []string{"application/javascript; charset=utf-8"}
+ jsonAsciiContentType = []string{"application/json"}
+)
+
+// Render (JSON) writes data with custom ContentType.
+func (r JSON) Render(w http.ResponseWriter) (err error) {
+ if err = WriteJSON(w, r.Data); err != nil {
+ panic(err)
+ }
+ return
+}
+
+// WriteContentType (JSON) writes JSON ContentType.
+func (r JSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonContentType)
+}
+
+// WriteJSON marshals the given interface object and writes it with custom ContentType.
+func WriteJSON(w http.ResponseWriter, obj interface{}) error {
+ writeContentType(w, jsonContentType)
+ jsonBytes, err := json.Marshal(obj)
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(jsonBytes)
+ return err
+}
+
+// Render (IndentedJSON) marshals the given interface object and writes it with custom ContentType.
+func (r IndentedJSON) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+ jsonBytes, err := json.MarshalIndent(r.Data, "", " ")
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(jsonBytes)
+ return err
+}
+
+// WriteContentType (IndentedJSON) writes JSON ContentType.
+func (r IndentedJSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonContentType)
+}
+
+// Render (SecureJSON) marshals the given interface object and writes it with custom ContentType.
+func (r SecureJSON) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+ jsonBytes, err := json.Marshal(r.Data)
+ if err != nil {
+ return err
+ }
+ // if the jsonBytes is array values
+ if bytes.HasPrefix(jsonBytes, bytesconv.StringToBytes("[")) && bytes.HasSuffix(jsonBytes,
+ bytesconv.StringToBytes("]")) {
+ _, err = w.Write(bytesconv.StringToBytes(r.Prefix))
+ if err != nil {
+ return err
+ }
+ }
+ _, err = w.Write(jsonBytes)
+ return err
+}
+
+// WriteContentType (SecureJSON) writes JSON ContentType.
+func (r SecureJSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonContentType)
+}
+
+// Render (JsonpJSON) marshals the given interface object and writes it and its callback with custom ContentType.
+func (r JsonpJSON) Render(w http.ResponseWriter) (err error) {
+ r.WriteContentType(w)
+ ret, err := json.Marshal(r.Data)
+ if err != nil {
+ return err
+ }
+
+ if r.Callback == "" {
+ _, err = w.Write(ret)
+ return err
+ }
+
+ callback := template.JSEscapeString(r.Callback)
+ _, err = w.Write(bytesconv.StringToBytes(callback))
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(bytesconv.StringToBytes("("))
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(ret)
+ if err != nil {
+ return err
+ }
+ _, err = w.Write(bytesconv.StringToBytes(");"))
+ if err != nil {
+ return err
+ }
+
+ return nil
+}
+
+// WriteContentType (JsonpJSON) writes Javascript ContentType.
+func (r JsonpJSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonpContentType)
+}
+
+// Render (AsciiJSON) marshals the given interface object and writes it with custom ContentType.
+func (r AsciiJSON) Render(w http.ResponseWriter) (err error) {
+ r.WriteContentType(w)
+ ret, err := json.Marshal(r.Data)
+ if err != nil {
+ return err
+ }
+
+ var buffer bytes.Buffer
+ for _, r := range bytesconv.BytesToString(ret) {
+ cvt := string(r)
+ if r >= 128 {
+ cvt = fmt.Sprintf("\\u%04x", int64(r))
+ }
+ buffer.WriteString(cvt)
+ }
+
+ _, err = w.Write(buffer.Bytes())
+ return err
+}
+
+// WriteContentType (AsciiJSON) writes JSON ContentType.
+func (r AsciiJSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonAsciiContentType)
+}
+
+// Render (PureJSON) writes custom ContentType and encodes the given interface object.
+func (r PureJSON) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+ encoder := json.NewEncoder(w)
+ encoder.SetEscapeHTML(false)
+ return encoder.Encode(r.Data)
+}
+
+// WriteContentType (PureJSON) writes custom ContentType.
+func (r PureJSON) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, jsonContentType)
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/msgpack.go b/vendor/github.com/gin-gonic/gin/render/msgpack.go
new file mode 100644
index 000000000..7f17ca4d9
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/msgpack.go
@@ -0,0 +1,44 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+//go:build !nomsgpack
+// +build !nomsgpack
+
+package render
+
+import (
+ "net/http"
+
+ "github.com/ugorji/go/codec"
+)
+
+// Check interface implemented here to support go build tag nomsgpack.
+// See: https://github.com/gin-gonic/gin/pull/1852/
+var (
+ _ Render = MsgPack{}
+)
+
+// MsgPack contains the given interface object.
+type MsgPack struct {
+ Data interface{}
+}
+
+var msgpackContentType = []string{"application/msgpack; charset=utf-8"}
+
+// WriteContentType (MsgPack) writes MsgPack ContentType.
+func (r MsgPack) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, msgpackContentType)
+}
+
+// Render (MsgPack) encodes the given interface object and writes data with custom ContentType.
+func (r MsgPack) Render(w http.ResponseWriter) error {
+ return WriteMsgPack(w, r.Data)
+}
+
+// WriteMsgPack writes MsgPack ContentType and encodes the given interface object.
+func WriteMsgPack(w http.ResponseWriter, obj interface{}) error {
+ writeContentType(w, msgpackContentType)
+ var mh codec.MsgpackHandle
+ return codec.NewEncoder(w, &mh).Encode(obj)
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/protobuf.go b/vendor/github.com/gin-gonic/gin/render/protobuf.go
new file mode 100644
index 000000000..15aca9959
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/protobuf.go
@@ -0,0 +1,36 @@
+// Copyright 2018 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "net/http"
+
+ "github.com/golang/protobuf/proto"
+)
+
+// ProtoBuf contains the given interface object.
+type ProtoBuf struct {
+ Data interface{}
+}
+
+var protobufContentType = []string{"application/x-protobuf"}
+
+// Render (ProtoBuf) marshals the given interface object and writes data with custom ContentType.
+func (r ProtoBuf) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+
+ bytes, err := proto.Marshal(r.Data.(proto.Message))
+ if err != nil {
+ return err
+ }
+
+ _, err = w.Write(bytes)
+ return err
+}
+
+// WriteContentType (ProtoBuf) writes ProtoBuf ContentType.
+func (r ProtoBuf) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, protobufContentType)
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/reader.go b/vendor/github.com/gin-gonic/gin/render/reader.go
new file mode 100644
index 000000000..d5282e492
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/reader.go
@@ -0,0 +1,48 @@
+// Copyright 2018 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "io"
+ "net/http"
+ "strconv"
+)
+
+// Reader contains the IO reader and its length, and custom ContentType and other headers.
+type Reader struct {
+ ContentType string
+ ContentLength int64
+ Reader io.Reader
+ Headers map[string]string
+}
+
+// Render (Reader) writes data with custom ContentType and headers.
+func (r Reader) Render(w http.ResponseWriter) (err error) {
+ r.WriteContentType(w)
+ if r.ContentLength >= 0 {
+ if r.Headers == nil {
+ r.Headers = map[string]string{}
+ }
+ r.Headers["Content-Length"] = strconv.FormatInt(r.ContentLength, 10)
+ }
+ r.writeHeaders(w, r.Headers)
+ _, err = io.Copy(w, r.Reader)
+ return
+}
+
+// WriteContentType (Reader) writes custom ContentType.
+func (r Reader) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, []string{r.ContentType})
+}
+
+// writeHeaders writes custom Header.
+func (r Reader) writeHeaders(w http.ResponseWriter, headers map[string]string) {
+ header := w.Header()
+ for k, v := range headers {
+ if header.Get(k) == "" {
+ header.Set(k, v)
+ }
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/redirect.go b/vendor/github.com/gin-gonic/gin/render/redirect.go
new file mode 100644
index 000000000..c006691ca
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/redirect.go
@@ -0,0 +1,29 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "fmt"
+ "net/http"
+)
+
+// Redirect contains the http request reference and redirects status code and location.
+type Redirect struct {
+ Code int
+ Request *http.Request
+ Location string
+}
+
+// Render (Redirect) redirects the http request to new location and writes redirect response.
+func (r Redirect) Render(w http.ResponseWriter) error {
+ if (r.Code < http.StatusMultipleChoices || r.Code > http.StatusPermanentRedirect) && r.Code != http.StatusCreated {
+ panic(fmt.Sprintf("Cannot redirect with status code %d", r.Code))
+ }
+ http.Redirect(w, r.Request, r.Location, r.Code)
+ return nil
+}
+
+// WriteContentType (Redirect) don't write any ContentType.
+func (r Redirect) WriteContentType(http.ResponseWriter) {}
diff --git a/vendor/github.com/gin-gonic/gin/render/render.go b/vendor/github.com/gin-gonic/gin/render/render.go
new file mode 100644
index 000000000..bcd568bfb
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/render.go
@@ -0,0 +1,40 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import "net/http"
+
+// Render interface is to be implemented by JSON, XML, HTML, YAML and so on.
+type Render interface {
+ // Render writes data with custom ContentType.
+ Render(http.ResponseWriter) error
+ // WriteContentType writes custom ContentType.
+ WriteContentType(w http.ResponseWriter)
+}
+
+var (
+ _ Render = JSON{}
+ _ Render = IndentedJSON{}
+ _ Render = SecureJSON{}
+ _ Render = JsonpJSON{}
+ _ Render = XML{}
+ _ Render = String{}
+ _ Render = Redirect{}
+ _ Render = Data{}
+ _ Render = HTML{}
+ _ HTMLRender = HTMLDebug{}
+ _ HTMLRender = HTMLProduction{}
+ _ Render = YAML{}
+ _ Render = Reader{}
+ _ Render = AsciiJSON{}
+ _ Render = ProtoBuf{}
+)
+
+func writeContentType(w http.ResponseWriter, value []string) {
+ header := w.Header()
+ if val := header["Content-Type"]; len(val) == 0 {
+ header["Content-Type"] = value
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/text.go b/vendor/github.com/gin-gonic/gin/render/text.go
new file mode 100644
index 000000000..461b720af
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/text.go
@@ -0,0 +1,41 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "fmt"
+ "net/http"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+)
+
+// String contains the given interface object slice and its format.
+type String struct {
+ Format string
+ Data []interface{}
+}
+
+var plainContentType = []string{"text/plain; charset=utf-8"}
+
+// Render (String) writes data with custom ContentType.
+func (r String) Render(w http.ResponseWriter) error {
+ return WriteString(w, r.Format, r.Data)
+}
+
+// WriteContentType (String) writes Plain ContentType.
+func (r String) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, plainContentType)
+}
+
+// WriteString writes data according to its format and write custom ContentType.
+func WriteString(w http.ResponseWriter, format string, data []interface{}) (err error) {
+ writeContentType(w, plainContentType)
+ if len(data) > 0 {
+ _, err = fmt.Fprintf(w, format, data...)
+ return
+ }
+ _, err = w.Write(bytesconv.StringToBytes(format))
+ return
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/xml.go b/vendor/github.com/gin-gonic/gin/render/xml.go
new file mode 100644
index 000000000..cc5390a2d
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/xml.go
@@ -0,0 +1,28 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "encoding/xml"
+ "net/http"
+)
+
+// XML contains the given interface object.
+type XML struct {
+ Data interface{}
+}
+
+var xmlContentType = []string{"application/xml; charset=utf-8"}
+
+// Render (XML) encodes the given interface object and writes data with custom ContentType.
+func (r XML) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+ return xml.NewEncoder(w).Encode(r.Data)
+}
+
+// WriteContentType (XML) writes XML ContentType for response.
+func (r XML) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, xmlContentType)
+}
diff --git a/vendor/github.com/gin-gonic/gin/render/yaml.go b/vendor/github.com/gin-gonic/gin/render/yaml.go
new file mode 100644
index 000000000..0df783608
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/render/yaml.go
@@ -0,0 +1,36 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package render
+
+import (
+ "net/http"
+
+ "gopkg.in/yaml.v2"
+)
+
+// YAML contains the given interface object.
+type YAML struct {
+ Data interface{}
+}
+
+var yamlContentType = []string{"application/x-yaml; charset=utf-8"}
+
+// Render (YAML) marshals the given interface object and writes data with custom ContentType.
+func (r YAML) Render(w http.ResponseWriter) error {
+ r.WriteContentType(w)
+
+ bytes, err := yaml.Marshal(r.Data)
+ if err != nil {
+ return err
+ }
+
+ _, err = w.Write(bytes)
+ return err
+}
+
+// WriteContentType (YAML) writes YAML ContentType for response.
+func (r YAML) WriteContentType(w http.ResponseWriter) {
+ writeContentType(w, yamlContentType)
+}
diff --git a/vendor/github.com/gin-gonic/gin/response_writer.go b/vendor/github.com/gin-gonic/gin/response_writer.go
new file mode 100644
index 000000000..26826689a
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/response_writer.go
@@ -0,0 +1,126 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "bufio"
+ "io"
+ "net"
+ "net/http"
+)
+
+const (
+ noWritten = -1
+ defaultStatus = http.StatusOK
+)
+
+// ResponseWriter ...
+type ResponseWriter interface {
+ http.ResponseWriter
+ http.Hijacker
+ http.Flusher
+ http.CloseNotifier
+
+ // Returns the HTTP response status code of the current request.
+ Status() int
+
+ // Returns the number of bytes already written into the response http body.
+ // See Written()
+ Size() int
+
+ // Writes the string into the response body.
+ WriteString(string) (int, error)
+
+ // Returns true if the response body was already written.
+ Written() bool
+
+ // Forces to write the http header (status code + headers).
+ WriteHeaderNow()
+
+ // get the http.Pusher for server push
+ Pusher() http.Pusher
+}
+
+type responseWriter struct {
+ http.ResponseWriter
+ size int
+ status int
+}
+
+var _ ResponseWriter = &responseWriter{}
+
+func (w *responseWriter) reset(writer http.ResponseWriter) {
+ w.ResponseWriter = writer
+ w.size = noWritten
+ w.status = defaultStatus
+}
+
+func (w *responseWriter) WriteHeader(code int) {
+ if code > 0 && w.status != code {
+ if w.Written() {
+ debugPrint("[WARNING] Headers were already written. Wanted to override status code %d with %d", w.status, code)
+ }
+ w.status = code
+ }
+}
+
+func (w *responseWriter) WriteHeaderNow() {
+ if !w.Written() {
+ w.size = 0
+ w.ResponseWriter.WriteHeader(w.status)
+ }
+}
+
+func (w *responseWriter) Write(data []byte) (n int, err error) {
+ w.WriteHeaderNow()
+ n, err = w.ResponseWriter.Write(data)
+ w.size += n
+ return
+}
+
+func (w *responseWriter) WriteString(s string) (n int, err error) {
+ w.WriteHeaderNow()
+ n, err = io.WriteString(w.ResponseWriter, s)
+ w.size += n
+ return
+}
+
+func (w *responseWriter) Status() int {
+ return w.status
+}
+
+func (w *responseWriter) Size() int {
+ return w.size
+}
+
+func (w *responseWriter) Written() bool {
+ return w.size != noWritten
+}
+
+// Hijack implements the http.Hijacker interface.
+func (w *responseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error) {
+ if w.size < 0 {
+ w.size = 0
+ }
+ return w.ResponseWriter.(http.Hijacker).Hijack()
+}
+
+// CloseNotify implements the http.CloseNotify interface.
+func (w *responseWriter) CloseNotify() <-chan bool {
+ return w.ResponseWriter.(http.CloseNotifier).CloseNotify()
+}
+
+// Flush implements the http.Flush interface.
+func (w *responseWriter) Flush() {
+ w.WriteHeaderNow()
+ w.ResponseWriter.(http.Flusher).Flush()
+}
+
+func (w *responseWriter) Pusher() (pusher http.Pusher) {
+ if pusher, ok := w.ResponseWriter.(http.Pusher); ok {
+ return pusher
+ }
+ return nil
+}
diff --git a/vendor/github.com/gin-gonic/gin/routergroup.go b/vendor/github.com/gin-gonic/gin/routergroup.go
new file mode 100644
index 000000000..bb24bd523
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/routergroup.go
@@ -0,0 +1,233 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "net/http"
+ "path"
+ "regexp"
+ "strings"
+)
+
+var (
+ // reg match english letters for http method name
+ regEnLetter = regexp.MustCompile("^[A-Z]+$")
+)
+
+// IRouter defines all router handle interface includes single and group router.
+type IRouter interface {
+ IRoutes
+ Group(string, ...HandlerFunc) *RouterGroup
+}
+
+// IRoutes defines all router handle interface.
+type IRoutes interface {
+ Use(...HandlerFunc) IRoutes
+
+ Handle(string, string, ...HandlerFunc) IRoutes
+ Any(string, ...HandlerFunc) IRoutes
+ GET(string, ...HandlerFunc) IRoutes
+ POST(string, ...HandlerFunc) IRoutes
+ DELETE(string, ...HandlerFunc) IRoutes
+ PATCH(string, ...HandlerFunc) IRoutes
+ PUT(string, ...HandlerFunc) IRoutes
+ OPTIONS(string, ...HandlerFunc) IRoutes
+ HEAD(string, ...HandlerFunc) IRoutes
+
+ StaticFile(string, string) IRoutes
+ Static(string, string) IRoutes
+ StaticFS(string, http.FileSystem) IRoutes
+}
+
+// RouterGroup is used internally to configure router, a RouterGroup is associated with
+// a prefix and an array of handlers (middleware).
+type RouterGroup struct {
+ Handlers HandlersChain
+ basePath string
+ engine *Engine
+ root bool
+}
+
+var _ IRouter = &RouterGroup{}
+
+// Use adds middleware to the group, see example code in GitHub.
+func (group *RouterGroup) Use(middleware ...HandlerFunc) IRoutes {
+ group.Handlers = append(group.Handlers, middleware...)
+ return group.returnObj()
+}
+
+// Group creates a new router group. You should add all the routes that have common middlewares or the same path prefix.
+// For example, all the routes that use a common middleware for authorization could be grouped.
+func (group *RouterGroup) Group(relativePath string, handlers ...HandlerFunc) *RouterGroup {
+ return &RouterGroup{
+ Handlers: group.combineHandlers(handlers),
+ basePath: group.calculateAbsolutePath(relativePath),
+ engine: group.engine,
+ }
+}
+
+// BasePath returns the base path of router group.
+// For example, if v := router.Group("/rest/n/v1/api"), v.BasePath() is "/rest/n/v1/api".
+func (group *RouterGroup) BasePath() string {
+ return group.basePath
+}
+
+func (group *RouterGroup) handle(httpMethod, relativePath string, handlers HandlersChain) IRoutes {
+ absolutePath := group.calculateAbsolutePath(relativePath)
+ handlers = group.combineHandlers(handlers)
+ group.engine.addRoute(httpMethod, absolutePath, handlers)
+ return group.returnObj()
+}
+
+// Handle registers a new request handle and middleware with the given path and method.
+// The last handler should be the real handler, the other ones should be middleware that can and should be shared among different routes.
+// See the example code in GitHub.
+//
+// For GET, POST, PUT, PATCH and DELETE requests the respective shortcut
+// functions can be used.
+//
+// This function is intended for bulk loading and to allow the usage of less
+// frequently used, non-standardized or custom methods (e.g. for internal
+// communication with a proxy).
+func (group *RouterGroup) Handle(httpMethod, relativePath string, handlers ...HandlerFunc) IRoutes {
+ if matched := regEnLetter.MatchString(httpMethod); !matched {
+ panic("http method " + httpMethod + " is not valid")
+ }
+ return group.handle(httpMethod, relativePath, handlers)
+}
+
+// POST is a shortcut for router.Handle("POST", path, handle).
+func (group *RouterGroup) POST(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodPost, relativePath, handlers)
+}
+
+// GET is a shortcut for router.Handle("GET", path, handle).
+func (group *RouterGroup) GET(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodGet, relativePath, handlers)
+}
+
+// DELETE is a shortcut for router.Handle("DELETE", path, handle).
+func (group *RouterGroup) DELETE(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodDelete, relativePath, handlers)
+}
+
+// PATCH is a shortcut for router.Handle("PATCH", path, handle).
+func (group *RouterGroup) PATCH(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodPatch, relativePath, handlers)
+}
+
+// PUT is a shortcut for router.Handle("PUT", path, handle).
+func (group *RouterGroup) PUT(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodPut, relativePath, handlers)
+}
+
+// OPTIONS is a shortcut for router.Handle("OPTIONS", path, handle).
+func (group *RouterGroup) OPTIONS(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodOptions, relativePath, handlers)
+}
+
+// HEAD is a shortcut for router.Handle("HEAD", path, handle).
+func (group *RouterGroup) HEAD(relativePath string, handlers ...HandlerFunc) IRoutes {
+ return group.handle(http.MethodHead, relativePath, handlers)
+}
+
+// Any registers a route that matches all the HTTP methods.
+// GET, POST, PUT, PATCH, HEAD, OPTIONS, DELETE, CONNECT, TRACE.
+func (group *RouterGroup) Any(relativePath string, handlers ...HandlerFunc) IRoutes {
+ group.handle(http.MethodGet, relativePath, handlers)
+ group.handle(http.MethodPost, relativePath, handlers)
+ group.handle(http.MethodPut, relativePath, handlers)
+ group.handle(http.MethodPatch, relativePath, handlers)
+ group.handle(http.MethodHead, relativePath, handlers)
+ group.handle(http.MethodOptions, relativePath, handlers)
+ group.handle(http.MethodDelete, relativePath, handlers)
+ group.handle(http.MethodConnect, relativePath, handlers)
+ group.handle(http.MethodTrace, relativePath, handlers)
+ return group.returnObj()
+}
+
+// StaticFile registers a single route in order to serve a single file of the local filesystem.
+// router.StaticFile("favicon.ico", "./resources/favicon.ico")
+func (group *RouterGroup) StaticFile(relativePath, filepath string) IRoutes {
+ if strings.Contains(relativePath, ":") || strings.Contains(relativePath, "*") {
+ panic("URL parameters can not be used when serving a static file")
+ }
+ handler := func(c *Context) {
+ c.File(filepath)
+ }
+ group.GET(relativePath, handler)
+ group.HEAD(relativePath, handler)
+ return group.returnObj()
+}
+
+// Static serves files from the given file system root.
+// Internally a http.FileServer is used, therefore http.NotFound is used instead
+// of the Router's NotFound handler.
+// To use the operating system's file system implementation,
+// use :
+// router.Static("/static", "/var/www")
+func (group *RouterGroup) Static(relativePath, root string) IRoutes {
+ return group.StaticFS(relativePath, Dir(root, false))
+}
+
+// StaticFS works just like `Static()` but a custom `http.FileSystem` can be used instead.
+// Gin by default user: gin.Dir()
+func (group *RouterGroup) StaticFS(relativePath string, fs http.FileSystem) IRoutes {
+ if strings.Contains(relativePath, ":") || strings.Contains(relativePath, "*") {
+ panic("URL parameters can not be used when serving a static folder")
+ }
+ handler := group.createStaticHandler(relativePath, fs)
+ urlPattern := path.Join(relativePath, "/*filepath")
+
+ // Register GET and HEAD handlers
+ group.GET(urlPattern, handler)
+ group.HEAD(urlPattern, handler)
+ return group.returnObj()
+}
+
+func (group *RouterGroup) createStaticHandler(relativePath string, fs http.FileSystem) HandlerFunc {
+ absolutePath := group.calculateAbsolutePath(relativePath)
+ fileServer := http.StripPrefix(absolutePath, http.FileServer(fs))
+
+ return func(c *Context) {
+ if _, noListing := fs.(*onlyFilesFS); noListing {
+ c.Writer.WriteHeader(http.StatusNotFound)
+ }
+
+ file := c.Param("filepath")
+ // Check if file exists and/or if we have permission to access it
+ f, err := fs.Open(file)
+ if err != nil {
+ c.Writer.WriteHeader(http.StatusNotFound)
+ c.handlers = group.engine.noRoute
+ // Reset index
+ c.index = -1
+ return
+ }
+ f.Close()
+
+ fileServer.ServeHTTP(c.Writer, c.Request)
+ }
+}
+
+func (group *RouterGroup) combineHandlers(handlers HandlersChain) HandlersChain {
+ finalSize := len(group.Handlers) + len(handlers)
+ assert1(finalSize < int(abortIndex), "too many handlers")
+ mergedHandlers := make(HandlersChain, finalSize)
+ copy(mergedHandlers, group.Handlers)
+ copy(mergedHandlers[len(group.Handlers):], handlers)
+ return mergedHandlers
+}
+
+func (group *RouterGroup) calculateAbsolutePath(relativePath string) string {
+ return joinPaths(group.basePath, relativePath)
+}
+
+func (group *RouterGroup) returnObj() IRoutes {
+ if group.root {
+ return group.engine
+ }
+ return group
+}
diff --git a/vendor/github.com/gin-gonic/gin/test_helpers.go b/vendor/github.com/gin-gonic/gin/test_helpers.go
new file mode 100644
index 000000000..3a7a5ddf6
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/test_helpers.go
@@ -0,0 +1,16 @@
+// Copyright 2017 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import "net/http"
+
+// CreateTestContext returns a fresh engine and context for testing purposes
+func CreateTestContext(w http.ResponseWriter) (c *Context, r *Engine) {
+ r = New()
+ c = r.allocateContext()
+ c.reset()
+ c.writermem.reset(w)
+ return
+}
diff --git a/vendor/github.com/gin-gonic/gin/tree.go b/vendor/github.com/gin-gonic/gin/tree.go
new file mode 100644
index 000000000..2e46b8e51
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/tree.go
@@ -0,0 +1,842 @@
+// Copyright 2013 Julien Schmidt. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be found
+// at https://github.com/julienschmidt/httprouter/blob/master/LICENSE
+
+package gin
+
+import (
+ "bytes"
+ "net/url"
+ "strings"
+ "unicode"
+ "unicode/utf8"
+
+ "github.com/gin-gonic/gin/internal/bytesconv"
+)
+
+var (
+ strColon = []byte(":")
+ strStar = []byte("*")
+)
+
+// Param is a single URL parameter, consisting of a key and a value.
+type Param struct {
+ Key string
+ Value string
+}
+
+// Params is a Param-slice, as returned by the router.
+// The slice is ordered, the first URL parameter is also the first slice value.
+// It is therefore safe to read values by the index.
+type Params []Param
+
+// Get returns the value of the first Param which key matches the given name and a boolean true.
+// If no matching Param is found, an empty string is returned and a boolean false .
+func (ps Params) Get(name string) (string, bool) {
+ for _, entry := range ps {
+ if entry.Key == name {
+ return entry.Value, true
+ }
+ }
+ return "", false
+}
+
+// ByName returns the value of the first Param which key matches the given name.
+// If no matching Param is found, an empty string is returned.
+func (ps Params) ByName(name string) (va string) {
+ va, _ = ps.Get(name)
+ return
+}
+
+type methodTree struct {
+ method string
+ root *node
+}
+
+type methodTrees []methodTree
+
+func (trees methodTrees) get(method string) *node {
+ for _, tree := range trees {
+ if tree.method == method {
+ return tree.root
+ }
+ }
+ return nil
+}
+
+func min(a, b int) int {
+ if a <= b {
+ return a
+ }
+ return b
+}
+
+func longestCommonPrefix(a, b string) int {
+ i := 0
+ max := min(len(a), len(b))
+ for i < max && a[i] == b[i] {
+ i++
+ }
+ return i
+}
+
+// addChild will add a child node, keeping wildcards at the end
+func (n *node) addChild(child *node) {
+ if n.wildChild && len(n.children) > 0 {
+ wildcardChild := n.children[len(n.children)-1]
+ n.children = append(n.children[:len(n.children)-1], child, wildcardChild)
+ } else {
+ n.children = append(n.children, child)
+ }
+}
+
+func countParams(path string) uint16 {
+ var n uint16
+ s := bytesconv.StringToBytes(path)
+ n += uint16(bytes.Count(s, strColon))
+ n += uint16(bytes.Count(s, strStar))
+ return n
+}
+
+type nodeType uint8
+
+const (
+ static nodeType = iota // default
+ root
+ param
+ catchAll
+)
+
+type node struct {
+ path string
+ indices string
+ wildChild bool
+ nType nodeType
+ priority uint32
+ children []*node // child nodes, at most 1 :param style node at the end of the array
+ handlers HandlersChain
+ fullPath string
+}
+
+// Increments priority of the given child and reorders if necessary
+func (n *node) incrementChildPrio(pos int) int {
+ cs := n.children
+ cs[pos].priority++
+ prio := cs[pos].priority
+
+ // Adjust position (move to front)
+ newPos := pos
+ for ; newPos > 0 && cs[newPos-1].priority < prio; newPos-- {
+ // Swap node positions
+ cs[newPos-1], cs[newPos] = cs[newPos], cs[newPos-1]
+ }
+
+ // Build new index char string
+ if newPos != pos {
+ n.indices = n.indices[:newPos] + // Unchanged prefix, might be empty
+ n.indices[pos:pos+1] + // The index char we move
+ n.indices[newPos:pos] + n.indices[pos+1:] // Rest without char at 'pos'
+ }
+
+ return newPos
+}
+
+// addRoute adds a node with the given handle to the path.
+// Not concurrency-safe!
+func (n *node) addRoute(path string, handlers HandlersChain) {
+ fullPath := path
+ n.priority++
+
+ // Empty tree
+ if len(n.path) == 0 && len(n.children) == 0 {
+ n.insertChild(path, fullPath, handlers)
+ n.nType = root
+ return
+ }
+
+ parentFullPathIndex := 0
+
+walk:
+ for {
+ // Find the longest common prefix.
+ // This also implies that the common prefix contains no ':' or '*'
+ // since the existing key can't contain those chars.
+ i := longestCommonPrefix(path, n.path)
+
+ // Split edge
+ if i < len(n.path) {
+ child := node{
+ path: n.path[i:],
+ wildChild: n.wildChild,
+ indices: n.indices,
+ children: n.children,
+ handlers: n.handlers,
+ priority: n.priority - 1,
+ fullPath: n.fullPath,
+ }
+
+ n.children = []*node{&child}
+ // []byte for proper unicode char conversion, see #65
+ n.indices = bytesconv.BytesToString([]byte{n.path[i]})
+ n.path = path[:i]
+ n.handlers = nil
+ n.wildChild = false
+ n.fullPath = fullPath[:parentFullPathIndex+i]
+ }
+
+ // Make new node a child of this node
+ if i < len(path) {
+ path = path[i:]
+ c := path[0]
+
+ // '/' after param
+ if n.nType == param && c == '/' && len(n.children) == 1 {
+ parentFullPathIndex += len(n.path)
+ n = n.children[0]
+ n.priority++
+ continue walk
+ }
+
+ // Check if a child with the next path byte exists
+ for i, max := 0, len(n.indices); i < max; i++ {
+ if c == n.indices[i] {
+ parentFullPathIndex += len(n.path)
+ i = n.incrementChildPrio(i)
+ n = n.children[i]
+ continue walk
+ }
+ }
+
+ // Otherwise insert it
+ if c != ':' && c != '*' && n.nType != catchAll {
+ // []byte for proper unicode char conversion, see #65
+ n.indices += bytesconv.BytesToString([]byte{c})
+ child := &node{
+ fullPath: fullPath,
+ }
+ n.addChild(child)
+ n.incrementChildPrio(len(n.indices) - 1)
+ n = child
+ } else if n.wildChild {
+ // inserting a wildcard node, need to check if it conflicts with the existing wildcard
+ n = n.children[len(n.children)-1]
+ n.priority++
+
+ // Check if the wildcard matches
+ if len(path) >= len(n.path) && n.path == path[:len(n.path)] &&
+ // Adding a child to a catchAll is not possible
+ n.nType != catchAll &&
+ // Check for longer wildcard, e.g. :name and :names
+ (len(n.path) >= len(path) || path[len(n.path)] == '/') {
+ continue walk
+ }
+
+ // Wildcard conflict
+ pathSeg := path
+ if n.nType != catchAll {
+ pathSeg = strings.SplitN(pathSeg, "/", 2)[0]
+ }
+ prefix := fullPath[:strings.Index(fullPath, pathSeg)] + n.path
+ panic("'" + pathSeg +
+ "' in new path '" + fullPath +
+ "' conflicts with existing wildcard '" + n.path +
+ "' in existing prefix '" + prefix +
+ "'")
+ }
+
+ n.insertChild(path, fullPath, handlers)
+ return
+ }
+
+ // Otherwise add handle to current node
+ if n.handlers != nil {
+ panic("handlers are already registered for path '" + fullPath + "'")
+ }
+ n.handlers = handlers
+ n.fullPath = fullPath
+ return
+ }
+}
+
+// Search for a wildcard segment and check the name for invalid characters.
+// Returns -1 as index, if no wildcard was found.
+func findWildcard(path string) (wildcard string, i int, valid bool) {
+ // Find start
+ for start, c := range []byte(path) {
+ // A wildcard starts with ':' (param) or '*' (catch-all)
+ if c != ':' && c != '*' {
+ continue
+ }
+
+ // Find end and check for invalid characters
+ valid = true
+ for end, c := range []byte(path[start+1:]) {
+ switch c {
+ case '/':
+ return path[start : start+1+end], start, valid
+ case ':', '*':
+ valid = false
+ }
+ }
+ return path[start:], start, valid
+ }
+ return "", -1, false
+}
+
+func (n *node) insertChild(path string, fullPath string, handlers HandlersChain) {
+ for {
+ // Find prefix until first wildcard
+ wildcard, i, valid := findWildcard(path)
+ if i < 0 { // No wildcard found
+ break
+ }
+
+ // The wildcard name must not contain ':' and '*'
+ if !valid {
+ panic("only one wildcard per path segment is allowed, has: '" +
+ wildcard + "' in path '" + fullPath + "'")
+ }
+
+ // check if the wildcard has a name
+ if len(wildcard) < 2 {
+ panic("wildcards must be named with a non-empty name in path '" + fullPath + "'")
+ }
+
+ if wildcard[0] == ':' { // param
+ if i > 0 {
+ // Insert prefix before the current wildcard
+ n.path = path[:i]
+ path = path[i:]
+ }
+
+ child := &node{
+ nType: param,
+ path: wildcard,
+ fullPath: fullPath,
+ }
+ n.addChild(child)
+ n.wildChild = true
+ n = child
+ n.priority++
+
+ // if the path doesn't end with the wildcard, then there
+ // will be another non-wildcard subpath starting with '/'
+ if len(wildcard) < len(path) {
+ path = path[len(wildcard):]
+
+ child := &node{
+ priority: 1,
+ fullPath: fullPath,
+ }
+ n.addChild(child)
+ n = child
+ continue
+ }
+
+ // Otherwise we're done. Insert the handle in the new leaf
+ n.handlers = handlers
+ return
+ }
+
+ // catchAll
+ if i+len(wildcard) != len(path) {
+ panic("catch-all routes are only allowed at the end of the path in path '" + fullPath + "'")
+ }
+
+ if len(n.path) > 0 && n.path[len(n.path)-1] == '/' {
+ panic("catch-all conflicts with existing handle for the path segment root in path '" + fullPath + "'")
+ }
+
+ // currently fixed width 1 for '/'
+ i--
+ if path[i] != '/' {
+ panic("no / before catch-all in path '" + fullPath + "'")
+ }
+
+ n.path = path[:i]
+
+ // First node: catchAll node with empty path
+ child := &node{
+ wildChild: true,
+ nType: catchAll,
+ fullPath: fullPath,
+ }
+
+ n.addChild(child)
+ n.indices = string('/')
+ n = child
+ n.priority++
+
+ // second node: node holding the variable
+ child = &node{
+ path: path[i:],
+ nType: catchAll,
+ handlers: handlers,
+ priority: 1,
+ fullPath: fullPath,
+ }
+ n.children = []*node{child}
+
+ return
+ }
+
+ // If no wildcard was found, simply insert the path and handle
+ n.path = path
+ n.handlers = handlers
+ n.fullPath = fullPath
+}
+
+// nodeValue holds return values of (*Node).getValue method
+type nodeValue struct {
+ handlers HandlersChain
+ params *Params
+ tsr bool
+ fullPath string
+}
+
+// Returns the handle registered with the given path (key). The values of
+// wildcards are saved to a map.
+// If no handle can be found, a TSR (trailing slash redirect) recommendation is
+// made if a handle exists with an extra (without the) trailing slash for the
+// given path.
+func (n *node) getValue(path string, params *Params, unescape bool) (value nodeValue) {
+ // path: /abc/123/def
+ // level 1 router:abc
+ // level 2 router:123
+ // level 3 router:def
+ var (
+ skippedPath string
+ latestNode = n // not found `level 2 router` use latestNode
+
+ // match '/' count
+ // matchNum < 1: `level 2 router` not found,the current node needs to be equal to latestNode
+ // matchNum >= 1: `level (2 or 3 or 4 or ...) router`: Normal handling
+ matchNum int // each match will accumulate
+ )
+ //if path == "/", no need to look for tree node
+ if len(path) == 1 {
+ matchNum = 1
+ }
+
+walk: // Outer loop for walking the tree
+ for {
+ prefix := n.path
+ if len(path) > len(prefix) {
+ if path[:len(prefix)] == prefix {
+ path = path[len(prefix):]
+
+ // Try all the non-wildcard children first by matching the indices
+ idxc := path[0]
+ for i, c := range []byte(n.indices) {
+ if c == idxc {
+ // strings.HasPrefix(n.children[len(n.children)-1].path, ":") == n.wildChild
+ if n.wildChild {
+ skippedPath = prefix + path
+ latestNode = &node{
+ path: n.path,
+ wildChild: n.wildChild,
+ nType: n.nType,
+ priority: n.priority,
+ children: n.children,
+ handlers: n.handlers,
+ fullPath: n.fullPath,
+ }
+ }
+
+ n = n.children[i]
+
+ // match '/', If this condition is matched, the next route is found
+ if (len(n.fullPath) != 0 && n.wildChild) || path[len(path)-1] == '/' {
+ matchNum++
+ }
+ continue walk
+ }
+ }
+
+ // level 2 router not found,the current node needs to be equal to latestNode
+ if matchNum < 1 {
+ n = latestNode
+ }
+
+ // If there is no wildcard pattern, recommend a redirection
+ if !n.wildChild {
+ // Nothing found.
+ // We can recommend to redirect to the same URL without a
+ // trailing slash if a leaf exists for that path.
+ value.tsr = path == "/" && n.handlers != nil
+ return
+ }
+
+ // Handle wildcard child, which is always at the end of the array
+ n = n.children[len(n.children)-1]
+
+ switch n.nType {
+ case param:
+ // Find param end (either '/' or path end)
+ end := 0
+ for end < len(path) && path[end] != '/' {
+ end++
+ }
+
+ // Save param value
+ if params != nil && cap(*params) > 0 {
+ if value.params == nil {
+ value.params = params
+ }
+ // Expand slice within preallocated capacity
+ i := len(*value.params)
+ *value.params = (*value.params)[:i+1]
+ val := path[:end]
+ if unescape {
+ if v, err := url.QueryUnescape(val); err == nil {
+ val = v
+ }
+ }
+ (*value.params)[i] = Param{
+ Key: n.path[1:],
+ Value: val,
+ }
+ }
+
+ // we need to go deeper!
+ if end < len(path) {
+ if len(n.children) > 0 {
+ path = path[end:]
+ n = n.children[0]
+ // next node,the latestNode needs to be equal to currentNode and handle next router
+ latestNode = n
+ // not found router in (level 1 router and handle next node),skippedPath cannot execute
+ // example:
+ // * /:cc/cc
+ // call /a/cc expectations:match/200 Actual:match/200
+ // call /a/dd expectations:unmatch/404 Actual: panic
+ // call /addr/dd/aa expectations:unmatch/404 Actual: panic
+ // skippedPath: It can only be executed if the secondary route is not found
+ // matchNum: Go to the next level of routing tree node search,need add matchNum
+ skippedPath = ""
+ matchNum++
+ continue walk
+ }
+
+ // ... but we can't
+ value.tsr = len(path) == end+1
+ return
+ }
+
+ if value.handlers = n.handlers; value.handlers != nil {
+ value.fullPath = n.fullPath
+ return
+ }
+ if len(n.children) == 1 {
+ // No handle found. Check if a handle for this path + a
+ // trailing slash exists for TSR recommendation
+ n = n.children[0]
+ value.tsr = n.path == "/" && n.handlers != nil
+ }
+ return
+
+ case catchAll:
+ // Save param value
+ if params != nil {
+ if value.params == nil {
+ value.params = params
+ }
+ // Expand slice within preallocated capacity
+ i := len(*value.params)
+ *value.params = (*value.params)[:i+1]
+ val := path
+ if unescape {
+ if v, err := url.QueryUnescape(path); err == nil {
+ val = v
+ }
+ }
+ (*value.params)[i] = Param{
+ Key: n.path[2:],
+ Value: val,
+ }
+ }
+
+ value.handlers = n.handlers
+ value.fullPath = n.fullPath
+ return
+
+ default:
+ panic("invalid node type")
+ }
+ }
+ }
+
+ if path == prefix {
+ // level 2 router not found and latestNode.wildChild is true
+ if matchNum < 1 && latestNode.wildChild {
+ n = latestNode.children[len(latestNode.children)-1]
+ }
+ // We should have reached the node containing the handle.
+ // Check if this node has a handle registered.
+ if value.handlers = n.handlers; value.handlers != nil {
+ value.fullPath = n.fullPath
+ return
+ }
+
+ // If there is no handle for this route, but this route has a
+ // wildcard child, there must be a handle for this path with an
+ // additional trailing slash
+ if path == "/" && n.wildChild && n.nType != root {
+ value.tsr = true
+ return
+ }
+
+ // No handle found. Check if a handle for this path + a
+ // trailing slash exists for trailing slash recommendation
+ for i, c := range []byte(n.indices) {
+ if c == '/' {
+ n = n.children[i]
+ value.tsr = (len(n.path) == 1 && n.handlers != nil) ||
+ (n.nType == catchAll && n.children[0].handlers != nil)
+ return
+ }
+ }
+
+ return
+ }
+
+ // path != "/" && skippedPath != ""
+ if len(path) != 1 && len(skippedPath) > 0 && strings.HasSuffix(skippedPath, path) {
+ path = skippedPath
+ n = latestNode
+ skippedPath = ""
+ continue walk
+ }
+
+ // Nothing found. We can recommend to redirect to the same URL with an
+ // extra trailing slash if a leaf exists for that path
+ value.tsr = path == "/" ||
+ (len(prefix) == len(path)+1 && n.handlers != nil)
+ return
+ }
+}
+
+// Makes a case-insensitive lookup of the given path and tries to find a handler.
+// It can optionally also fix trailing slashes.
+// It returns the case-corrected path and a bool indicating whether the lookup
+// was successful.
+func (n *node) findCaseInsensitivePath(path string, fixTrailingSlash bool) ([]byte, bool) {
+ const stackBufSize = 128
+
+ // Use a static sized buffer on the stack in the common case.
+ // If the path is too long, allocate a buffer on the heap instead.
+ buf := make([]byte, 0, stackBufSize)
+ if length := len(path) + 1; length > stackBufSize {
+ buf = make([]byte, 0, length)
+ }
+
+ ciPath := n.findCaseInsensitivePathRec(
+ path,
+ buf, // Preallocate enough memory for new path
+ [4]byte{}, // Empty rune buffer
+ fixTrailingSlash,
+ )
+
+ return ciPath, ciPath != nil
+}
+
+// Shift bytes in array by n bytes left
+func shiftNRuneBytes(rb [4]byte, n int) [4]byte {
+ switch n {
+ case 0:
+ return rb
+ case 1:
+ return [4]byte{rb[1], rb[2], rb[3], 0}
+ case 2:
+ return [4]byte{rb[2], rb[3]}
+ case 3:
+ return [4]byte{rb[3]}
+ default:
+ return [4]byte{}
+ }
+}
+
+// Recursive case-insensitive lookup function used by n.findCaseInsensitivePath
+func (n *node) findCaseInsensitivePathRec(path string, ciPath []byte, rb [4]byte, fixTrailingSlash bool) []byte {
+ npLen := len(n.path)
+
+walk: // Outer loop for walking the tree
+ for len(path) >= npLen && (npLen == 0 || strings.EqualFold(path[1:npLen], n.path[1:])) {
+ // Add common prefix to result
+ oldPath := path
+ path = path[npLen:]
+ ciPath = append(ciPath, n.path...)
+
+ if len(path) == 0 {
+ // We should have reached the node containing the handle.
+ // Check if this node has a handle registered.
+ if n.handlers != nil {
+ return ciPath
+ }
+
+ // No handle found.
+ // Try to fix the path by adding a trailing slash
+ if fixTrailingSlash {
+ for i, c := range []byte(n.indices) {
+ if c == '/' {
+ n = n.children[i]
+ if (len(n.path) == 1 && n.handlers != nil) ||
+ (n.nType == catchAll && n.children[0].handlers != nil) {
+ return append(ciPath, '/')
+ }
+ return nil
+ }
+ }
+ }
+ return nil
+ }
+
+ // If this node does not have a wildcard (param or catchAll) child,
+ // we can just look up the next child node and continue to walk down
+ // the tree
+ if !n.wildChild {
+ // Skip rune bytes already processed
+ rb = shiftNRuneBytes(rb, npLen)
+
+ if rb[0] != 0 {
+ // Old rune not finished
+ idxc := rb[0]
+ for i, c := range []byte(n.indices) {
+ if c == idxc {
+ // continue with child node
+ n = n.children[i]
+ npLen = len(n.path)
+ continue walk
+ }
+ }
+ } else {
+ // Process a new rune
+ var rv rune
+
+ // Find rune start.
+ // Runes are up to 4 byte long,
+ // -4 would definitely be another rune.
+ var off int
+ for max := min(npLen, 3); off < max; off++ {
+ if i := npLen - off; utf8.RuneStart(oldPath[i]) {
+ // read rune from cached path
+ rv, _ = utf8.DecodeRuneInString(oldPath[i:])
+ break
+ }
+ }
+
+ // Calculate lowercase bytes of current rune
+ lo := unicode.ToLower(rv)
+ utf8.EncodeRune(rb[:], lo)
+
+ // Skip already processed bytes
+ rb = shiftNRuneBytes(rb, off)
+
+ idxc := rb[0]
+ for i, c := range []byte(n.indices) {
+ // Lowercase matches
+ if c == idxc {
+ // must use a recursive approach since both the
+ // uppercase byte and the lowercase byte might exist
+ // as an index
+ if out := n.children[i].findCaseInsensitivePathRec(
+ path, ciPath, rb, fixTrailingSlash,
+ ); out != nil {
+ return out
+ }
+ break
+ }
+ }
+
+ // If we found no match, the same for the uppercase rune,
+ // if it differs
+ if up := unicode.ToUpper(rv); up != lo {
+ utf8.EncodeRune(rb[:], up)
+ rb = shiftNRuneBytes(rb, off)
+
+ idxc := rb[0]
+ for i, c := range []byte(n.indices) {
+ // Uppercase matches
+ if c == idxc {
+ // Continue with child node
+ n = n.children[i]
+ npLen = len(n.path)
+ continue walk
+ }
+ }
+ }
+ }
+
+ // Nothing found. We can recommend to redirect to the same URL
+ // without a trailing slash if a leaf exists for that path
+ if fixTrailingSlash && path == "/" && n.handlers != nil {
+ return ciPath
+ }
+ return nil
+ }
+
+ n = n.children[0]
+ switch n.nType {
+ case param:
+ // Find param end (either '/' or path end)
+ end := 0
+ for end < len(path) && path[end] != '/' {
+ end++
+ }
+
+ // Add param value to case insensitive path
+ ciPath = append(ciPath, path[:end]...)
+
+ // We need to go deeper!
+ if end < len(path) {
+ if len(n.children) > 0 {
+ // Continue with child node
+ n = n.children[0]
+ npLen = len(n.path)
+ path = path[end:]
+ continue
+ }
+
+ // ... but we can't
+ if fixTrailingSlash && len(path) == end+1 {
+ return ciPath
+ }
+ return nil
+ }
+
+ if n.handlers != nil {
+ return ciPath
+ }
+
+ if fixTrailingSlash && len(n.children) == 1 {
+ // No handle found. Check if a handle for this path + a
+ // trailing slash exists
+ n = n.children[0]
+ if n.path == "/" && n.handlers != nil {
+ return append(ciPath, '/')
+ }
+ }
+
+ return nil
+
+ case catchAll:
+ return append(ciPath, path...)
+
+ default:
+ panic("invalid node type")
+ }
+ }
+
+ // Nothing found.
+ // Try to fix the path by adding / removing a trailing slash
+ if fixTrailingSlash {
+ if path == "/" {
+ return ciPath
+ }
+ if len(path)+1 == npLen && n.path[len(path)] == '/' &&
+ strings.EqualFold(path[1:], n.path[1:len(path)]) && n.handlers != nil {
+ return append(ciPath, n.path...)
+ }
+ }
+ return nil
+}
diff --git a/vendor/github.com/gin-gonic/gin/utils.go b/vendor/github.com/gin-gonic/gin/utils.go
new file mode 100644
index 000000000..c32f0eeb0
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/utils.go
@@ -0,0 +1,153 @@
+// Copyright 2014 Manu Martinez-Almeida. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+import (
+ "encoding/xml"
+ "net/http"
+ "os"
+ "path"
+ "reflect"
+ "runtime"
+ "strings"
+)
+
+// BindKey indicates a default bind key.
+const BindKey = "_gin-gonic/gin/bindkey"
+
+// Bind is a helper function for given interface object and returns a Gin middleware.
+func Bind(val interface{}) HandlerFunc {
+ value := reflect.ValueOf(val)
+ if value.Kind() == reflect.Ptr {
+ panic(`Bind struct can not be a pointer. Example:
+ Use: gin.Bind(Struct{}) instead of gin.Bind(&Struct{})
+`)
+ }
+ typ := value.Type()
+
+ return func(c *Context) {
+ obj := reflect.New(typ).Interface()
+ if c.Bind(obj) == nil {
+ c.Set(BindKey, obj)
+ }
+ }
+}
+
+// WrapF is a helper function for wrapping http.HandlerFunc and returns a Gin middleware.
+func WrapF(f http.HandlerFunc) HandlerFunc {
+ return func(c *Context) {
+ f(c.Writer, c.Request)
+ }
+}
+
+// WrapH is a helper function for wrapping http.Handler and returns a Gin middleware.
+func WrapH(h http.Handler) HandlerFunc {
+ return func(c *Context) {
+ h.ServeHTTP(c.Writer, c.Request)
+ }
+}
+
+// H is a shortcut for map[string]interface{}
+type H map[string]interface{}
+
+// MarshalXML allows type H to be used with xml.Marshal.
+func (h H) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
+ start.Name = xml.Name{
+ Space: "",
+ Local: "map",
+ }
+ if err := e.EncodeToken(start); err != nil {
+ return err
+ }
+ for key, value := range h {
+ elem := xml.StartElement{
+ Name: xml.Name{Space: "", Local: key},
+ Attr: []xml.Attr{},
+ }
+ if err := e.EncodeElement(value, elem); err != nil {
+ return err
+ }
+ }
+
+ return e.EncodeToken(xml.EndElement{Name: start.Name})
+}
+
+func assert1(guard bool, text string) {
+ if !guard {
+ panic(text)
+ }
+}
+
+func filterFlags(content string) string {
+ for i, char := range content {
+ if char == ' ' || char == ';' {
+ return content[:i]
+ }
+ }
+ return content
+}
+
+func chooseData(custom, wildcard interface{}) interface{} {
+ if custom != nil {
+ return custom
+ }
+ if wildcard != nil {
+ return wildcard
+ }
+ panic("negotiation config is invalid")
+}
+
+func parseAccept(acceptHeader string) []string {
+ parts := strings.Split(acceptHeader, ",")
+ out := make([]string, 0, len(parts))
+ for _, part := range parts {
+ if i := strings.IndexByte(part, ';'); i > 0 {
+ part = part[:i]
+ }
+ if part = strings.TrimSpace(part); part != "" {
+ out = append(out, part)
+ }
+ }
+ return out
+}
+
+func lastChar(str string) uint8 {
+ if str == "" {
+ panic("The length of the string can't be 0")
+ }
+ return str[len(str)-1]
+}
+
+func nameOfFunction(f interface{}) string {
+ return runtime.FuncForPC(reflect.ValueOf(f).Pointer()).Name()
+}
+
+func joinPaths(absolutePath, relativePath string) string {
+ if relativePath == "" {
+ return absolutePath
+ }
+
+ finalPath := path.Join(absolutePath, relativePath)
+ if lastChar(relativePath) == '/' && lastChar(finalPath) != '/' {
+ return finalPath + "/"
+ }
+ return finalPath
+}
+
+func resolveAddress(addr []string) string {
+ switch len(addr) {
+ case 0:
+ if port := os.Getenv("PORT"); port != "" {
+ debugPrint("Environment variable PORT=\"%s\"", port)
+ return ":" + port
+ }
+ debugPrint("Environment variable PORT is undefined. Using port :8080 by default")
+ return ":8080"
+ case 1:
+ return addr[0]
+ default:
+ panic("too many parameters")
+ }
+}
diff --git a/vendor/github.com/gin-gonic/gin/version.go b/vendor/github.com/gin-gonic/gin/version.go
new file mode 100644
index 000000000..a80ab69a8
--- /dev/null
+++ b/vendor/github.com/gin-gonic/gin/version.go
@@ -0,0 +1,8 @@
+// Copyright 2018 Gin Core Team. All rights reserved.
+// Use of this source code is governed by a MIT style
+// license that can be found in the LICENSE file.
+
+package gin
+
+// Version is the current gin framework's version.
+const Version = "v1.7.2"
diff --git a/vendor/github.com/go-errors/errors/.travis.yml b/vendor/github.com/go-errors/errors/.travis.yml
new file mode 100644
index 000000000..fddfc4e3a
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/.travis.yml
@@ -0,0 +1,7 @@
+language: go
+
+go:
+ - "1.8.x"
+ - "1.10.x"
+ - "1.13.x"
+ - "1.14.x"
diff --git a/vendor/github.com/go-errors/errors/LICENSE.MIT b/vendor/github.com/go-errors/errors/LICENSE.MIT
new file mode 100644
index 000000000..c9a5b2eeb
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/LICENSE.MIT
@@ -0,0 +1,7 @@
+Copyright (c) 2015 Conrad Irwin
+
+Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/vendor/github.com/go-errors/errors/README.md b/vendor/github.com/go-errors/errors/README.md
new file mode 100644
index 000000000..d03882f1b
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/README.md
@@ -0,0 +1,80 @@
+go-errors/errors
+================
+
+[![Build Status](https://travis-ci.org/go-errors/errors.svg?branch=master)](https://travis-ci.org/go-errors/errors)
+
+Package errors adds stacktrace support to errors in go.
+
+This is particularly useful when you want to understand the state of execution
+when an error was returned unexpectedly.
+
+It provides the type \*Error which implements the standard golang error
+interface, so you can use this library interchangably with code that is
+expecting a normal error return.
+
+Usage
+-----
+
+Full documentation is available on
+[godoc](https://godoc.org/github.com/go-errors/errors), but here's a simple
+example:
+
+```go
+package crashy
+
+import "github.com/go-errors/errors"
+
+var Crashed = errors.Errorf("oh dear")
+
+func Crash() error {
+ return errors.New(Crashed)
+}
+```
+
+This can be called as follows:
+
+```go
+package main
+
+import (
+ "crashy"
+ "fmt"
+ "github.com/go-errors/errors"
+)
+
+func main() {
+ err := crashy.Crash()
+ if err != nil {
+ if errors.Is(err, crashy.Crashed) {
+ fmt.Println(err.(*errors.Error).ErrorStack())
+ } else {
+ panic(err)
+ }
+ }
+}
+```
+
+Meta-fu
+-------
+
+This package was original written to allow reporting to
+[Bugsnag](https://bugsnag.com/) from
+[bugsnag-go](https://github.com/bugsnag/bugsnag-go), but after I found similar
+packages by Facebook and Dropbox, it was moved to one canonical location so
+everyone can benefit.
+
+This package is licensed under the MIT license, see LICENSE.MIT for details.
+
+
+## Changelog
+* v1.1.0 updated to use go1.13's standard-library errors.Is method instead of == in errors.Is
+* v1.2.0 added `errors.As` from the standard library.
+* v1.3.0 *BREAKING* updated error methods to return `error` instead of `*Error`.
+> Code that needs access to the underlying `*Error` can use the new errors.AsError(e)
+> ```
+> // before
+> errors.New(err).ErrorStack()
+> // after
+>. errors.AsError(errors.Wrap(err)).ErrorStack()
+> ```
+* v1.4.0 *BREAKING* v1.4.0 reverted all changes from v1.3.0 and is identical to v1.2.0
diff --git a/vendor/github.com/go-errors/errors/cover.out b/vendor/github.com/go-errors/errors/cover.out
new file mode 100644
index 000000000..ab18b0519
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/cover.out
@@ -0,0 +1,89 @@
+mode: set
+github.com/go-errors/errors/stackframe.go:27.51,30.25 2 1
+github.com/go-errors/errors/stackframe.go:33.2,38.8 3 1
+github.com/go-errors/errors/stackframe.go:30.25,32.3 1 0
+github.com/go-errors/errors/stackframe.go:43.47,44.31 1 1
+github.com/go-errors/errors/stackframe.go:47.2,47.48 1 1
+github.com/go-errors/errors/stackframe.go:44.31,46.3 1 1
+github.com/go-errors/errors/stackframe.go:52.42,56.16 3 1
+github.com/go-errors/errors/stackframe.go:60.2,60.60 1 1
+github.com/go-errors/errors/stackframe.go:56.16,58.3 1 0
+github.com/go-errors/errors/stackframe.go:64.55,67.16 2 1
+github.com/go-errors/errors/stackframe.go:71.2,72.61 2 1
+github.com/go-errors/errors/stackframe.go:76.2,76.66 1 1
+github.com/go-errors/errors/stackframe.go:67.16,69.3 1 0
+github.com/go-errors/errors/stackframe.go:72.61,74.3 1 0
+github.com/go-errors/errors/stackframe.go:79.56,91.63 3 1
+github.com/go-errors/errors/stackframe.go:95.2,95.53 1 1
+github.com/go-errors/errors/stackframe.go:100.2,101.18 2 1
+github.com/go-errors/errors/stackframe.go:91.63,94.3 2 1
+github.com/go-errors/errors/stackframe.go:95.53,98.3 2 1
+github.com/go-errors/errors/error.go:70.32,73.23 2 1
+github.com/go-errors/errors/error.go:80.2,85.3 3 1
+github.com/go-errors/errors/error.go:74.2,75.10 1 1
+github.com/go-errors/errors/error.go:76.2,77.28 1 1
+github.com/go-errors/errors/error.go:92.43,95.23 2 1
+github.com/go-errors/errors/error.go:104.2,109.3 3 1
+github.com/go-errors/errors/error.go:96.2,97.11 1 1
+github.com/go-errors/errors/error.go:98.2,99.10 1 1
+github.com/go-errors/errors/error.go:100.2,101.28 1 1
+github.com/go-errors/errors/error.go:115.39,117.19 1 1
+github.com/go-errors/errors/error.go:121.2,121.29 1 1
+github.com/go-errors/errors/error.go:125.2,125.43 1 1
+github.com/go-errors/errors/error.go:129.2,129.14 1 1
+github.com/go-errors/errors/error.go:117.19,119.3 1 1
+github.com/go-errors/errors/error.go:121.29,123.3 1 1
+github.com/go-errors/errors/error.go:125.43,127.3 1 1
+github.com/go-errors/errors/error.go:135.53,137.2 1 1
+github.com/go-errors/errors/error.go:140.34,142.2 1 1
+github.com/go-errors/errors/error.go:146.34,149.42 2 1
+github.com/go-errors/errors/error.go:153.2,153.20 1 1
+github.com/go-errors/errors/error.go:149.42,151.3 1 1
+github.com/go-errors/errors/error.go:158.39,160.2 1 1
+github.com/go-errors/errors/error.go:164.46,165.23 1 1
+github.com/go-errors/errors/error.go:173.2,173.19 1 1
+github.com/go-errors/errors/error.go:165.23,168.32 2 1
+github.com/go-errors/errors/error.go:168.32,170.4 1 1
+github.com/go-errors/errors/error.go:177.37,178.42 1 1
+github.com/go-errors/errors/error.go:181.2,181.41 1 1
+github.com/go-errors/errors/error.go:178.42,180.3 1 1
+github.com/go-errors/errors/parse_panic.go:10.39,12.2 1 1
+github.com/go-errors/errors/parse_panic.go:16.46,24.34 5 1
+github.com/go-errors/errors/parse_panic.go:70.2,70.43 1 1
+github.com/go-errors/errors/parse_panic.go:73.2,73.55 1 0
+github.com/go-errors/errors/parse_panic.go:24.34,27.23 2 1
+github.com/go-errors/errors/parse_panic.go:27.23,28.42 1 1
+github.com/go-errors/errors/parse_panic.go:28.42,31.5 2 1
+github.com/go-errors/errors/parse_panic.go:31.6,33.5 1 0
+github.com/go-errors/errors/parse_panic.go:35.5,35.29 1 1
+github.com/go-errors/errors/parse_panic.go:35.29,36.86 1 1
+github.com/go-errors/errors/parse_panic.go:36.86,38.5 1 1
+github.com/go-errors/errors/parse_panic.go:40.5,40.32 1 1
+github.com/go-errors/errors/parse_panic.go:40.32,41.18 1 1
+github.com/go-errors/errors/parse_panic.go:45.4,46.46 2 1
+github.com/go-errors/errors/parse_panic.go:51.4,53.23 2 1
+github.com/go-errors/errors/parse_panic.go:57.4,58.18 2 1
+github.com/go-errors/errors/parse_panic.go:62.4,63.17 2 1
+github.com/go-errors/errors/parse_panic.go:41.18,43.10 2 1
+github.com/go-errors/errors/parse_panic.go:46.46,49.5 2 1
+github.com/go-errors/errors/parse_panic.go:53.23,55.5 1 0
+github.com/go-errors/errors/parse_panic.go:58.18,60.5 1 0
+github.com/go-errors/errors/parse_panic.go:63.17,65.10 2 1
+github.com/go-errors/errors/parse_panic.go:70.43,72.3 1 1
+github.com/go-errors/errors/parse_panic.go:80.85,82.29 2 1
+github.com/go-errors/errors/parse_panic.go:85.2,85.15 1 1
+github.com/go-errors/errors/parse_panic.go:88.2,90.63 2 1
+github.com/go-errors/errors/parse_panic.go:94.2,94.53 1 1
+github.com/go-errors/errors/parse_panic.go:99.2,101.36 2 1
+github.com/go-errors/errors/parse_panic.go:105.2,106.15 2 1
+github.com/go-errors/errors/parse_panic.go:109.2,112.49 3 1
+github.com/go-errors/errors/parse_panic.go:116.2,117.16 2 1
+github.com/go-errors/errors/parse_panic.go:121.2,126.8 1 1
+github.com/go-errors/errors/parse_panic.go:82.29,84.3 1 0
+github.com/go-errors/errors/parse_panic.go:85.15,87.3 1 1
+github.com/go-errors/errors/parse_panic.go:90.63,93.3 2 1
+github.com/go-errors/errors/parse_panic.go:94.53,97.3 2 1
+github.com/go-errors/errors/parse_panic.go:101.36,103.3 1 0
+github.com/go-errors/errors/parse_panic.go:106.15,108.3 1 0
+github.com/go-errors/errors/parse_panic.go:112.49,114.3 1 1
+github.com/go-errors/errors/parse_panic.go:117.16,119.3 1 0
diff --git a/vendor/github.com/go-errors/errors/error.go b/vendor/github.com/go-errors/errors/error.go
new file mode 100644
index 000000000..ccbc2e427
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/error.go
@@ -0,0 +1,209 @@
+// Package errors provides errors that have stack-traces.
+//
+// This is particularly useful when you want to understand the
+// state of execution when an error was returned unexpectedly.
+//
+// It provides the type *Error which implements the standard
+// golang error interface, so you can use this library interchangably
+// with code that is expecting a normal error return.
+//
+// For example:
+//
+// package crashy
+//
+// import "github.com/go-errors/errors"
+//
+// var Crashed = errors.Errorf("oh dear")
+//
+// func Crash() error {
+// return errors.New(Crashed)
+// }
+//
+// This can be called as follows:
+//
+// package main
+//
+// import (
+// "crashy"
+// "fmt"
+// "github.com/go-errors/errors"
+// )
+//
+// func main() {
+// err := crashy.Crash()
+// if err != nil {
+// if errors.Is(err, crashy.Crashed) {
+// fmt.Println(err.(*errors.Error).ErrorStack())
+// } else {
+// panic(err)
+// }
+// }
+// }
+//
+// This package was original written to allow reporting to Bugsnag,
+// but after I found similar packages by Facebook and Dropbox, it
+// was moved to one canonical location so everyone can benefit.
+package errors
+
+import (
+ "bytes"
+ "fmt"
+ "reflect"
+ "runtime"
+)
+
+// The maximum number of stackframes on any error.
+var MaxStackDepth = 50
+
+// Error is an error with an attached stacktrace. It can be used
+// wherever the builtin error interface is expected.
+type Error struct {
+ Err error
+ stack []uintptr
+ frames []StackFrame
+ prefix string
+}
+
+// New makes an Error from the given value. If that value is already an
+// error then it will be used directly, if not, it will be passed to
+// fmt.Errorf("%v"). The stacktrace will point to the line of code that
+// called New.
+func New(e interface{}) *Error {
+ var err error
+
+ switch e := e.(type) {
+ case error:
+ err = e
+ default:
+ err = fmt.Errorf("%v", e)
+ }
+
+ stack := make([]uintptr, MaxStackDepth)
+ length := runtime.Callers(2, stack[:])
+ return &Error{
+ Err: err,
+ stack: stack[:length],
+ }
+}
+
+// Wrap makes an Error from the given value. If that value is already an
+// error then it will be used directly, if not, it will be passed to
+// fmt.Errorf("%v"). The skip parameter indicates how far up the stack
+// to start the stacktrace. 0 is from the current call, 1 from its caller, etc.
+func Wrap(e interface{}, skip int) *Error {
+ if e == nil {
+ return nil
+ }
+
+ var err error
+
+ switch e := e.(type) {
+ case *Error:
+ return e
+ case error:
+ err = e
+ default:
+ err = fmt.Errorf("%v", e)
+ }
+
+ stack := make([]uintptr, MaxStackDepth)
+ length := runtime.Callers(2+skip, stack[:])
+ return &Error{
+ Err: err,
+ stack: stack[:length],
+ }
+}
+
+// WrapPrefix makes an Error from the given value. If that value is already an
+// error then it will be used directly, if not, it will be passed to
+// fmt.Errorf("%v"). The prefix parameter is used to add a prefix to the
+// error message when calling Error(). The skip parameter indicates how far
+// up the stack to start the stacktrace. 0 is from the current call,
+// 1 from its caller, etc.
+func WrapPrefix(e interface{}, prefix string, skip int) *Error {
+ if e == nil {
+ return nil
+ }
+
+ err := Wrap(e, 1+skip)
+
+ if err.prefix != "" {
+ prefix = fmt.Sprintf("%s: %s", prefix, err.prefix)
+ }
+
+ return &Error{
+ Err: err.Err,
+ stack: err.stack,
+ prefix: prefix,
+ }
+
+}
+
+// Errorf creates a new error with the given message. You can use it
+// as a drop-in replacement for fmt.Errorf() to provide descriptive
+// errors in return values.
+func Errorf(format string, a ...interface{}) *Error {
+ return Wrap(fmt.Errorf(format, a...), 1)
+}
+
+// Error returns the underlying error's message.
+func (err *Error) Error() string {
+
+ msg := err.Err.Error()
+ if err.prefix != "" {
+ msg = fmt.Sprintf("%s: %s", err.prefix, msg)
+ }
+
+ return msg
+}
+
+// Stack returns the callstack formatted the same way that go does
+// in runtime/debug.Stack()
+func (err *Error) Stack() []byte {
+ buf := bytes.Buffer{}
+
+ for _, frame := range err.StackFrames() {
+ buf.WriteString(frame.String())
+ }
+
+ return buf.Bytes()
+}
+
+// Callers satisfies the bugsnag ErrorWithCallerS() interface
+// so that the stack can be read out.
+func (err *Error) Callers() []uintptr {
+ return err.stack
+}
+
+// ErrorStack returns a string that contains both the
+// error message and the callstack.
+func (err *Error) ErrorStack() string {
+ return err.TypeName() + " " + err.Error() + "\n" + string(err.Stack())
+}
+
+// StackFrames returns an array of frames containing information about the
+// stack.
+func (err *Error) StackFrames() []StackFrame {
+ if err.frames == nil {
+ err.frames = make([]StackFrame, len(err.stack))
+
+ for i, pc := range err.stack {
+ err.frames[i] = NewStackFrame(pc)
+ }
+ }
+
+ return err.frames
+}
+
+// TypeName returns the type this error. e.g. *errors.stringError.
+func (err *Error) TypeName() string {
+ if _, ok := err.Err.(uncaughtPanic); ok {
+ return "panic"
+ }
+ return reflect.TypeOf(err.Err).String()
+}
+
+// Return the wrapped error (implements api for As function).
+func (err *Error) Unwrap() error {
+ return err.Err
+}
diff --git a/vendor/github.com/go-errors/errors/error_1_13.go b/vendor/github.com/go-errors/errors/error_1_13.go
new file mode 100644
index 000000000..0af2fc806
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/error_1_13.go
@@ -0,0 +1,31 @@
+// +build go1.13
+
+package errors
+
+import (
+ baseErrors "errors"
+)
+
+// find error in any wrapped error
+func As(err error, target interface{}) bool {
+ return baseErrors.As(err, target)
+}
+
+// Is detects whether the error is equal to a given error. Errors
+// are considered equal by this function if they are matched by errors.Is
+// or if their contained errors are matched through errors.Is
+func Is(e error, original error) bool {
+ if baseErrors.Is(e, original) {
+ return true
+ }
+
+ if e, ok := e.(*Error); ok {
+ return Is(e.Err, original)
+ }
+
+ if original, ok := original.(*Error); ok {
+ return Is(e, original.Err)
+ }
+
+ return false
+}
diff --git a/vendor/github.com/go-errors/errors/error_backward.go b/vendor/github.com/go-errors/errors/error_backward.go
new file mode 100644
index 000000000..80b0695e7
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/error_backward.go
@@ -0,0 +1,57 @@
+// +build !go1.13
+
+package errors
+
+import (
+ "reflect"
+)
+
+type unwrapper interface {
+ Unwrap() error
+}
+
+// As assigns error or any wrapped error to the value target points
+// to. If there is no value of the target type of target As returns
+// false.
+func As(err error, target interface{}) bool {
+ targetType := reflect.TypeOf(target)
+
+ for {
+ errType := reflect.TypeOf(err)
+
+ if errType == nil {
+ return false
+ }
+
+ if reflect.PtrTo(errType) == targetType {
+ reflect.ValueOf(target).Elem().Set(reflect.ValueOf(err))
+ return true
+ }
+
+ wrapped, ok := err.(unwrapper)
+ if ok {
+ err = wrapped.Unwrap()
+ } else {
+ return false
+ }
+ }
+}
+
+// Is detects whether the error is equal to a given error. Errors
+// are considered equal by this function if they are the same object,
+// or if they both contain the same error inside an errors.Error.
+func Is(e error, original error) bool {
+ if e == original {
+ return true
+ }
+
+ if e, ok := e.(*Error); ok {
+ return Is(e.Err, original)
+ }
+
+ if original, ok := original.(*Error); ok {
+ return Is(e, original.Err)
+ }
+
+ return false
+}
diff --git a/vendor/github.com/go-errors/errors/go.mod b/vendor/github.com/go-errors/errors/go.mod
new file mode 100644
index 000000000..a70bad1b2
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/go.mod
@@ -0,0 +1,6 @@
+module github.com/go-errors/errors
+
+go 1.14
+
+// Was not API-compatible with earlier or later releases.
+retract v1.3.0
diff --git a/vendor/github.com/go-errors/errors/parse_panic.go b/vendor/github.com/go-errors/errors/parse_panic.go
new file mode 100644
index 000000000..cc37052d7
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/parse_panic.go
@@ -0,0 +1,127 @@
+package errors
+
+import (
+ "strconv"
+ "strings"
+)
+
+type uncaughtPanic struct{ message string }
+
+func (p uncaughtPanic) Error() string {
+ return p.message
+}
+
+// ParsePanic allows you to get an error object from the output of a go program
+// that panicked. This is particularly useful with https://github.com/mitchellh/panicwrap.
+func ParsePanic(text string) (*Error, error) {
+ lines := strings.Split(text, "\n")
+
+ state := "start"
+
+ var message string
+ var stack []StackFrame
+
+ for i := 0; i < len(lines); i++ {
+ line := lines[i]
+
+ if state == "start" {
+ if strings.HasPrefix(line, "panic: ") {
+ message = strings.TrimPrefix(line, "panic: ")
+ state = "seek"
+ } else {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (no prefix): %s", line)
+ }
+
+ } else if state == "seek" {
+ if strings.HasPrefix(line, "goroutine ") && strings.HasSuffix(line, "[running]:") {
+ state = "parsing"
+ }
+
+ } else if state == "parsing" {
+ if line == "" {
+ state = "done"
+ break
+ }
+ createdBy := false
+ if strings.HasPrefix(line, "created by ") {
+ line = strings.TrimPrefix(line, "created by ")
+ createdBy = true
+ }
+
+ i++
+
+ if i >= len(lines) {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (unpaired): %s", line)
+ }
+
+ frame, err := parsePanicFrame(line, lines[i], createdBy)
+ if err != nil {
+ return nil, err
+ }
+
+ stack = append(stack, *frame)
+ if createdBy {
+ state = "done"
+ break
+ }
+ }
+ }
+
+ if state == "done" || state == "parsing" {
+ return &Error{Err: uncaughtPanic{message}, frames: stack}, nil
+ }
+ return nil, Errorf("could not parse panic: %v", text)
+}
+
+// The lines we're passing look like this:
+//
+// main.(*foo).destruct(0xc208067e98)
+// /0/go/src/github.com/bugsnag/bugsnag-go/pan/main.go:22 +0x151
+func parsePanicFrame(name string, line string, createdBy bool) (*StackFrame, error) {
+ idx := strings.LastIndex(name, "(")
+ if idx == -1 && !createdBy {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (no call): %s", name)
+ }
+ if idx != -1 {
+ name = name[:idx]
+ }
+ pkg := ""
+
+ if lastslash := strings.LastIndex(name, "/"); lastslash >= 0 {
+ pkg += name[:lastslash] + "/"
+ name = name[lastslash+1:]
+ }
+ if period := strings.Index(name, "."); period >= 0 {
+ pkg += name[:period]
+ name = name[period+1:]
+ }
+
+ name = strings.Replace(name, "·", ".", -1)
+
+ if !strings.HasPrefix(line, "\t") {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (no tab): %s", line)
+ }
+
+ idx = strings.LastIndex(line, ":")
+ if idx == -1 {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (no line number): %s", line)
+ }
+ file := line[1:idx]
+
+ number := line[idx+1:]
+ if idx = strings.Index(number, " +"); idx > -1 {
+ number = number[:idx]
+ }
+
+ lno, err := strconv.ParseInt(number, 10, 32)
+ if err != nil {
+ return nil, Errorf("bugsnag.panicParser: Invalid line (bad line number): %s", line)
+ }
+
+ return &StackFrame{
+ File: file,
+ LineNumber: int(lno),
+ Package: pkg,
+ Name: name,
+ }, nil
+}
diff --git a/vendor/github.com/go-errors/errors/stackframe.go b/vendor/github.com/go-errors/errors/stackframe.go
new file mode 100644
index 000000000..f420849d2
--- /dev/null
+++ b/vendor/github.com/go-errors/errors/stackframe.go
@@ -0,0 +1,114 @@
+package errors
+
+import (
+ "bufio"
+ "bytes"
+ "fmt"
+ "os"
+ "runtime"
+ "strings"
+)
+
+// A StackFrame contains all necessary information about to generate a line
+// in a callstack.
+type StackFrame struct {
+ // The path to the file containing this ProgramCounter
+ File string
+ // The LineNumber in that file
+ LineNumber int
+ // The Name of the function that contains this ProgramCounter
+ Name string
+ // The Package that contains this function
+ Package string
+ // The underlying ProgramCounter
+ ProgramCounter uintptr
+}
+
+// NewStackFrame popoulates a stack frame object from the program counter.
+func NewStackFrame(pc uintptr) (frame StackFrame) {
+
+ frame = StackFrame{ProgramCounter: pc}
+ if frame.Func() == nil {
+ return
+ }
+ frame.Package, frame.Name = packageAndName(frame.Func())
+
+ // pc -1 because the program counters we use are usually return addresses,
+ // and we want to show the line that corresponds to the function call
+ frame.File, frame.LineNumber = frame.Func().FileLine(pc - 1)
+ return
+
+}
+
+// Func returns the function that contained this frame.
+func (frame *StackFrame) Func() *runtime.Func {
+ if frame.ProgramCounter == 0 {
+ return nil
+ }
+ return runtime.FuncForPC(frame.ProgramCounter)
+}
+
+// String returns the stackframe formatted in the same way as go does
+// in runtime/debug.Stack()
+func (frame *StackFrame) String() string {
+ str := fmt.Sprintf("%s:%d (0x%x)\n", frame.File, frame.LineNumber, frame.ProgramCounter)
+
+ source, err := frame.SourceLine()
+ if err != nil {
+ return str
+ }
+
+ return str + fmt.Sprintf("\t%s: %s\n", frame.Name, source)
+}
+
+// SourceLine gets the line of code (from File and Line) of the original source if possible.
+func (frame *StackFrame) SourceLine() (string, error) {
+ if frame.LineNumber <= 0 {
+ return "???", nil
+ }
+
+ file, err := os.Open(frame.File)
+ if err != nil {
+ return "", New(err)
+ }
+ defer file.Close()
+
+ scanner := bufio.NewScanner(file)
+ currentLine := 1
+ for scanner.Scan() {
+ if currentLine == frame.LineNumber {
+ return string(bytes.Trim(scanner.Bytes(), " \t")), nil
+ }
+ currentLine++
+ }
+ if err := scanner.Err(); err != nil {
+ return "", New(err)
+ }
+
+ return "???", nil
+}
+
+func packageAndName(fn *runtime.Func) (string, string) {
+ name := fn.Name()
+ pkg := ""
+
+ // The name includes the path name to the package, which is unnecessary
+ // since the file name is already included. Plus, it has center dots.
+ // That is, we see
+ // runtime/debug.*T·ptrmethod
+ // and want
+ // *T.ptrmethod
+ // Since the package path might contains dots (e.g. code.google.com/...),
+ // we first remove the path prefix if there is one.
+ if lastslash := strings.LastIndex(name, "/"); lastslash >= 0 {
+ pkg += name[:lastslash] + "/"
+ name = name[lastslash+1:]
+ }
+ if period := strings.Index(name, "."); period >= 0 {
+ pkg += name[:period]
+ name = name[period+1:]
+ }
+
+ name = strings.Replace(name, "·", ".", -1)
+ return pkg, name
+}
diff --git a/vendor/github.com/go-fed/activity/LICENSE b/vendor/github.com/go-fed/activity/LICENSE
new file mode 100644
index 000000000..a9e8aefad
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2018, go-fed
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/vendor/github.com/go-fed/activity/pub/README.md b/vendor/github.com/go-fed/activity/pub/README.md
new file mode 100644
index 000000000..dafe176ea
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/README.md
@@ -0,0 +1,270 @@
+# 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
new file mode 100644
index 000000000..6a1d445af
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/activity.go
@@ -0,0 +1,49 @@
+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
new file mode 100644
index 000000000..c9cac28b4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/actor.go
@@ -0,0 +1,127 @@
+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
new file mode 100644
index 000000000..61192c51b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/base_actor.go
@@ -0,0 +1,494 @@
+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/clock.go b/vendor/github.com/go-fed/activity/pub/clock.go
new file mode 100644
index 000000000..bf19e49f7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/clock.go
@@ -0,0 +1,11 @@
+package pub
+
+import (
+ "time"
+)
+
+// Clock determines the time.
+type Clock interface {
+ // Now returns the current time.
+ Now() time.Time
+}
diff --git a/vendor/github.com/go-fed/activity/pub/common_behavior.go b/vendor/github.com/go-fed/activity/pub/common_behavior.go
new file mode 100644
index 000000000..c4a701560
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/common_behavior.go
@@ -0,0 +1,89 @@
+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
new file mode 100644
index 000000000..0c2024e6b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/database.go
@@ -0,0 +1,139 @@
+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
new file mode 100644
index 000000000..03465abaa
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/delegate_actor.go
@@ -0,0 +1,248 @@
+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/doc.go b/vendor/github.com/go-fed/activity/pub/doc.go
new file mode 100644
index 000000000..93c778179
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/doc.go
@@ -0,0 +1,9 @@
+// Package pub implements the ActivityPub protocol.
+//
+// Note that every time the ActivityStreams types are changed (added, removed)
+// due to code generation, the internal function toASType needs to be modified
+// to know about these types.
+//
+// Note that every version change should also include a change in the version.go
+// file.
+package pub
diff --git a/vendor/github.com/go-fed/activity/pub/federating_protocol.go b/vendor/github.com/go-fed/activity/pub/federating_protocol.go
new file mode 100644
index 000000000..edb22bc03
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/federating_protocol.go
@@ -0,0 +1,124 @@
+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
new file mode 100644
index 000000000..a406acb7a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/federating_wrapped_callbacks.go
@@ -0,0 +1,907 @@
+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
new file mode 100644
index 000000000..e77d02569
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/handlers.go
@@ -0,0 +1,113 @@
+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
new file mode 100644
index 000000000..b40134462
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/property_interfaces.go
@@ -0,0 +1,117 @@
+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
new file mode 100644
index 000000000..c8b5375eb
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/side_effect_actor.go
@@ -0,0 +1,810 @@
+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
new file mode 100644
index 000000000..7b7862c66
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/social_protocol.go
@@ -0,0 +1,82 @@
+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
new file mode 100644
index 000000000..b4b1204e2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/social_wrapped_callbacks.go
@@ -0,0 +1,531 @@
+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/transport.go b/vendor/github.com/go-fed/activity/pub/transport.go
new file mode 100644
index 000000000..bdc58a97a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/transport.go
@@ -0,0 +1,207 @@
+package pub
+
+import (
+ "bytes"
+ "context"
+ "crypto"
+ "fmt"
+ "io/ioutil"
+ "net/http"
+ "net/url"
+ "strings"
+ "sync"
+
+ "github.com/go-fed/httpsig"
+)
+
+const (
+ // acceptHeaderValue is the Accept header value indicating that the
+ // response should contain an ActivityStreams object.
+ acceptHeaderValue = "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\""
+)
+
+// isSuccess returns true if the HTTP status code is either OK, Created, or
+// Accepted.
+func isSuccess(code int) bool {
+ return code == http.StatusOK ||
+ code == http.StatusCreated ||
+ code == http.StatusAccepted
+}
+
+// Transport makes ActivityStreams calls to other servers in order to send or
+// receive ActivityStreams data.
+//
+// It is responsible for setting the appropriate request headers, signing the
+// requests if needed, and facilitating the traffic between this server and
+// another.
+//
+// The transport is exclusively used to issue requests on behalf of an actor,
+// and is never sending requests on behalf of the server in general.
+//
+// It may be reused multiple times, but never concurrently.
+type Transport interface {
+ // Dereference fetches the ActivityStreams object located at this IRI
+ // with a GET request.
+ Dereference(c context.Context, iri *url.URL) ([]byte, error)
+ // Deliver sends an ActivityStreams object.
+ Deliver(c context.Context, b []byte, to *url.URL) error
+ // BatchDeliver sends an ActivityStreams object to multiple recipients.
+ BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error
+}
+
+// Transport must be implemented by HttpSigTransport.
+var _ Transport = &HttpSigTransport{}
+
+// HttpSigTransport makes a dereference call using HTTP signatures to
+// authenticate the request on behalf of a particular actor.
+//
+// No rate limiting is applied.
+//
+// Only one request is tried per call.
+type HttpSigTransport struct {
+ client HttpClient
+ appAgent string
+ gofedAgent string
+ clock Clock
+ getSigner httpsig.Signer
+ getSignerMu *sync.Mutex
+ postSigner httpsig.Signer
+ postSignerMu *sync.Mutex
+ pubKeyId string
+ privKey crypto.PrivateKey
+}
+
+// NewHttpSigTransport returns a new Transport.
+//
+// It sends requests specifically on behalf of a specific actor on this server.
+// The actor's credentials are used to add an HTTP Signature to requests, which
+// requires an actor's private key, a unique identifier for their public key,
+// and an HTTP Signature signing algorithm.
+//
+// The client lets users issue requests through any HTTP client, including the
+// standard library's HTTP client.
+//
+// The appAgent uniquely identifies the calling application's requests, so peers
+// may aid debugging the requests incoming from this server. Note that the
+// agent string will also include one for go-fed, so at minimum peer servers can
+// reach out to the go-fed library to aid in notifying implementors of malformed
+// or unsupported requests.
+func NewHttpSigTransport(
+ client HttpClient,
+ appAgent string,
+ clock Clock,
+ getSigner, postSigner httpsig.Signer,
+ pubKeyId string,
+ privKey crypto.PrivateKey) *HttpSigTransport {
+ return &HttpSigTransport{
+ client: client,
+ appAgent: appAgent,
+ gofedAgent: goFedUserAgent(),
+ clock: clock,
+ getSigner: getSigner,
+ getSignerMu: &sync.Mutex{},
+ postSigner: postSigner,
+ postSignerMu: &sync.Mutex{},
+ pubKeyId: pubKeyId,
+ privKey: privKey,
+ }
+}
+
+// Dereference sends a GET request signed with an HTTP Signature to obtain an
+// ActivityStreams value.
+func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) ([]byte, error) {
+ req, err := http.NewRequest("GET", iri.String(), nil)
+ if err != nil {
+ return nil, err
+ }
+ req = req.WithContext(c)
+ req.Header.Add(acceptHeader, acceptHeaderValue)
+ req.Header.Add("Accept-Charset", "utf-8")
+ req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT")
+ req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent))
+ req.Header.Set("Host", iri.Host)
+ h.getSignerMu.Lock()
+ err = h.getSigner.SignRequest(h.privKey, h.pubKeyId, req, nil)
+ h.getSignerMu.Unlock()
+ if err != nil {
+ return nil, err
+ }
+ resp, err := h.client.Do(req)
+ if err != nil {
+ return nil, err
+ }
+ defer resp.Body.Close()
+ if resp.StatusCode != http.StatusOK {
+ return nil, fmt.Errorf("GET request to %s failed (%d): %s", iri.String(), resp.StatusCode, resp.Status)
+ }
+ return ioutil.ReadAll(resp.Body)
+}
+
+// Deliver sends a POST request with an HTTP Signature.
+func (h HttpSigTransport) Deliver(c context.Context, b []byte, to *url.URL) error {
+ req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b))
+ if err != nil {
+ return err
+ }
+ req = req.WithContext(c)
+ req.Header.Add(contentTypeHeader, contentTypeHeaderValue)
+ req.Header.Add("Accept-Charset", "utf-8")
+ req.Header.Add("Date", h.clock.Now().UTC().Format("Mon, 02 Jan 2006 15:04:05")+" GMT")
+ req.Header.Add("User-Agent", fmt.Sprintf("%s %s", h.appAgent, h.gofedAgent))
+ req.Header.Set("Host", to.Host)
+ h.postSignerMu.Lock()
+ err = h.postSigner.SignRequest(h.privKey, h.pubKeyId, req, b)
+ h.postSignerMu.Unlock()
+ if err != nil {
+ return err
+ }
+ resp, err := h.client.Do(req)
+ if err != nil {
+ return err
+ }
+ defer resp.Body.Close()
+ if !isSuccess(resp.StatusCode) {
+ return fmt.Errorf("POST request to %s failed (%d): %s", to.String(), resp.StatusCode, resp.Status)
+ }
+ return nil
+}
+
+// BatchDeliver sends concurrent POST requests. Returns an error if any of the
+// requests had an error.
+func (h HttpSigTransport) BatchDeliver(c context.Context, b []byte, recipients []*url.URL) error {
+ var wg sync.WaitGroup
+ errCh := make(chan error, len(recipients))
+ for _, recipient := range recipients {
+ wg.Add(1)
+ go func(r *url.URL) {
+ defer wg.Done()
+ if err := h.Deliver(c, b, r); err != nil {
+ errCh <- err
+ }
+ }(recipient)
+ }
+ wg.Wait()
+ errs := make([]string, 0, len(recipients))
+outer:
+ for {
+ select {
+ case e := <-errCh:
+ errs = append(errs, e.Error())
+ default:
+ break outer
+ }
+ }
+ if len(errs) > 0 {
+ return fmt.Errorf("batch deliver had at least one failure: %s", strings.Join(errs, "; "))
+ }
+ return nil
+}
+
+// HttpClient sends http requests, and is an abstraction only needed by the
+// HttpSigTransport. The standard library's Client satisfies this interface.
+type HttpClient interface {
+ Do(req *http.Request) (*http.Response, error)
+}
+
+// HttpClient must be implemented by http.Client.
+var _ HttpClient = &http.Client{}
diff --git a/vendor/github.com/go-fed/activity/pub/util.go b/vendor/github.com/go-fed/activity/pub/util.go
new file mode 100644
index 000000000..942e937dc
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/util.go
@@ -0,0 +1,995 @@
+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/pub/version.go b/vendor/github.com/go-fed/activity/pub/version.go
new file mode 100644
index 000000000..23b958ce5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/pub/version.go
@@ -0,0 +1,15 @@
+package pub
+
+import (
+ "fmt"
+)
+
+const (
+ // Version string, used in the User-Agent
+ version = "v1.0.0"
+)
+
+// goFedUserAgent returns the user agent string for the go-fed library.
+func goFedUserAgent() string {
+ return fmt.Sprintf("(go-fed/activity %s)", version)
+}
diff --git a/vendor/github.com/go-fed/activity/streams/README.md b/vendor/github.com/go-fed/activity/streams/README.md
new file mode 100644
index 000000000..00ae95d85
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/README.md
@@ -0,0 +1,152 @@
+# streams
+
+ActivityStreams vocabularies automatically code-generated with `astool`.
+
+## 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
+```
+
+All generated types and properties are interfaces in
+`github.com/go-fed/streams/vocab`, but note that the constructors and supporting
+functions live in `github.com/go-fed/streams`.
+
+To create a type and set properties:
+
+```golang
+var actorURL *url.URL = // ...
+
+// A new "Create" Activity.
+create := streams.NewActivityStreamsCreate()
+// A new "actor" property.
+actor := streams.NewActivityStreamsActorProperty()
+actor.AppendIRI(actorURL)
+// Set the "actor" property on the "Create" Activity.
+create.SetActivityStreamsActor(actor)
+```
+
+To process properties on a type:
+
+```golang
+// Returns true if the "Update" has at least one "object" with an IRI value.
+func hasObjectWithIRIValue(update vocab.ActivityStreamsUpdate) bool {
+ objectProperty := update.GetActivityStreamsObject()
+ // Any property may be nil if it was either empty in the original JSON or
+ // never set on the golang type.
+ if objectProperty == nil {
+ return false
+ }
+ // The "object" property is non-functional: it could have multiple values. The
+ // generated code has slightly different methods for a functional property
+ // versus a non-functional one.
+ //
+ // While it may be easy to ignore multiple values in other languages
+ // (accidentally or purposefully), go-fed is designed to make it hard to do
+ // so.
+ for iter := objectProperty.Begin(); iter != objectProperty.End(); iter = iter.Next() {
+ // If this particular value is an IRI, return true.
+ if iter.IsIRI() {
+ return true
+ }
+ }
+ // All values are literal embedded values and not IRIs.
+ return false
+}
+```
+
+The ActivityStreams type hierarchy of "extends" and "disjoint" is not the same
+as the Object Oriented definition of inheritance. It is also not the same as
+golang's interface duck-typing. Helper functions are provided to guarantee that
+an application's logic can correctly apply the type hierarchy.
+
+```golang
+thing := // Pick a type from streams.NewActivityStreams()
+if streams.ActivityStreamsObjectIsDisjointWith(thing) {
+ fmt.Printf("The \"Object\" type is Disjoint with the %T type.\n", thing)
+}
+if streams.ActivityStreamsLinkIsExtendedBy(thing) {
+ fmt.Printf("The %T type Extends from the \"Link\" type.\n", thing)
+}
+if streams.ActivityStreamsActivityExtends(thing) {
+ fmt.Printf("The \"Activity\" type extends from the %T type.\n", thing)
+}
+```
+
+When given a generic JSON payload, it can be resolved to a concrete type by
+creating a `streams.JSONResolver` and giving it a callback function that accepts
+the interesting concrete type:
+
+```golang
+// Callbacks must be in the form:
+// func(context.Context, ) error
+createCallback := func(c context.Context, create vocab.ActivityStreamsCreate) error {
+ // Do something with 'create'
+ fmt.Printf("createCallback called: %T\n", create)
+ return nil
+}
+updateCallback := func(c context.Context, update vocab.ActivityStreamsUpdate) error {
+ // Do something with 'update'
+ fmt.Printf("updateCallback called: %T\n", update)
+ return nil
+}
+jsonResolver, err := streams.NewJSONResolver(createCallback, updateCallback)
+if err != nil {
+ // Something in the setup was wrong. For example, a callback has an
+ // unsupported signature and would never be called
+ panic(err)
+}
+// Create a context, which allows you to pass data opaquely through the
+// JSONResolver.
+c := context.Background()
+// Example 15 of the ActivityStreams specification.
+b := []byte(`{
+ "@context": "https://www.w3.org/ns/activitystreams",
+ "summary": "Sally created a note",
+ "type": "Create",
+ "actor": {
+ "type": "Person",
+ "name": "Sally"
+ },
+ "object": {
+ "type": "Note",
+ "name": "A Simple Note",
+ "content": "This is a simple note"
+ }
+}`)
+var jsonMap map[string]interface{}
+if err = json.Unmarshal(b, &jsonMap); err != nil {
+ panic(err)
+}
+// The createCallback function will be called.
+err = jsonResolver.Resolve(c, jsonMap)
+if err != nil && !streams.IsUnmatchedErr(err) {
+ // Something went wrong
+ panic(err)
+} else if streams.IsUnmatchedErr(err) {
+ // Everything went right but the callback didn't match or the ActivityStreams
+ // type is one that wasn't code generated.
+ fmt.Println("No match: ", err)
+}
+```
+
+A `streams.TypeResolver` is similar but uses the golang types instead. It
+accepts the generic `vocab.Type`. This is the abstraction when needing to handle
+any ActivityStreams type. The function `ToType` can convert a JSON-decoded-map
+into this kind of value if needed.
+
+A `streams.PredicatedTypeResolver` lets you apply a boolean predicate function
+that acts as a check whether a callback is allowed to be invoked.
+
+## FAQ
+
+### Why Are Empty Properties Nil And Not Zero-Valued?
+
+Due to implementation design decisions, it would require a lot of plumbing to
+ensure this would work properly. It would also require allocation of a
+non-trivial amount of memory.
diff --git a/vendor/github.com/go-fed/activity/streams/gen_consts.go b/vendor/github.com/go-fed/activity/streams/gen_consts.go
new file mode 100644
index 000000000..5af2c6d3f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_consts.go
@@ -0,0 +1,501 @@
+// 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"
+
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/gen_doc.go
new file mode 100644
index 000000000..40fce7258
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_doc.go
@@ -0,0 +1,51 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package streams contains constructors and functions necessary for applications
+// to serialize, deserialize, and use ActivityStreams types in Go. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is useful to three classes of developers: end-user-application
+// developers, specification writers creating an ActivityStream Extension, and
+// ActivityPub implementors wanting to create an alternate ActivityStreams
+// implementation that still satisfies the interfaces generated by the go-fed
+// tool.
+//
+// Application developers should limit their use to the Resolver type, the
+// constructors beginning with "New", the "Extends" functions, the
+// "DisjointWith" functions, the "ExtendedBy" functions, and any interfaces
+// returned in those functions in this package. This lets applications use
+// Resolvers to Deserialize or Dispatch specific types. The types themselves
+// can Serialize as needed. The "Extends", "DisjointWith", and "ExtendedBy"
+// functions help navigate the ActivityStreams hierarchy since it is not
+// equivalent to object-oriented inheritance.
+//
+// When creating an ActivityStreams extension, developers will want to ensure
+// that the generated code builds correctly and check that the properties,
+// types, extensions, and disjointedness is set up correctly. Writing unit
+// tests with concrete types is then the next step. If the tool has an error
+// generating this code, a fix is needed in the tool as it is likely there is
+// a new RDF type being used in the extension that the tool does not know how
+// to resolve. Thus, most development will focus on the go-fed tool itself.
+//
+// Finally, ActivityStreams implementors that want drop-in replacement while
+// still using the generated interfaces are highly encouraged to examine the
+// Manager type in this package (in addition to the constructors) as these are
+// the locations where concrete types are instantiated. When supplying a
+// different type in these two locations, the other generated code will
+// propagate it throughout the rest of an application. The Manager is
+// instantiated as a singleton at init time in this library. It is then
+// injected into each implementation library so they can deserialize their
+// needed types without relying on the underlying concrete type.
+//
+// Subdirectories of this package include implementation files and functions
+// that are not intended to be directly linked to applications, but are used
+// by this particular package. It is strongly recommended to only use the
+// property interfaces and type interfaces in subdirectories and limiting
+// concrete types to those in this package. The go-fed tool is likely to
+// contain a pruning feature in the future which will analyze an application
+// and eliminate code that would be dead if it were to be generated which
+// reduces the compilation time, compilation resources, and binary size of an
+// application. Such a feature will not be compatible with applications that
+// use the concrete implementation types.
+package streams
diff --git a/vendor/github.com/go-fed/activity/streams/gen_init.go b/vendor/github.com/go-fed/activity/streams/gen_init.go
new file mode 100644
index 000000000..e4ba33cc7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_init.go
@@ -0,0 +1,408 @@
+// 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"
+ 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)
+ 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
new file mode 100644
index 000000000..0c6773d52
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_json_resolver.go
@@ -0,0 +1,978 @@
+// 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
new file mode 100644
index 000000000..aab758b78
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_manager.go
@@ -0,0 +1,2292 @@
+// 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"
+ 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
+ }
+}
+
+// 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
new file mode 100644
index 000000000..d755de119
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_disjoint.go
@@ -0,0 +1,385 @@
+// 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
new file mode 100644
index 000000000..735dc8c5e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extendedby.go
@@ -0,0 +1,439 @@
+// 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
new file mode 100644
index 000000000..381066e63
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_extends.go
@@ -0,0 +1,385 @@
+// 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
new file mode 100644
index 000000000..f748c26e6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_isorextends.go
@@ -0,0 +1,388 @@
+// 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
new file mode 100644
index 000000000..5e6951c41
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_property_constructors.go
@@ -0,0 +1,504 @@
+// 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"
+ 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()
+}
+
+// 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
new file mode 100644
index 000000000..e22d1c16a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_activitystreams_type_constructors.go
@@ -0,0 +1,334 @@
+// 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
new file mode 100644
index 000000000..d6299f7ae
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_disjoint.go
@@ -0,0 +1,49 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
+ typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
+ typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
+ typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
+ typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
+ typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// ForgeFedBranchIsDisjointWith returns true if Branch is disjoint with the
+// other's type.
+func ForgeFedBranchIsDisjointWith(other vocab.Type) bool {
+ return typebranch.BranchIsDisjointWith(other)
+}
+
+// ForgeFedCommitIsDisjointWith returns true if Commit is disjoint with the
+// other's type.
+func ForgeFedCommitIsDisjointWith(other vocab.Type) bool {
+ return typecommit.CommitIsDisjointWith(other)
+}
+
+// ForgeFedPushIsDisjointWith returns true if Push is disjoint with the other's
+// type.
+func ForgeFedPushIsDisjointWith(other vocab.Type) bool {
+ return typepush.PushIsDisjointWith(other)
+}
+
+// ForgeFedRepositoryIsDisjointWith returns true if Repository is disjoint with
+// the other's type.
+func ForgeFedRepositoryIsDisjointWith(other vocab.Type) bool {
+ return typerepository.RepositoryIsDisjointWith(other)
+}
+
+// ForgeFedTicketIsDisjointWith returns true if Ticket is disjoint with the
+// other's type.
+func ForgeFedTicketIsDisjointWith(other vocab.Type) bool {
+ return typeticket.TicketIsDisjointWith(other)
+}
+
+// ForgeFedTicketDependencyIsDisjointWith returns true if TicketDependency is
+// disjoint with the other's type.
+func ForgeFedTicketDependencyIsDisjointWith(other vocab.Type) bool {
+ return typeticketdependency.TicketDependencyIsDisjointWith(other)
+}
diff --git a/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
new file mode 100644
index 000000000..2a70d7ad2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extendedby.go
@@ -0,0 +1,55 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
+ typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
+ typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
+ typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
+ typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
+ typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// ForgeFedBranchIsExtendedBy returns true if the other's type extends from
+// Branch. Note that it returns false if the types are the same; see the
+// "IsOrExtends" variant instead.
+func ForgeFedBranchIsExtendedBy(other vocab.Type) bool {
+ return typebranch.BranchIsExtendedBy(other)
+}
+
+// ForgeFedCommitIsExtendedBy returns true if the other's type extends from
+// Commit. Note that it returns false if the types are the same; see the
+// "IsOrExtends" variant instead.
+func ForgeFedCommitIsExtendedBy(other vocab.Type) bool {
+ return typecommit.CommitIsExtendedBy(other)
+}
+
+// ForgeFedPushIsExtendedBy returns true if the other's type extends from Push.
+// Note that it returns false if the types are the same; see the "IsOrExtends"
+// variant instead.
+func ForgeFedPushIsExtendedBy(other vocab.Type) bool {
+ return typepush.PushIsExtendedBy(other)
+}
+
+// ForgeFedRepositoryIsExtendedBy returns true if the other's type extends from
+// Repository. Note that it returns false if the types are the same; see the
+// "IsOrExtends" variant instead.
+func ForgeFedRepositoryIsExtendedBy(other vocab.Type) bool {
+ return typerepository.RepositoryIsExtendedBy(other)
+}
+
+// ForgeFedTicketIsExtendedBy returns true if the other's type extends from
+// Ticket. Note that it returns false if the types are the same; see the
+// "IsOrExtends" variant instead.
+func ForgeFedTicketIsExtendedBy(other vocab.Type) bool {
+ return typeticket.TicketIsExtendedBy(other)
+}
+
+// ForgeFedTicketDependencyIsExtendedBy returns true if the other's type extends
+// from TicketDependency. Note that it returns false if the types are the
+// same; see the "IsOrExtends" variant instead.
+func ForgeFedTicketDependencyIsExtendedBy(other vocab.Type) bool {
+ return typeticketdependency.TicketDependencyIsExtendedBy(other)
+}
diff --git a/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
new file mode 100644
index 000000000..2118ba375
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_extends.go
@@ -0,0 +1,48 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
+ typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
+ typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
+ typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
+ typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
+ typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// ForgeFedForgeFedBranchExtends returns true if Branch extends from the other's
+// type.
+func ForgeFedForgeFedBranchExtends(other vocab.Type) bool {
+ return typebranch.ForgeFedBranchExtends(other)
+}
+
+// ForgeFedForgeFedCommitExtends returns true if Commit extends from the other's
+// type.
+func ForgeFedForgeFedCommitExtends(other vocab.Type) bool {
+ return typecommit.ForgeFedCommitExtends(other)
+}
+
+// ForgeFedForgeFedPushExtends returns true if Push extends from the other's type.
+func ForgeFedForgeFedPushExtends(other vocab.Type) bool {
+ return typepush.ForgeFedPushExtends(other)
+}
+
+// ForgeFedForgeFedRepositoryExtends returns true if Repository extends from the
+// other's type.
+func ForgeFedForgeFedRepositoryExtends(other vocab.Type) bool {
+ return typerepository.ForgeFedRepositoryExtends(other)
+}
+
+// ForgeFedForgeFedTicketExtends returns true if Ticket extends from the other's
+// type.
+func ForgeFedForgeFedTicketExtends(other vocab.Type) bool {
+ return typeticket.ForgeFedTicketExtends(other)
+}
+
+// ForgeFedForgeFedTicketDependencyExtends returns true if TicketDependency
+// extends from the other's type.
+func ForgeFedForgeFedTicketDependencyExtends(other vocab.Type) bool {
+ return typeticketdependency.ForgeFedTicketDependencyExtends(other)
+}
diff --git a/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
new file mode 100644
index 000000000..96d445505
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_isorextends.go
@@ -0,0 +1,49 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
+ typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
+ typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
+ typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
+ typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
+ typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// IsOrExtendsForgeFedBranch returns true if the other provided type is the Branch
+// type or extends from the Branch type.
+func IsOrExtendsForgeFedBranch(other vocab.Type) bool {
+ return typebranch.IsOrExtendsBranch(other)
+}
+
+// IsOrExtendsForgeFedCommit returns true if the other provided type is the Commit
+// type or extends from the Commit type.
+func IsOrExtendsForgeFedCommit(other vocab.Type) bool {
+ return typecommit.IsOrExtendsCommit(other)
+}
+
+// IsOrExtendsForgeFedPush returns true if the other provided type is the Push
+// type or extends from the Push type.
+func IsOrExtendsForgeFedPush(other vocab.Type) bool {
+ return typepush.IsOrExtendsPush(other)
+}
+
+// IsOrExtendsForgeFedRepository returns true if the other provided type is the
+// Repository type or extends from the Repository type.
+func IsOrExtendsForgeFedRepository(other vocab.Type) bool {
+ return typerepository.IsOrExtendsRepository(other)
+}
+
+// IsOrExtendsForgeFedTicket returns true if the other provided type is the Ticket
+// type or extends from the Ticket type.
+func IsOrExtendsForgeFedTicket(other vocab.Type) bool {
+ return typeticket.IsOrExtendsTicket(other)
+}
+
+// IsOrExtendsForgeFedTicketDependency returns true if the other provided type is
+// the TicketDependency type or extends from the TicketDependency type.
+func IsOrExtendsForgeFedTicketDependency(other vocab.Type) bool {
+ return typeticketdependency.IsOrExtendsTicketDependency(other)
+}
diff --git a/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
new file mode 100644
index 000000000..d8921cbb1
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_property_constructors.go
@@ -0,0 +1,126 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ propertyassignedto "github.com/go-fed/activity/streams/impl/forgefed/property_assignedto"
+ propertycommitted "github.com/go-fed/activity/streams/impl/forgefed/property_committed"
+ propertycommittedby "github.com/go-fed/activity/streams/impl/forgefed/property_committedby"
+ propertydependants "github.com/go-fed/activity/streams/impl/forgefed/property_dependants"
+ propertydependedby "github.com/go-fed/activity/streams/impl/forgefed/property_dependedby"
+ propertydependencies "github.com/go-fed/activity/streams/impl/forgefed/property_dependencies"
+ propertydependson "github.com/go-fed/activity/streams/impl/forgefed/property_dependson"
+ propertydescription "github.com/go-fed/activity/streams/impl/forgefed/property_description"
+ propertyearlyitems "github.com/go-fed/activity/streams/impl/forgefed/property_earlyitems"
+ propertyfilesadded "github.com/go-fed/activity/streams/impl/forgefed/property_filesadded"
+ propertyfilesmodified "github.com/go-fed/activity/streams/impl/forgefed/property_filesmodified"
+ propertyfilesremoved "github.com/go-fed/activity/streams/impl/forgefed/property_filesremoved"
+ propertyforks "github.com/go-fed/activity/streams/impl/forgefed/property_forks"
+ propertyhash "github.com/go-fed/activity/streams/impl/forgefed/property_hash"
+ propertyisresolved "github.com/go-fed/activity/streams/impl/forgefed/property_isresolved"
+ propertyref "github.com/go-fed/activity/streams/impl/forgefed/property_ref"
+ propertyteam "github.com/go-fed/activity/streams/impl/forgefed/property_team"
+ propertyticketstrackedby "github.com/go-fed/activity/streams/impl/forgefed/property_ticketstrackedby"
+ propertytracksticketsfor "github.com/go-fed/activity/streams/impl/forgefed/property_tracksticketsfor"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// NewForgeFedForgeFedAssignedToProperty creates a new ForgeFedAssignedToProperty
+func NewForgeFedAssignedToProperty() vocab.ForgeFedAssignedToProperty {
+ return propertyassignedto.NewForgeFedAssignedToProperty()
+}
+
+// NewForgeFedForgeFedCommittedProperty creates a new ForgeFedCommittedProperty
+func NewForgeFedCommittedProperty() vocab.ForgeFedCommittedProperty {
+ return propertycommitted.NewForgeFedCommittedProperty()
+}
+
+// NewForgeFedForgeFedCommittedByProperty creates a new ForgeFedCommittedByProperty
+func NewForgeFedCommittedByProperty() vocab.ForgeFedCommittedByProperty {
+ return propertycommittedby.NewForgeFedCommittedByProperty()
+}
+
+// NewForgeFedForgeFedDependantsProperty creates a new ForgeFedDependantsProperty
+func NewForgeFedDependantsProperty() vocab.ForgeFedDependantsProperty {
+ return propertydependants.NewForgeFedDependantsProperty()
+}
+
+// NewForgeFedForgeFedDependedByProperty creates a new ForgeFedDependedByProperty
+func NewForgeFedDependedByProperty() vocab.ForgeFedDependedByProperty {
+ return propertydependedby.NewForgeFedDependedByProperty()
+}
+
+// NewForgeFedForgeFedDependenciesProperty creates a new
+// ForgeFedDependenciesProperty
+func NewForgeFedDependenciesProperty() vocab.ForgeFedDependenciesProperty {
+ return propertydependencies.NewForgeFedDependenciesProperty()
+}
+
+// NewForgeFedForgeFedDependsOnProperty creates a new ForgeFedDependsOnProperty
+func NewForgeFedDependsOnProperty() vocab.ForgeFedDependsOnProperty {
+ return propertydependson.NewForgeFedDependsOnProperty()
+}
+
+// NewForgeFedForgeFedDescriptionProperty creates a new ForgeFedDescriptionProperty
+func NewForgeFedDescriptionProperty() vocab.ForgeFedDescriptionProperty {
+ return propertydescription.NewForgeFedDescriptionProperty()
+}
+
+// NewForgeFedForgeFedEarlyItemsProperty creates a new ForgeFedEarlyItemsProperty
+func NewForgeFedEarlyItemsProperty() vocab.ForgeFedEarlyItemsProperty {
+ return propertyearlyitems.NewForgeFedEarlyItemsProperty()
+}
+
+// NewForgeFedForgeFedFilesAddedProperty creates a new ForgeFedFilesAddedProperty
+func NewForgeFedFilesAddedProperty() vocab.ForgeFedFilesAddedProperty {
+ return propertyfilesadded.NewForgeFedFilesAddedProperty()
+}
+
+// NewForgeFedForgeFedFilesModifiedProperty creates a new
+// ForgeFedFilesModifiedProperty
+func NewForgeFedFilesModifiedProperty() vocab.ForgeFedFilesModifiedProperty {
+ return propertyfilesmodified.NewForgeFedFilesModifiedProperty()
+}
+
+// NewForgeFedForgeFedFilesRemovedProperty creates a new
+// ForgeFedFilesRemovedProperty
+func NewForgeFedFilesRemovedProperty() vocab.ForgeFedFilesRemovedProperty {
+ return propertyfilesremoved.NewForgeFedFilesRemovedProperty()
+}
+
+// NewForgeFedForgeFedForksProperty creates a new ForgeFedForksProperty
+func NewForgeFedForksProperty() vocab.ForgeFedForksProperty {
+ return propertyforks.NewForgeFedForksProperty()
+}
+
+// NewForgeFedForgeFedHashProperty creates a new ForgeFedHashProperty
+func NewForgeFedHashProperty() vocab.ForgeFedHashProperty {
+ return propertyhash.NewForgeFedHashProperty()
+}
+
+// NewForgeFedForgeFedIsResolvedProperty creates a new ForgeFedIsResolvedProperty
+func NewForgeFedIsResolvedProperty() vocab.ForgeFedIsResolvedProperty {
+ return propertyisresolved.NewForgeFedIsResolvedProperty()
+}
+
+// NewForgeFedForgeFedRefProperty creates a new ForgeFedRefProperty
+func NewForgeFedRefProperty() vocab.ForgeFedRefProperty {
+ return propertyref.NewForgeFedRefProperty()
+}
+
+// NewForgeFedForgeFedTeamProperty creates a new ForgeFedTeamProperty
+func NewForgeFedTeamProperty() vocab.ForgeFedTeamProperty {
+ return propertyteam.NewForgeFedTeamProperty()
+}
+
+// NewForgeFedForgeFedTicketsTrackedByProperty creates a new
+// ForgeFedTicketsTrackedByProperty
+func NewForgeFedTicketsTrackedByProperty() vocab.ForgeFedTicketsTrackedByProperty {
+ return propertyticketstrackedby.NewForgeFedTicketsTrackedByProperty()
+}
+
+// NewForgeFedForgeFedTracksTicketsForProperty creates a new
+// ForgeFedTracksTicketsForProperty
+func NewForgeFedTracksTicketsForProperty() vocab.ForgeFedTracksTicketsForProperty {
+ return propertytracksticketsfor.NewForgeFedTracksTicketsForProperty()
+}
diff --git a/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
new file mode 100644
index 000000000..78b59500f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_forgefed_type_constructors.go
@@ -0,0 +1,43 @@
+// Code generated by astool. DO NOT EDIT.
+
+package streams
+
+import (
+ typebranch "github.com/go-fed/activity/streams/impl/forgefed/type_branch"
+ typecommit "github.com/go-fed/activity/streams/impl/forgefed/type_commit"
+ typepush "github.com/go-fed/activity/streams/impl/forgefed/type_push"
+ typerepository "github.com/go-fed/activity/streams/impl/forgefed/type_repository"
+ typeticket "github.com/go-fed/activity/streams/impl/forgefed/type_ticket"
+ typeticketdependency "github.com/go-fed/activity/streams/impl/forgefed/type_ticketdependency"
+ vocab "github.com/go-fed/activity/streams/vocab"
+)
+
+// NewForgeFedBranch creates a new ForgeFedBranch
+func NewForgeFedBranch() vocab.ForgeFedBranch {
+ return typebranch.NewForgeFedBranch()
+}
+
+// NewForgeFedCommit creates a new ForgeFedCommit
+func NewForgeFedCommit() vocab.ForgeFedCommit {
+ return typecommit.NewForgeFedCommit()
+}
+
+// NewForgeFedPush creates a new ForgeFedPush
+func NewForgeFedPush() vocab.ForgeFedPush {
+ return typepush.NewForgeFedPush()
+}
+
+// NewForgeFedRepository creates a new ForgeFedRepository
+func NewForgeFedRepository() vocab.ForgeFedRepository {
+ return typerepository.NewForgeFedRepository()
+}
+
+// NewForgeFedTicket creates a new ForgeFedTicket
+func NewForgeFedTicket() vocab.ForgeFedTicket {
+ return typeticket.NewForgeFedTicket()
+}
+
+// NewForgeFedTicketDependency creates a new ForgeFedTicketDependency
+func NewForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
+ return typeticketdependency.NewForgeFedTicketDependency()
+}
diff --git a/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
new file mode 100644
index 000000000..9f9f9d137
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_jsonld_property_constructors.go
@@ -0,0 +1,19 @@
+// 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
new file mode 100644
index 000000000..144f27fa2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_disjoint.go
@@ -0,0 +1,20 @@
+// 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
new file mode 100644
index 000000000..8327ce103
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extendedby.go
@@ -0,0 +1,23 @@
+// 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
new file mode 100644
index 000000000..bef71b49c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_extends.go
@@ -0,0 +1,20 @@
+// 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
new file mode 100644
index 000000000..6890c5987
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_isorextends.go
@@ -0,0 +1,21 @@
+// 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
new file mode 100644
index 000000000..b93c20c76
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_property_constructors.go
@@ -0,0 +1,44 @@
+// 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
new file mode 100644
index 000000000..77ba41c71
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_toot_type_constructors.go
@@ -0,0 +1,19 @@
+// 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
new file mode 100644
index 000000000..c8a34164d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_disjoint.go
@@ -0,0 +1,14 @@
+// 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
new file mode 100644
index 000000000..301544e69
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extendedby.go
@@ -0,0 +1,15 @@
+// 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
new file mode 100644
index 000000000..54d3f6625
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_extends.go
@@ -0,0 +1,14 @@
+// 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
new file mode 100644
index 000000000..028ba96a1
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_isorextends.go
@@ -0,0 +1,14 @@
+// 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
new file mode 100644
index 000000000..e35820921
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_property_constructors.go
@@ -0,0 +1,28 @@
+// 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
new file mode 100644
index 000000000..dbea0dc4e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_pkg_w3idsecurityv1_type_constructors.go
@@ -0,0 +1,13 @@
+// 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
new file mode 100644
index 000000000..30eae3f78
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_resolver_utils.go
@@ -0,0 +1,244 @@
+// 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
new file mode 100644
index 000000000..6199b6ca1
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_type_predicated_resolver.go
@@ -0,0 +1,881 @@
+// 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
new file mode 100644
index 000000000..f834520f0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/gen_type_resolver.go
@@ -0,0 +1,744 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go
new file mode 100644
index 000000000..51987e2ba
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyaccuracy contains the implementation for the accuracy property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyaccuracy
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go
new file mode 100644
index 000000000..5e3d5a700
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyaccuracy
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..9bbe03ade
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_accuracy/gen_property_activitystreams_accuracy.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go
new file mode 100644
index 000000000..6dee21217
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyactor contains the implementation for the actor property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyactor
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
new file mode 100644
index 000000000..85c65198c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..6c5dec70c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_actor/gen_property_activitystreams_actor.go
@@ -0,0 +1,7030 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go
new file mode 100644
index 000000000..373eab307
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyaltitude contains the implementation for the altitude property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyaltitude
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go
new file mode 100644
index 000000000..2bfcb1ceb
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyaltitude
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..06e4e1f0f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_altitude/gen_property_activitystreams_altitude.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go
new file mode 100644
index 000000000..b962ff710
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyanyof contains the implementation for the anyOf property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyanyof
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
new file mode 100644
index 000000000..e2ea4919a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..54f168795
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_anyof/gen_property_activitystreams_anyOf.go
@@ -0,0 +1,7030 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go
new file mode 100644
index 000000000..997e74d36
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyattachment contains the implementation for the attachment
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyattachment
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
new file mode 100644
index 000000000..a9b93f681
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..efe1b3a38
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attachment/gen_property_activitystreams_attachment.go
@@ -0,0 +1,7047 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go
new file mode 100644
index 000000000..08c99c087
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyattributedto contains the implementation for the attributedTo
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyattributedto
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
new file mode 100644
index 000000000..bccd4bde3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..ca378cb9f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_attributedto/gen_property_activitystreams_attributedTo.go
@@ -0,0 +1,7089 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go
new file mode 100644
index 000000000..0c4fc3e39
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyaudience contains the implementation for the audience property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyaudience
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
new file mode 100644
index 000000000..9f7a550a5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..aca72d149
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_audience/gen_property_activitystreams_audience.go
@@ -0,0 +1,7042 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go
new file mode 100644
index 000000000..65292aaae
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertybcc contains the implementation for the bcc property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertybcc
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
new file mode 100644
index 000000000..edc0629b5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..19beec707
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bcc/gen_property_activitystreams_bcc.go
@@ -0,0 +1,7028 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go
new file mode 100644
index 000000000..d2ed4646a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertybto contains the implementation for the bto property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertybto
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
new file mode 100644
index 000000000..151b80b73
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..a3e8b2c2c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_bto/gen_property_activitystreams_bto.go
@@ -0,0 +1,7028 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go
new file mode 100644
index 000000000..59f1c6ce9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertycc contains the implementation for the cc property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertycc
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
new file mode 100644
index 000000000..5671fdfc2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..e4df02fa3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_cc/gen_property_activitystreams_cc.go
@@ -0,0 +1,7028 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go
new file mode 100644
index 000000000..b98a695ac
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyclosed contains the implementation for the closed property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyclosed
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
new file mode 100644
index 000000000..cc4ce57cc
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..ffe820f1b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_closed/gen_property_activitystreams_closed.go
@@ -0,0 +1,7240 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go
new file mode 100644
index 000000000..722a4a72e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertycontent contains the implementation for the content property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertycontent
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go
new file mode 100644
index 000000000..8d2ea1607
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertycontent
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..8e6b624ad
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_content/gen_property_activitystreams_content.go
@@ -0,0 +1,668 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go
new file mode 100644
index 000000000..b3d0a4934
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertycontext contains the implementation for the context property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertycontext
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
new file mode 100644
index 000000000..54bf7c06e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..a173a4699
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_context/gen_property_activitystreams_context.go
@@ -0,0 +1,7042 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go
new file mode 100644
index 000000000..4e598e242
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertycurrent contains the implementation for the current property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertycurrent
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
new file mode 100644
index 000000000..c52916bdf
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..0c9c6001e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_current/gen_property_activitystreams_current.go
@@ -0,0 +1,359 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go
new file mode 100644
index 000000000..e774a6cd5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertydeleted contains the implementation for the deleted property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertydeleted
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go
new file mode 100644
index 000000000..37abebbad
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertydeleted
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..beb3f8ce7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_deleted/gen_property_activitystreams_deleted.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go
new file mode 100644
index 000000000..5787b3500
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertydescribes contains the implementation for the describes
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertydescribes
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
new file mode 100644
index 000000000..553d52a2d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_pkg.go
@@ -0,0 +1,257 @@
+// 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
new file mode 100644
index 000000000..1f66d6c09
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_describes/gen_property_activitystreams_describes.go
@@ -0,0 +1,2932 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go
new file mode 100644
index 000000000..3ebc4df92
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyduration contains the implementation for the duration property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyduration
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go
new file mode 100644
index 000000000..3c6cd3f05
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyduration
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..556d583b3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_duration/gen_property_activitystreams_duration.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go
new file mode 100644
index 000000000..171486c68
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyendtime contains the implementation for the endTime property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyendtime
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go
new file mode 100644
index 000000000..fbe2fc7a3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyendtime
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..9e89dafb8
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_endtime/gen_property_activitystreams_endTime.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go
new file mode 100644
index 000000000..cde426655
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyfirst contains the implementation for the first property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyfirst
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
new file mode 100644
index 000000000..1e738bb60
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..d63164b87
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_first/gen_property_activitystreams_first.go
@@ -0,0 +1,359 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go
new file mode 100644
index 000000000..72d13b9e4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyfollowers contains the implementation for the followers
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyfollowers
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
new file mode 100644
index 000000000..01d7ea18b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..19eb0a6c9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_followers/gen_property_activitystreams_followers.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go
new file mode 100644
index 000000000..b9a9f1d29
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyfollowing contains the implementation for the following
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyfollowing
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
new file mode 100644
index 000000000..632b76f3f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..31a1edfc9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_following/gen_property_activitystreams_following.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go
new file mode 100644
index 000000000..93b382c03
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyformertype contains the implementation for the formerType
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyformertype
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
new file mode 100644
index 000000000..899db00d8
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_pkg.go
@@ -0,0 +1,257 @@
+// 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
new file mode 100644
index 000000000..d4dd9bb70
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_formertype/gen_property_activitystreams_formerType.go
@@ -0,0 +1,6940 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go
new file mode 100644
index 000000000..4142ee42f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertygenerator contains the implementation for the generator
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertygenerator
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
new file mode 100644
index 000000000..b388dfef7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..074ed84d6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_generator/gen_property_activitystreams_generator.go
@@ -0,0 +1,7044 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go
new file mode 100644
index 000000000..c6d74624e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyheight contains the implementation for the height property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyheight
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go
new file mode 100644
index 000000000..c27687c4e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyheight
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..c467bd65a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_height/gen_property_activitystreams_height.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go
new file mode 100644
index 000000000..d9f6aab6e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyhref contains the implementation for the href property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyhref
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go
new file mode 100644
index 000000000..7b6ec2810
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyhref
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..3cd3ad8b2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_href/gen_property_activitystreams_href.go
@@ -0,0 +1,181 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go
new file mode 100644
index 000000000..7c75ed765
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyhreflang contains the implementation for the hreflang property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyhreflang
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go
new file mode 100644
index 000000000..f6cfedd44
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyhreflang
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..a87c7da6b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_hreflang/gen_property_activitystreams_hreflang.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go
new file mode 100644
index 000000000..088b11899
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyicon contains the implementation for the icon property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyicon
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
new file mode 100644
index 000000000..f2cae8533
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_pkg.go
@@ -0,0 +1,30 @@
+// 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
new file mode 100644
index 000000000..7d1b7b868
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_icon/gen_property_activitystreams_icon.go
@@ -0,0 +1,824 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go
new file mode 100644
index 000000000..322c67066
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyimage contains the implementation for the image property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyimage
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
new file mode 100644
index 000000000..7451bcb23
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_pkg.go
@@ -0,0 +1,30 @@
+// 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
new file mode 100644
index 000000000..6c971cc5a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_image/gen_property_activitystreams_image.go
@@ -0,0 +1,824 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go
new file mode 100644
index 000000000..b3f67f050
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyinbox contains the implementation for the inbox property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyinbox
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
new file mode 100644
index 000000000..fd89c2c62
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_pkg.go
@@ -0,0 +1,27 @@
+// 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
new file mode 100644
index 000000000..d93011f27
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inbox/gen_property_activitystreams_inbox.go
@@ -0,0 +1,268 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go
new file mode 100644
index 000000000..b4a0ba151
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyinreplyto contains the implementation for the inReplyTo
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyinreplyto
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
new file mode 100644
index 000000000..28597162f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..02ca1883b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_inreplyto/gen_property_activitystreams_inReplyTo.go
@@ -0,0 +1,7044 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go
new file mode 100644
index 000000000..e8f2992a6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyinstrument contains the implementation for the instrument
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyinstrument
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
new file mode 100644
index 000000000..7db2733ab
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..5ec8a82c6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_instrument/gen_property_activitystreams_instrument.go
@@ -0,0 +1,7047 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go
new file mode 100644
index 000000000..8c35ce49d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyitems contains the implementation for the items property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyitems
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
new file mode 100644
index 000000000..35216bfa9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..bdc6a457c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_items/gen_property_activitystreams_items.go
@@ -0,0 +1,7030 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go
new file mode 100644
index 000000000..90dd7f279
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertylast contains the implementation for the last property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertylast
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
new file mode 100644
index 000000000..34002889d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..b50c32554
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_last/gen_property_activitystreams_last.go
@@ -0,0 +1,359 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go
new file mode 100644
index 000000000..88315b8ad
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertylatitude contains the implementation for the latitude property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertylatitude
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go
new file mode 100644
index 000000000..116607c10
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertylatitude
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..d5dd400b0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_latitude/gen_property_activitystreams_latitude.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go
new file mode 100644
index 000000000..1164385d9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyliked contains the implementation for the liked property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyliked
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
new file mode 100644
index 000000000..f4837d33c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..ea632584f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_liked/gen_property_activitystreams_liked.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go
new file mode 100644
index 000000000..6e04f8efc
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertylikes contains the implementation for the likes property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertylikes
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
new file mode 100644
index 000000000..fa01eb3d0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..6acdadd57
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_likes/gen_property_activitystreams_likes.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go
new file mode 100644
index 000000000..cbc195292
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertylocation contains the implementation for the location property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertylocation
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
new file mode 100644
index 000000000..946433a6d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..1644d8e09
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_location/gen_property_activitystreams_location.go
@@ -0,0 +1,7042 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go
new file mode 100644
index 000000000..71299ec90
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertylongitude contains the implementation for the longitude
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertylongitude
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go
new file mode 100644
index 000000000..4a54b000f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertylongitude
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..b05ffe8af
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_longitude/gen_property_activitystreams_longitude.go
@@ -0,0 +1,203 @@
+// 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_mediatype/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go
new file mode 100644
index 000000000..e212ac5b6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertymediatype contains the implementation for the mediaType
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertymediatype
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go
new file mode 100644
index 000000000..a337f7e57
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertymediatype
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..8c8eefef3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_mediatype/gen_property_activitystreams_mediaType.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go
new file mode 100644
index 000000000..7082b2e8a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyname contains the implementation for the name property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyname
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go
new file mode 100644
index 000000000..cd9cb9f38
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyname
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..69d9cfbce
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_name/gen_property_activitystreams_name.go
@@ -0,0 +1,667 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go
new file mode 100644
index 000000000..e70c87624
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertynext contains the implementation for the next property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertynext
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
new file mode 100644
index 000000000..20e814b77
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..6727d280f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_next/gen_property_activitystreams_next.go
@@ -0,0 +1,359 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go
new file mode 100644
index 000000000..dd66c367a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyobject contains the implementation for the object property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyobject
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
new file mode 100644
index 000000000..d9176c966
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..501ddaabd
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_object/gen_property_activitystreams_object.go
@@ -0,0 +1,7031 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go
new file mode 100644
index 000000000..9867775b4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyoneof contains the implementation for the oneOf property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyoneof
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
new file mode 100644
index 000000000..f0a1b461f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..4561cecd7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_oneof/gen_property_activitystreams_oneOf.go
@@ -0,0 +1,7030 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go
new file mode 100644
index 000000000..4b9d60d52
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyordereditems contains the implementation for the orderedItems
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyordereditems
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
new file mode 100644
index 000000000..6aa80f7f9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..02b9bc8b4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_ordereditems/gen_property_activitystreams_orderedItems.go
@@ -0,0 +1,7089 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go
new file mode 100644
index 000000000..095312aab
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyorigin contains the implementation for the origin property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyorigin
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
new file mode 100644
index 000000000..98eba3a99
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..3d83911d8
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_origin/gen_property_activitystreams_origin.go
@@ -0,0 +1,7031 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go
new file mode 100644
index 000000000..4f15afb01
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyoutbox contains the implementation for the outbox property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyoutbox
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
new file mode 100644
index 000000000..b6905981a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_pkg.go
@@ -0,0 +1,27 @@
+// 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
new file mode 100644
index 000000000..4e8874e8c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_outbox/gen_property_activitystreams_outbox.go
@@ -0,0 +1,268 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go
new file mode 100644
index 000000000..3de84ee32
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertypartof contains the implementation for the partOf property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertypartof
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
new file mode 100644
index 000000000..a7708d3d0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_pkg.go
@@ -0,0 +1,43 @@
+// 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
new file mode 100644
index 000000000..7bee379a9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_partof/gen_property_activitystreams_partOf.go
@@ -0,0 +1,452 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go
new file mode 100644
index 000000000..cf28cee8f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertypreferredusername contains the implementation for the
+// preferredUsername property. All applications are strongly encouraged to use
+// the interface instead of this concrete definition. The interfaces allow
+// applications to consume only the types and properties needed and be
+// independent of the go-fed implementation if another alternative
+// implementation is created. This package is code-generated and subject to
+// the same license as the go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertypreferredusername
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go
new file mode 100644
index 000000000..37a4545ae
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertypreferredusername
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..7053417e1
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preferredusername/gen_property_activitystreams_preferredUsername.go
@@ -0,0 +1,284 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go
new file mode 100644
index 000000000..260c6629a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyprev contains the implementation for the prev property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyprev
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
new file mode 100644
index 000000000..e52b7048c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..cdc28e40f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_prev/gen_property_activitystreams_prev.go
@@ -0,0 +1,359 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go
new file mode 100644
index 000000000..3065a56e0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertypreview contains the implementation for the preview property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertypreview
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
new file mode 100644
index 000000000..270923db5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..c1dcd7672
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_preview/gen_property_activitystreams_preview.go
@@ -0,0 +1,7042 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go
new file mode 100644
index 000000000..59952ab71
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertypublished contains the implementation for the published
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertypublished
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go
new file mode 100644
index 000000000..ca5c51501
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertypublished
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..a1b627c60
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_published/gen_property_activitystreams_published.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go
new file mode 100644
index 000000000..f2fd21088
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyradius contains the implementation for the radius property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyradius
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go
new file mode 100644
index 000000000..582fd0054
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyradius
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..98d7b4884
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_radius/gen_property_activitystreams_radius.go
@@ -0,0 +1,203 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go
new file mode 100644
index 000000000..2982ad469
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyrel contains the implementation for the rel property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyrel
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go
new file mode 100644
index 000000000..1965fcf52
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyrel
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..f102e2358
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_rel/gen_property_activitystreams_rel.go
@@ -0,0 +1,528 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go
new file mode 100644
index 000000000..14be103b2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyrelationship contains the implementation for the relationship
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyrelationship
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
new file mode 100644
index 000000000..4c63d8db2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_pkg.go
@@ -0,0 +1,257 @@
+// 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
new file mode 100644
index 000000000..5dc71e782
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_relationship/gen_property_activitystreams_relationship.go
@@ -0,0 +1,6877 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go
new file mode 100644
index 000000000..6a8451012
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyreplies contains the implementation for the replies property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyreplies
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
new file mode 100644
index 000000000..b87cc931b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..8213e0a49
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_replies/gen_property_activitystreams_replies.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go
new file mode 100644
index 000000000..b40de1b42
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyresult contains the implementation for the result property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyresult
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
new file mode 100644
index 000000000..b7dcf088b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..d2644133d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_result/gen_property_activitystreams_result.go
@@ -0,0 +1,7031 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go
new file mode 100644
index 000000000..339d0b18f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyshares contains the implementation for the shares property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyshares
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
new file mode 100644
index 000000000..5e5c55a03
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..17d6b3b4e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_shares/gen_property_activitystreams_shares.go
@@ -0,0 +1,360 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go
new file mode 100644
index 000000000..689076beb
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertysource contains the implementation for the source property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertysource
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go
new file mode 100644
index 000000000..3ed50bcbe
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_pkg.go
@@ -0,0 +1,265 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertysource
+
+import vocab "github.com/go-fed/activity/streams/vocab"
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface {
+ // DeserializeAcceptActivityStreams returns the deserialization method for
+ // the "ActivityStreamsAccept" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAccept, error)
+ // DeserializeActivityActivityStreams returns the deserialization method
+ // for the "ActivityStreamsActivity" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsActivity, error)
+ // DeserializeAddActivityStreams returns the deserialization method for
+ // the "ActivityStreamsAdd" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAdd, error)
+ // DeserializeAnnounceActivityStreams returns the deserialization method
+ // for the "ActivityStreamsAnnounce" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAnnounce, error)
+ // DeserializeApplicationActivityStreams returns the deserialization
+ // method for the "ActivityStreamsApplication" non-functional property
+ // in the vocabulary "ActivityStreams"
+ DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsApplication, error)
+ // DeserializeArriveActivityStreams returns the deserialization method for
+ // the "ActivityStreamsArrive" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArrive, error)
+ // DeserializeArticleActivityStreams returns the deserialization method
+ // for the "ActivityStreamsArticle" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsArticle, error)
+ // DeserializeAudioActivityStreams returns the deserialization method for
+ // the "ActivityStreamsAudio" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudio, error)
+ // DeserializeBlockActivityStreams returns the deserialization method for
+ // the "ActivityStreamsBlock" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBlock, error)
+ // DeserializeBranchForgeFed returns the deserialization method for the
+ // "ForgeFedBranch" non-functional property in the vocabulary
+ // "ForgeFed"
+ DeserializeBranchForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedBranch, error)
+ // DeserializeCollectionActivityStreams returns the deserialization method
+ // for the "ActivityStreamsCollection" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollection, error)
+ // DeserializeCollectionPageActivityStreams returns the deserialization
+ // method for the "ActivityStreamsCollectionPage" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
+ // DeserializeCommitForgeFed returns the deserialization method for the
+ // "ForgeFedCommit" non-functional property in the vocabulary
+ // "ForgeFed"
+ DeserializeCommitForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedCommit, error)
+ // DeserializeCreateActivityStreams returns the deserialization method for
+ // the "ActivityStreamsCreate" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCreate, error)
+ // DeserializeDeleteActivityStreams returns the deserialization method for
+ // the "ActivityStreamsDelete" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDelete, error)
+ // DeserializeDislikeActivityStreams returns the deserialization method
+ // for the "ActivityStreamsDislike" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDislike, error)
+ // DeserializeDocumentActivityStreams returns the deserialization method
+ // for the "ActivityStreamsDocument" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDocument, error)
+ // DeserializeEmojiToot returns the deserialization method for the
+ // "TootEmoji" non-functional property in the vocabulary "Toot"
+ DeserializeEmojiToot() func(map[string]interface{}, map[string]string) (vocab.TootEmoji, error)
+ // DeserializeEventActivityStreams returns the deserialization method for
+ // the "ActivityStreamsEvent" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEvent, error)
+ // DeserializeFlagActivityStreams returns the deserialization method for
+ // the "ActivityStreamsFlag" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFlag, error)
+ // DeserializeFollowActivityStreams returns the deserialization method for
+ // the "ActivityStreamsFollow" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsFollow, error)
+ // DeserializeGroupActivityStreams returns the deserialization method for
+ // the "ActivityStreamsGroup" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
+ // DeserializeIdentityProofToot returns the deserialization method for the
+ // "TootIdentityProof" non-functional property in the vocabulary "Toot"
+ DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)
+ // DeserializeIgnoreActivityStreams returns the deserialization method for
+ // the "ActivityStreamsIgnore" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIgnore, error)
+ // DeserializeImageActivityStreams returns the deserialization method for
+ // the "ActivityStreamsImage" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImage, error)
+ // DeserializeIntransitiveActivityActivityStreams returns the
+ // deserialization method for the
+ // "ActivityStreamsIntransitiveActivity" non-functional property in
+ // the vocabulary "ActivityStreams"
+ DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIntransitiveActivity, error)
+ // DeserializeInviteActivityStreams returns the deserialization method for
+ // the "ActivityStreamsInvite" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInvite, error)
+ // DeserializeJoinActivityStreams returns the deserialization method for
+ // the "ActivityStreamsJoin" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsJoin, error)
+ // DeserializeLeaveActivityStreams returns the deserialization method for
+ // the "ActivityStreamsLeave" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLeave, error)
+ // DeserializeLikeActivityStreams returns the deserialization method for
+ // the "ActivityStreamsLike" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLike, error)
+ // DeserializeLinkActivityStreams returns the deserialization method for
+ // the "ActivityStreamsLink" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLink, error)
+ // DeserializeListenActivityStreams returns the deserialization method for
+ // the "ActivityStreamsListen" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsListen, error)
+ // DeserializeMentionActivityStreams returns the deserialization method
+ // for the "ActivityStreamsMention" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMention, error)
+ // DeserializeMoveActivityStreams returns the deserialization method for
+ // the "ActivityStreamsMove" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMove, error)
+ // DeserializeNoteActivityStreams returns the deserialization method for
+ // the "ActivityStreamsNote" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNote, error)
+ // DeserializeObjectActivityStreams returns the deserialization method for
+ // the "ActivityStreamsObject" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObject, error)
+ // DeserializeOfferActivityStreams returns the deserialization method for
+ // the "ActivityStreamsOffer" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOffer, error)
+ // DeserializeOrderedCollectionActivityStreams returns the deserialization
+ // method for the "ActivityStreamsOrderedCollection" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollection, error)
+ // DeserializeOrderedCollectionPageActivityStreams returns the
+ // deserialization method for the
+ // "ActivityStreamsOrderedCollectionPage" non-functional property in
+ // the vocabulary "ActivityStreams"
+ DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrderedCollectionPage, error)
+ // DeserializeOrganizationActivityStreams returns the deserialization
+ // method for the "ActivityStreamsOrganization" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsOrganization, error)
+ // DeserializePageActivityStreams returns the deserialization method for
+ // the "ActivityStreamsPage" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPage, error)
+ // DeserializePersonActivityStreams returns the deserialization method for
+ // the "ActivityStreamsPerson" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPerson, error)
+ // DeserializePlaceActivityStreams returns the deserialization method for
+ // the "ActivityStreamsPlace" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPlace, error)
+ // DeserializeProfileActivityStreams returns the deserialization method
+ // for the "ActivityStreamsProfile" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsProfile, error)
+ // DeserializePushForgeFed returns the deserialization method for the
+ // "ForgeFedPush" non-functional property in the vocabulary "ForgeFed"
+ DeserializePushForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedPush, error)
+ // DeserializeQuestionActivityStreams returns the deserialization method
+ // for the "ActivityStreamsQuestion" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsQuestion, error)
+ // DeserializeReadActivityStreams returns the deserialization method for
+ // the "ActivityStreamsRead" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRead, error)
+ // DeserializeRejectActivityStreams returns the deserialization method for
+ // the "ActivityStreamsReject" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsReject, error)
+ // DeserializeRelationshipActivityStreams returns the deserialization
+ // method for the "ActivityStreamsRelationship" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelationship, error)
+ // DeserializeRemoveActivityStreams returns the deserialization method for
+ // the "ActivityStreamsRemove" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRemove, error)
+ // DeserializeRepositoryForgeFed returns the deserialization method for
+ // the "ForgeFedRepository" non-functional property in the vocabulary
+ // "ForgeFed"
+ DeserializeRepositoryForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedRepository, error)
+ // DeserializeServiceActivityStreams returns the deserialization method
+ // for the "ActivityStreamsService" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsService, error)
+ // DeserializeTentativeAcceptActivityStreams returns the deserialization
+ // method for the "ActivityStreamsTentativeAccept" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeAccept, error)
+ // DeserializeTentativeRejectActivityStreams returns the deserialization
+ // method for the "ActivityStreamsTentativeReject" non-functional
+ // property in the vocabulary "ActivityStreams"
+ DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTentativeReject, error)
+ // DeserializeTicketDependencyForgeFed returns the deserialization method
+ // for the "ForgeFedTicketDependency" non-functional property in the
+ // vocabulary "ForgeFed"
+ DeserializeTicketDependencyForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicketDependency, error)
+ // DeserializeTicketForgeFed returns the deserialization method for the
+ // "ForgeFedTicket" non-functional property in the vocabulary
+ // "ForgeFed"
+ DeserializeTicketForgeFed() func(map[string]interface{}, map[string]string) (vocab.ForgeFedTicket, error)
+ // DeserializeTombstoneActivityStreams returns the deserialization method
+ // for the "ActivityStreamsTombstone" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTombstone, error)
+ // DeserializeTravelActivityStreams returns the deserialization method for
+ // the "ActivityStreamsTravel" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTravel, error)
+ // DeserializeUndoActivityStreams returns the deserialization method for
+ // the "ActivityStreamsUndo" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUndo, error)
+ // DeserializeUpdateActivityStreams returns the deserialization method for
+ // the "ActivityStreamsUpdate" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdate, error)
+ // DeserializeVideoActivityStreams returns the deserialization method for
+ // the "ActivityStreamsVideo" non-functional property in the
+ // vocabulary "ActivityStreams"
+ DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsVideo, error)
+ // DeserializeViewActivityStreams returns the deserialization method for
+ // the "ActivityStreamsView" non-functional property in the vocabulary
+ // "ActivityStreams"
+ DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsView, error)
+}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go
new file mode 100644
index 000000000..35acec7c3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_source/gen_property_activitystreams_source.go
@@ -0,0 +1,3024 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertysource
+
+import (
+ "fmt"
+ vocab "github.com/go-fed/activity/streams/vocab"
+ "net/url"
+)
+
+// ActivityStreamsSourceProperty is the functional property "source". It is
+// permitted to be one of multiple value types. At most, one type of value can
+// be present, or none at all. Setting a value will clear the other types of
+// values so that only one of the 'Is' methods will return true. It is
+// possible to clear all values, so that this property is empty.
+type ActivityStreamsSourceProperty struct {
+ activitystreamsObjectMember vocab.ActivityStreamsObject
+ activitystreamsLinkMember vocab.ActivityStreamsLink
+ activitystreamsAcceptMember vocab.ActivityStreamsAccept
+ activitystreamsActivityMember vocab.ActivityStreamsActivity
+ activitystreamsAddMember vocab.ActivityStreamsAdd
+ activitystreamsAnnounceMember vocab.ActivityStreamsAnnounce
+ activitystreamsApplicationMember vocab.ActivityStreamsApplication
+ activitystreamsArriveMember vocab.ActivityStreamsArrive
+ activitystreamsArticleMember vocab.ActivityStreamsArticle
+ activitystreamsAudioMember vocab.ActivityStreamsAudio
+ activitystreamsBlockMember vocab.ActivityStreamsBlock
+ forgefedBranchMember vocab.ForgeFedBranch
+ activitystreamsCollectionMember vocab.ActivityStreamsCollection
+ activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
+ forgefedCommitMember vocab.ForgeFedCommit
+ activitystreamsCreateMember vocab.ActivityStreamsCreate
+ activitystreamsDeleteMember vocab.ActivityStreamsDelete
+ activitystreamsDislikeMember vocab.ActivityStreamsDislike
+ activitystreamsDocumentMember vocab.ActivityStreamsDocument
+ tootEmojiMember vocab.TootEmoji
+ activitystreamsEventMember vocab.ActivityStreamsEvent
+ activitystreamsFlagMember vocab.ActivityStreamsFlag
+ activitystreamsFollowMember vocab.ActivityStreamsFollow
+ activitystreamsGroupMember vocab.ActivityStreamsGroup
+ tootIdentityProofMember vocab.TootIdentityProof
+ activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
+ activitystreamsImageMember vocab.ActivityStreamsImage
+ activitystreamsIntransitiveActivityMember vocab.ActivityStreamsIntransitiveActivity
+ activitystreamsInviteMember vocab.ActivityStreamsInvite
+ activitystreamsJoinMember vocab.ActivityStreamsJoin
+ activitystreamsLeaveMember vocab.ActivityStreamsLeave
+ activitystreamsLikeMember vocab.ActivityStreamsLike
+ activitystreamsListenMember vocab.ActivityStreamsListen
+ activitystreamsMentionMember vocab.ActivityStreamsMention
+ activitystreamsMoveMember vocab.ActivityStreamsMove
+ activitystreamsNoteMember vocab.ActivityStreamsNote
+ activitystreamsOfferMember vocab.ActivityStreamsOffer
+ activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
+ activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
+ activitystreamsOrganizationMember vocab.ActivityStreamsOrganization
+ activitystreamsPageMember vocab.ActivityStreamsPage
+ activitystreamsPersonMember vocab.ActivityStreamsPerson
+ activitystreamsPlaceMember vocab.ActivityStreamsPlace
+ activitystreamsProfileMember vocab.ActivityStreamsProfile
+ forgefedPushMember vocab.ForgeFedPush
+ activitystreamsQuestionMember vocab.ActivityStreamsQuestion
+ activitystreamsReadMember vocab.ActivityStreamsRead
+ activitystreamsRejectMember vocab.ActivityStreamsReject
+ activitystreamsRelationshipMember vocab.ActivityStreamsRelationship
+ activitystreamsRemoveMember vocab.ActivityStreamsRemove
+ forgefedRepositoryMember vocab.ForgeFedRepository
+ activitystreamsServiceMember vocab.ActivityStreamsService
+ activitystreamsTentativeAcceptMember vocab.ActivityStreamsTentativeAccept
+ activitystreamsTentativeRejectMember vocab.ActivityStreamsTentativeReject
+ forgefedTicketMember vocab.ForgeFedTicket
+ forgefedTicketDependencyMember vocab.ForgeFedTicketDependency
+ activitystreamsTombstoneMember vocab.ActivityStreamsTombstone
+ activitystreamsTravelMember vocab.ActivityStreamsTravel
+ activitystreamsUndoMember vocab.ActivityStreamsUndo
+ activitystreamsUpdateMember vocab.ActivityStreamsUpdate
+ activitystreamsVideoMember vocab.ActivityStreamsVideo
+ activitystreamsViewMember vocab.ActivityStreamsView
+ unknown interface{}
+ iri *url.URL
+ alias string
+}
+
+// DeserializeSourceProperty creates a "source" property from an interface
+// representation that has been unmarshalled from a text or binary format.
+func DeserializeSourceProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsSourceProperty, error) {
+ alias := ""
+ if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
+ alias = a
+ }
+ propName := "source"
+ if len(alias) > 0 {
+ // Use alias both to find the property, and set within the property.
+ propName = fmt.Sprintf("%s:%s", alias, "source")
+ }
+ i, ok := m[propName]
+
+ if ok {
+ if s, ok := i.(string); ok {
+ u, err := url.Parse(s)
+ // If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
+ // Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
+ if err == nil && len(u.Scheme) > 0 {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ iri: u,
+ }
+ return this, nil
+ }
+ }
+ if m, ok := i.(map[string]interface{}); ok {
+ if v, err := mgr.DeserializeObjectActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsObjectMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsLinkMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeAcceptActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsAcceptMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeActivityActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsActivityMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeAddActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsAddMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeAnnounceActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsAnnounceMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeApplicationActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsApplicationMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeArriveActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsArriveMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeArticleActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsArticleMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeAudioActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsAudioMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeBlockActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsBlockMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeBranchForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedBranchMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsCollectionMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsCollectionPageMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeCommitForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedCommitMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeCreateActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsCreateMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeDeleteActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsDeleteMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeDislikeActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsDislikeMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeDocumentActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsDocumentMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeEmojiToot()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ tootEmojiMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeEventActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsEventMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeFlagActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsFlagMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeFollowActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsFollowMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeGroupActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsGroupMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ tootIdentityProofMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeIgnoreActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsIgnoreMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsImageMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeIntransitiveActivityActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsIntransitiveActivityMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeInviteActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsInviteMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeJoinActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsJoinMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeLeaveActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsLeaveMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeLikeActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsLikeMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeListenActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsListenMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsMentionMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeMoveActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsMoveMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeNoteActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsNoteMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeOfferActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsOfferMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsOrderedCollectionMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsOrderedCollectionPageMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeOrganizationActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsOrganizationMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializePageActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsPageMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializePersonActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsPersonMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializePlaceActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsPlaceMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeProfileActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsProfileMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializePushForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedPushMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeQuestionActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsQuestionMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeReadActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsReadMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeRejectActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsRejectMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeRelationshipActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsRelationshipMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeRemoveActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsRemoveMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeRepositoryForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedRepositoryMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeServiceActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsServiceMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTentativeAcceptActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsTentativeAcceptMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTentativeRejectActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsTentativeRejectMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTicketForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedTicketMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTicketDependencyForgeFed()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ forgefedTicketDependencyMember: v,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTombstoneActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsTombstoneMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeTravelActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsTravelMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeUndoActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsUndoMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeUpdateActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsUpdateMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeVideoActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsVideoMember: v,
+ alias: alias,
+ }
+ return this, nil
+ } else if v, err := mgr.DeserializeViewActivityStreams()(m, aliasMap); err == nil {
+ this := &ActivityStreamsSourceProperty{
+ activitystreamsViewMember: v,
+ alias: alias,
+ }
+ return this, nil
+ }
+ }
+ this := &ActivityStreamsSourceProperty{
+ alias: alias,
+ unknown: i,
+ }
+ return this, nil
+ }
+ return nil, nil
+}
+
+// NewActivityStreamsSourceProperty creates a new source property.
+func NewActivityStreamsSourceProperty() *ActivityStreamsSourceProperty {
+ return &ActivityStreamsSourceProperty{alias: ""}
+}
+
+// Clear ensures no value of this property is set. Calling HasAny or any of the
+// 'Is' methods afterwards will return false.
+func (this *ActivityStreamsSourceProperty) Clear() {
+ this.activitystreamsObjectMember = nil
+ this.activitystreamsLinkMember = nil
+ this.activitystreamsAcceptMember = nil
+ this.activitystreamsActivityMember = nil
+ this.activitystreamsAddMember = nil
+ this.activitystreamsAnnounceMember = nil
+ this.activitystreamsApplicationMember = nil
+ this.activitystreamsArriveMember = nil
+ this.activitystreamsArticleMember = nil
+ this.activitystreamsAudioMember = nil
+ this.activitystreamsBlockMember = nil
+ this.forgefedBranchMember = nil
+ this.activitystreamsCollectionMember = nil
+ this.activitystreamsCollectionPageMember = nil
+ this.forgefedCommitMember = nil
+ this.activitystreamsCreateMember = nil
+ this.activitystreamsDeleteMember = nil
+ this.activitystreamsDislikeMember = nil
+ this.activitystreamsDocumentMember = nil
+ this.tootEmojiMember = nil
+ this.activitystreamsEventMember = nil
+ this.activitystreamsFlagMember = nil
+ this.activitystreamsFollowMember = nil
+ this.activitystreamsGroupMember = nil
+ this.tootIdentityProofMember = nil
+ this.activitystreamsIgnoreMember = nil
+ this.activitystreamsImageMember = nil
+ this.activitystreamsIntransitiveActivityMember = nil
+ this.activitystreamsInviteMember = nil
+ this.activitystreamsJoinMember = nil
+ this.activitystreamsLeaveMember = nil
+ this.activitystreamsLikeMember = nil
+ this.activitystreamsListenMember = nil
+ this.activitystreamsMentionMember = nil
+ this.activitystreamsMoveMember = nil
+ this.activitystreamsNoteMember = nil
+ this.activitystreamsOfferMember = nil
+ this.activitystreamsOrderedCollectionMember = nil
+ this.activitystreamsOrderedCollectionPageMember = nil
+ this.activitystreamsOrganizationMember = nil
+ this.activitystreamsPageMember = nil
+ this.activitystreamsPersonMember = nil
+ this.activitystreamsPlaceMember = nil
+ this.activitystreamsProfileMember = nil
+ this.forgefedPushMember = nil
+ this.activitystreamsQuestionMember = nil
+ this.activitystreamsReadMember = nil
+ this.activitystreamsRejectMember = nil
+ this.activitystreamsRelationshipMember = nil
+ this.activitystreamsRemoveMember = nil
+ this.forgefedRepositoryMember = nil
+ this.activitystreamsServiceMember = nil
+ this.activitystreamsTentativeAcceptMember = nil
+ this.activitystreamsTentativeRejectMember = nil
+ this.forgefedTicketMember = nil
+ this.forgefedTicketDependencyMember = nil
+ this.activitystreamsTombstoneMember = nil
+ this.activitystreamsTravelMember = nil
+ this.activitystreamsUndoMember = nil
+ this.activitystreamsUpdateMember = nil
+ this.activitystreamsVideoMember = nil
+ this.activitystreamsViewMember = nil
+ this.unknown = nil
+ this.iri = nil
+}
+
+// GetActivityStreamsAccept returns the value of this property. When
+// IsActivityStreamsAccept returns false, GetActivityStreamsAccept will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsAccept() vocab.ActivityStreamsAccept {
+ return this.activitystreamsAcceptMember
+}
+
+// GetActivityStreamsActivity returns the value of this property. When
+// IsActivityStreamsActivity returns false, GetActivityStreamsActivity will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsActivity() vocab.ActivityStreamsActivity {
+ return this.activitystreamsActivityMember
+}
+
+// GetActivityStreamsAdd returns the value of this property. When
+// IsActivityStreamsAdd returns false, GetActivityStreamsAdd will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsAdd() vocab.ActivityStreamsAdd {
+ return this.activitystreamsAddMember
+}
+
+// GetActivityStreamsAnnounce returns the value of this property. When
+// IsActivityStreamsAnnounce returns false, GetActivityStreamsAnnounce will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsAnnounce() vocab.ActivityStreamsAnnounce {
+ return this.activitystreamsAnnounceMember
+}
+
+// GetActivityStreamsApplication returns the value of this property. When
+// IsActivityStreamsApplication returns false, GetActivityStreamsApplication
+// will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsApplication() vocab.ActivityStreamsApplication {
+ return this.activitystreamsApplicationMember
+}
+
+// GetActivityStreamsArrive returns the value of this property. When
+// IsActivityStreamsArrive returns false, GetActivityStreamsArrive will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsArrive() vocab.ActivityStreamsArrive {
+ return this.activitystreamsArriveMember
+}
+
+// GetActivityStreamsArticle returns the value of this property. When
+// IsActivityStreamsArticle returns false, GetActivityStreamsArticle will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsArticle() vocab.ActivityStreamsArticle {
+ return this.activitystreamsArticleMember
+}
+
+// GetActivityStreamsAudio returns the value of this property. When
+// IsActivityStreamsAudio returns false, GetActivityStreamsAudio will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsAudio() vocab.ActivityStreamsAudio {
+ return this.activitystreamsAudioMember
+}
+
+// GetActivityStreamsBlock returns the value of this property. When
+// IsActivityStreamsBlock returns false, GetActivityStreamsBlock will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsBlock() vocab.ActivityStreamsBlock {
+ return this.activitystreamsBlockMember
+}
+
+// GetActivityStreamsCollection returns the value of this property. When
+// IsActivityStreamsCollection returns false, GetActivityStreamsCollection
+// will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsCollection() vocab.ActivityStreamsCollection {
+ return this.activitystreamsCollectionMember
+}
+
+// GetActivityStreamsCollectionPage returns the value of this property. When
+// IsActivityStreamsCollectionPage returns false,
+// GetActivityStreamsCollectionPage will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsCollectionPage() vocab.ActivityStreamsCollectionPage {
+ return this.activitystreamsCollectionPageMember
+}
+
+// GetActivityStreamsCreate returns the value of this property. When
+// IsActivityStreamsCreate returns false, GetActivityStreamsCreate will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsCreate() vocab.ActivityStreamsCreate {
+ return this.activitystreamsCreateMember
+}
+
+// GetActivityStreamsDelete returns the value of this property. When
+// IsActivityStreamsDelete returns false, GetActivityStreamsDelete will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsDelete() vocab.ActivityStreamsDelete {
+ return this.activitystreamsDeleteMember
+}
+
+// GetActivityStreamsDislike returns the value of this property. When
+// IsActivityStreamsDislike returns false, GetActivityStreamsDislike will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsDislike() vocab.ActivityStreamsDislike {
+ return this.activitystreamsDislikeMember
+}
+
+// GetActivityStreamsDocument returns the value of this property. When
+// IsActivityStreamsDocument returns false, GetActivityStreamsDocument will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsDocument() vocab.ActivityStreamsDocument {
+ return this.activitystreamsDocumentMember
+}
+
+// GetActivityStreamsEvent returns the value of this property. When
+// IsActivityStreamsEvent returns false, GetActivityStreamsEvent will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsEvent() vocab.ActivityStreamsEvent {
+ return this.activitystreamsEventMember
+}
+
+// GetActivityStreamsFlag returns the value of this property. When
+// IsActivityStreamsFlag returns false, GetActivityStreamsFlag will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsFlag() vocab.ActivityStreamsFlag {
+ return this.activitystreamsFlagMember
+}
+
+// GetActivityStreamsFollow returns the value of this property. When
+// IsActivityStreamsFollow returns false, GetActivityStreamsFollow will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsFollow() vocab.ActivityStreamsFollow {
+ return this.activitystreamsFollowMember
+}
+
+// GetActivityStreamsGroup returns the value of this property. When
+// IsActivityStreamsGroup returns false, GetActivityStreamsGroup will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsGroup() vocab.ActivityStreamsGroup {
+ return this.activitystreamsGroupMember
+}
+
+// GetActivityStreamsIgnore returns the value of this property. When
+// IsActivityStreamsIgnore returns false, GetActivityStreamsIgnore will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsIgnore() vocab.ActivityStreamsIgnore {
+ return this.activitystreamsIgnoreMember
+}
+
+// GetActivityStreamsImage returns the value of this property. When
+// IsActivityStreamsImage returns false, GetActivityStreamsImage will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsImage() vocab.ActivityStreamsImage {
+ return this.activitystreamsImageMember
+}
+
+// GetActivityStreamsIntransitiveActivity returns the value of this property. When
+// IsActivityStreamsIntransitiveActivity returns false,
+// GetActivityStreamsIntransitiveActivity will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsIntransitiveActivity() vocab.ActivityStreamsIntransitiveActivity {
+ return this.activitystreamsIntransitiveActivityMember
+}
+
+// GetActivityStreamsInvite returns the value of this property. When
+// IsActivityStreamsInvite returns false, GetActivityStreamsInvite will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsInvite() vocab.ActivityStreamsInvite {
+ return this.activitystreamsInviteMember
+}
+
+// GetActivityStreamsJoin returns the value of this property. When
+// IsActivityStreamsJoin returns false, GetActivityStreamsJoin will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsJoin() vocab.ActivityStreamsJoin {
+ return this.activitystreamsJoinMember
+}
+
+// GetActivityStreamsLeave returns the value of this property. When
+// IsActivityStreamsLeave returns false, GetActivityStreamsLeave will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsLeave() vocab.ActivityStreamsLeave {
+ return this.activitystreamsLeaveMember
+}
+
+// GetActivityStreamsLike returns the value of this property. When
+// IsActivityStreamsLike returns false, GetActivityStreamsLike will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsLike() vocab.ActivityStreamsLike {
+ return this.activitystreamsLikeMember
+}
+
+// GetActivityStreamsLink returns the value of this property. When
+// IsActivityStreamsLink returns false, GetActivityStreamsLink will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsLink() vocab.ActivityStreamsLink {
+ return this.activitystreamsLinkMember
+}
+
+// GetActivityStreamsListen returns the value of this property. When
+// IsActivityStreamsListen returns false, GetActivityStreamsListen will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsListen() vocab.ActivityStreamsListen {
+ return this.activitystreamsListenMember
+}
+
+// GetActivityStreamsMention returns the value of this property. When
+// IsActivityStreamsMention returns false, GetActivityStreamsMention will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsMention() vocab.ActivityStreamsMention {
+ return this.activitystreamsMentionMember
+}
+
+// GetActivityStreamsMove returns the value of this property. When
+// IsActivityStreamsMove returns false, GetActivityStreamsMove will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsMove() vocab.ActivityStreamsMove {
+ return this.activitystreamsMoveMember
+}
+
+// GetActivityStreamsNote returns the value of this property. When
+// IsActivityStreamsNote returns false, GetActivityStreamsNote will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsNote() vocab.ActivityStreamsNote {
+ return this.activitystreamsNoteMember
+}
+
+// GetActivityStreamsObject returns the value of this property. When
+// IsActivityStreamsObject returns false, GetActivityStreamsObject will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsObject() vocab.ActivityStreamsObject {
+ return this.activitystreamsObjectMember
+}
+
+// GetActivityStreamsOffer returns the value of this property. When
+// IsActivityStreamsOffer returns false, GetActivityStreamsOffer will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsOffer() vocab.ActivityStreamsOffer {
+ return this.activitystreamsOfferMember
+}
+
+// GetActivityStreamsOrderedCollection returns the value of this property. When
+// IsActivityStreamsOrderedCollection returns false,
+// GetActivityStreamsOrderedCollection will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollection() vocab.ActivityStreamsOrderedCollection {
+ return this.activitystreamsOrderedCollectionMember
+}
+
+// GetActivityStreamsOrderedCollectionPage returns the value of this property.
+// When IsActivityStreamsOrderedCollectionPage returns false,
+// GetActivityStreamsOrderedCollectionPage will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsOrderedCollectionPage() vocab.ActivityStreamsOrderedCollectionPage {
+ return this.activitystreamsOrderedCollectionPageMember
+}
+
+// GetActivityStreamsOrganization returns the value of this property. When
+// IsActivityStreamsOrganization returns false, GetActivityStreamsOrganization
+// will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsOrganization() vocab.ActivityStreamsOrganization {
+ return this.activitystreamsOrganizationMember
+}
+
+// GetActivityStreamsPage returns the value of this property. When
+// IsActivityStreamsPage returns false, GetActivityStreamsPage will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsPage() vocab.ActivityStreamsPage {
+ return this.activitystreamsPageMember
+}
+
+// GetActivityStreamsPerson returns the value of this property. When
+// IsActivityStreamsPerson returns false, GetActivityStreamsPerson will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsPerson() vocab.ActivityStreamsPerson {
+ return this.activitystreamsPersonMember
+}
+
+// GetActivityStreamsPlace returns the value of this property. When
+// IsActivityStreamsPlace returns false, GetActivityStreamsPlace will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsPlace() vocab.ActivityStreamsPlace {
+ return this.activitystreamsPlaceMember
+}
+
+// GetActivityStreamsProfile returns the value of this property. When
+// IsActivityStreamsProfile returns false, GetActivityStreamsProfile will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsProfile() vocab.ActivityStreamsProfile {
+ return this.activitystreamsProfileMember
+}
+
+// GetActivityStreamsQuestion returns the value of this property. When
+// IsActivityStreamsQuestion returns false, GetActivityStreamsQuestion will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsQuestion() vocab.ActivityStreamsQuestion {
+ return this.activitystreamsQuestionMember
+}
+
+// GetActivityStreamsRead returns the value of this property. When
+// IsActivityStreamsRead returns false, GetActivityStreamsRead will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsRead() vocab.ActivityStreamsRead {
+ return this.activitystreamsReadMember
+}
+
+// GetActivityStreamsReject returns the value of this property. When
+// IsActivityStreamsReject returns false, GetActivityStreamsReject will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsReject() vocab.ActivityStreamsReject {
+ return this.activitystreamsRejectMember
+}
+
+// GetActivityStreamsRelationship returns the value of this property. When
+// IsActivityStreamsRelationship returns false, GetActivityStreamsRelationship
+// will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsRelationship() vocab.ActivityStreamsRelationship {
+ return this.activitystreamsRelationshipMember
+}
+
+// GetActivityStreamsRemove returns the value of this property. When
+// IsActivityStreamsRemove returns false, GetActivityStreamsRemove will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsRemove() vocab.ActivityStreamsRemove {
+ return this.activitystreamsRemoveMember
+}
+
+// GetActivityStreamsService returns the value of this property. When
+// IsActivityStreamsService returns false, GetActivityStreamsService will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsService() vocab.ActivityStreamsService {
+ return this.activitystreamsServiceMember
+}
+
+// GetActivityStreamsTentativeAccept returns the value of this property. When
+// IsActivityStreamsTentativeAccept returns false,
+// GetActivityStreamsTentativeAccept will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeAccept() vocab.ActivityStreamsTentativeAccept {
+ return this.activitystreamsTentativeAcceptMember
+}
+
+// GetActivityStreamsTentativeReject returns the value of this property. When
+// IsActivityStreamsTentativeReject returns false,
+// GetActivityStreamsTentativeReject will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsTentativeReject() vocab.ActivityStreamsTentativeReject {
+ return this.activitystreamsTentativeRejectMember
+}
+
+// GetActivityStreamsTombstone returns the value of this property. When
+// IsActivityStreamsTombstone returns false, GetActivityStreamsTombstone will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsTombstone() vocab.ActivityStreamsTombstone {
+ return this.activitystreamsTombstoneMember
+}
+
+// GetActivityStreamsTravel returns the value of this property. When
+// IsActivityStreamsTravel returns false, GetActivityStreamsTravel will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsTravel() vocab.ActivityStreamsTravel {
+ return this.activitystreamsTravelMember
+}
+
+// GetActivityStreamsUndo returns the value of this property. When
+// IsActivityStreamsUndo returns false, GetActivityStreamsUndo will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsUndo() vocab.ActivityStreamsUndo {
+ return this.activitystreamsUndoMember
+}
+
+// GetActivityStreamsUpdate returns the value of this property. When
+// IsActivityStreamsUpdate returns false, GetActivityStreamsUpdate will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsUpdate() vocab.ActivityStreamsUpdate {
+ return this.activitystreamsUpdateMember
+}
+
+// GetActivityStreamsVideo returns the value of this property. When
+// IsActivityStreamsVideo returns false, GetActivityStreamsVideo will return
+// an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsVideo() vocab.ActivityStreamsVideo {
+ return this.activitystreamsVideoMember
+}
+
+// GetActivityStreamsView returns the value of this property. When
+// IsActivityStreamsView returns false, GetActivityStreamsView will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetActivityStreamsView() vocab.ActivityStreamsView {
+ return this.activitystreamsViewMember
+}
+
+// GetForgeFedBranch returns the value of this property. When IsForgeFedBranch
+// returns false, GetForgeFedBranch will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedBranch() vocab.ForgeFedBranch {
+ return this.forgefedBranchMember
+}
+
+// GetForgeFedCommit returns the value of this property. When IsForgeFedCommit
+// returns false, GetForgeFedCommit will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedCommit() vocab.ForgeFedCommit {
+ return this.forgefedCommitMember
+}
+
+// GetForgeFedPush returns the value of this property. When IsForgeFedPush returns
+// false, GetForgeFedPush will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedPush() vocab.ForgeFedPush {
+ return this.forgefedPushMember
+}
+
+// GetForgeFedRepository returns the value of this property. When
+// IsForgeFedRepository returns false, GetForgeFedRepository will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedRepository() vocab.ForgeFedRepository {
+ return this.forgefedRepositoryMember
+}
+
+// GetForgeFedTicket returns the value of this property. When IsForgeFedTicket
+// returns false, GetForgeFedTicket will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedTicket() vocab.ForgeFedTicket {
+ return this.forgefedTicketMember
+}
+
+// GetForgeFedTicketDependency returns the value of this property. When
+// IsForgeFedTicketDependency returns false, GetForgeFedTicketDependency will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetForgeFedTicketDependency() vocab.ForgeFedTicketDependency {
+ return this.forgefedTicketDependencyMember
+}
+
+// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
+// return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetIRI() *url.URL {
+ return this.iri
+}
+
+// GetTootEmoji returns the value of this property. When IsTootEmoji returns
+// false, GetTootEmoji will return an arbitrary value.
+func (this ActivityStreamsSourceProperty) GetTootEmoji() vocab.TootEmoji {
+ return this.tootEmojiMember
+}
+
+// GetTootIdentityProof returns the value of this property. When
+// IsTootIdentityProof returns false, GetTootIdentityProof will return an
+// arbitrary value.
+func (this ActivityStreamsSourceProperty) GetTootIdentityProof() vocab.TootIdentityProof {
+ return this.tootIdentityProofMember
+}
+
+// GetType returns the value in this property as a Type. Returns nil if the value
+// is not an ActivityStreams type, such as an IRI or another value.
+func (this ActivityStreamsSourceProperty) GetType() vocab.Type {
+ if this.IsActivityStreamsObject() {
+ return this.GetActivityStreamsObject()
+ }
+ if this.IsActivityStreamsLink() {
+ return this.GetActivityStreamsLink()
+ }
+ if this.IsActivityStreamsAccept() {
+ return this.GetActivityStreamsAccept()
+ }
+ if this.IsActivityStreamsActivity() {
+ return this.GetActivityStreamsActivity()
+ }
+ if this.IsActivityStreamsAdd() {
+ return this.GetActivityStreamsAdd()
+ }
+ if this.IsActivityStreamsAnnounce() {
+ return this.GetActivityStreamsAnnounce()
+ }
+ if this.IsActivityStreamsApplication() {
+ return this.GetActivityStreamsApplication()
+ }
+ if this.IsActivityStreamsArrive() {
+ return this.GetActivityStreamsArrive()
+ }
+ if this.IsActivityStreamsArticle() {
+ return this.GetActivityStreamsArticle()
+ }
+ if this.IsActivityStreamsAudio() {
+ return this.GetActivityStreamsAudio()
+ }
+ if this.IsActivityStreamsBlock() {
+ return this.GetActivityStreamsBlock()
+ }
+ if this.IsForgeFedBranch() {
+ return this.GetForgeFedBranch()
+ }
+ if this.IsActivityStreamsCollection() {
+ return this.GetActivityStreamsCollection()
+ }
+ if this.IsActivityStreamsCollectionPage() {
+ return this.GetActivityStreamsCollectionPage()
+ }
+ if this.IsForgeFedCommit() {
+ return this.GetForgeFedCommit()
+ }
+ if this.IsActivityStreamsCreate() {
+ return this.GetActivityStreamsCreate()
+ }
+ if this.IsActivityStreamsDelete() {
+ return this.GetActivityStreamsDelete()
+ }
+ if this.IsActivityStreamsDislike() {
+ return this.GetActivityStreamsDislike()
+ }
+ if this.IsActivityStreamsDocument() {
+ return this.GetActivityStreamsDocument()
+ }
+ if this.IsTootEmoji() {
+ return this.GetTootEmoji()
+ }
+ if this.IsActivityStreamsEvent() {
+ return this.GetActivityStreamsEvent()
+ }
+ if this.IsActivityStreamsFlag() {
+ return this.GetActivityStreamsFlag()
+ }
+ if this.IsActivityStreamsFollow() {
+ return this.GetActivityStreamsFollow()
+ }
+ if this.IsActivityStreamsGroup() {
+ return this.GetActivityStreamsGroup()
+ }
+ if this.IsTootIdentityProof() {
+ return this.GetTootIdentityProof()
+ }
+ if this.IsActivityStreamsIgnore() {
+ return this.GetActivityStreamsIgnore()
+ }
+ if this.IsActivityStreamsImage() {
+ return this.GetActivityStreamsImage()
+ }
+ if this.IsActivityStreamsIntransitiveActivity() {
+ return this.GetActivityStreamsIntransitiveActivity()
+ }
+ if this.IsActivityStreamsInvite() {
+ return this.GetActivityStreamsInvite()
+ }
+ if this.IsActivityStreamsJoin() {
+ return this.GetActivityStreamsJoin()
+ }
+ if this.IsActivityStreamsLeave() {
+ return this.GetActivityStreamsLeave()
+ }
+ if this.IsActivityStreamsLike() {
+ return this.GetActivityStreamsLike()
+ }
+ if this.IsActivityStreamsListen() {
+ return this.GetActivityStreamsListen()
+ }
+ if this.IsActivityStreamsMention() {
+ return this.GetActivityStreamsMention()
+ }
+ if this.IsActivityStreamsMove() {
+ return this.GetActivityStreamsMove()
+ }
+ if this.IsActivityStreamsNote() {
+ return this.GetActivityStreamsNote()
+ }
+ if this.IsActivityStreamsOffer() {
+ return this.GetActivityStreamsOffer()
+ }
+ if this.IsActivityStreamsOrderedCollection() {
+ return this.GetActivityStreamsOrderedCollection()
+ }
+ if this.IsActivityStreamsOrderedCollectionPage() {
+ return this.GetActivityStreamsOrderedCollectionPage()
+ }
+ if this.IsActivityStreamsOrganization() {
+ return this.GetActivityStreamsOrganization()
+ }
+ if this.IsActivityStreamsPage() {
+ return this.GetActivityStreamsPage()
+ }
+ if this.IsActivityStreamsPerson() {
+ return this.GetActivityStreamsPerson()
+ }
+ if this.IsActivityStreamsPlace() {
+ return this.GetActivityStreamsPlace()
+ }
+ if this.IsActivityStreamsProfile() {
+ return this.GetActivityStreamsProfile()
+ }
+ if this.IsForgeFedPush() {
+ return this.GetForgeFedPush()
+ }
+ if this.IsActivityStreamsQuestion() {
+ return this.GetActivityStreamsQuestion()
+ }
+ if this.IsActivityStreamsRead() {
+ return this.GetActivityStreamsRead()
+ }
+ if this.IsActivityStreamsReject() {
+ return this.GetActivityStreamsReject()
+ }
+ if this.IsActivityStreamsRelationship() {
+ return this.GetActivityStreamsRelationship()
+ }
+ if this.IsActivityStreamsRemove() {
+ return this.GetActivityStreamsRemove()
+ }
+ if this.IsForgeFedRepository() {
+ return this.GetForgeFedRepository()
+ }
+ if this.IsActivityStreamsService() {
+ return this.GetActivityStreamsService()
+ }
+ if this.IsActivityStreamsTentativeAccept() {
+ return this.GetActivityStreamsTentativeAccept()
+ }
+ if this.IsActivityStreamsTentativeReject() {
+ return this.GetActivityStreamsTentativeReject()
+ }
+ if this.IsForgeFedTicket() {
+ return this.GetForgeFedTicket()
+ }
+ if this.IsForgeFedTicketDependency() {
+ return this.GetForgeFedTicketDependency()
+ }
+ if this.IsActivityStreamsTombstone() {
+ return this.GetActivityStreamsTombstone()
+ }
+ if this.IsActivityStreamsTravel() {
+ return this.GetActivityStreamsTravel()
+ }
+ if this.IsActivityStreamsUndo() {
+ return this.GetActivityStreamsUndo()
+ }
+ if this.IsActivityStreamsUpdate() {
+ return this.GetActivityStreamsUpdate()
+ }
+ if this.IsActivityStreamsVideo() {
+ return this.GetActivityStreamsVideo()
+ }
+ if this.IsActivityStreamsView() {
+ return this.GetActivityStreamsView()
+ }
+
+ return nil
+}
+
+// HasAny returns true if any of the different values is set.
+func (this ActivityStreamsSourceProperty) HasAny() bool {
+ return this.IsActivityStreamsObject() ||
+ this.IsActivityStreamsLink() ||
+ this.IsActivityStreamsAccept() ||
+ this.IsActivityStreamsActivity() ||
+ this.IsActivityStreamsAdd() ||
+ this.IsActivityStreamsAnnounce() ||
+ this.IsActivityStreamsApplication() ||
+ this.IsActivityStreamsArrive() ||
+ this.IsActivityStreamsArticle() ||
+ this.IsActivityStreamsAudio() ||
+ this.IsActivityStreamsBlock() ||
+ this.IsForgeFedBranch() ||
+ this.IsActivityStreamsCollection() ||
+ this.IsActivityStreamsCollectionPage() ||
+ this.IsForgeFedCommit() ||
+ this.IsActivityStreamsCreate() ||
+ this.IsActivityStreamsDelete() ||
+ this.IsActivityStreamsDislike() ||
+ this.IsActivityStreamsDocument() ||
+ this.IsTootEmoji() ||
+ this.IsActivityStreamsEvent() ||
+ this.IsActivityStreamsFlag() ||
+ this.IsActivityStreamsFollow() ||
+ this.IsActivityStreamsGroup() ||
+ this.IsTootIdentityProof() ||
+ this.IsActivityStreamsIgnore() ||
+ this.IsActivityStreamsImage() ||
+ this.IsActivityStreamsIntransitiveActivity() ||
+ this.IsActivityStreamsInvite() ||
+ this.IsActivityStreamsJoin() ||
+ this.IsActivityStreamsLeave() ||
+ this.IsActivityStreamsLike() ||
+ this.IsActivityStreamsListen() ||
+ this.IsActivityStreamsMention() ||
+ this.IsActivityStreamsMove() ||
+ this.IsActivityStreamsNote() ||
+ this.IsActivityStreamsOffer() ||
+ this.IsActivityStreamsOrderedCollection() ||
+ this.IsActivityStreamsOrderedCollectionPage() ||
+ this.IsActivityStreamsOrganization() ||
+ this.IsActivityStreamsPage() ||
+ this.IsActivityStreamsPerson() ||
+ this.IsActivityStreamsPlace() ||
+ this.IsActivityStreamsProfile() ||
+ this.IsForgeFedPush() ||
+ this.IsActivityStreamsQuestion() ||
+ this.IsActivityStreamsRead() ||
+ this.IsActivityStreamsReject() ||
+ this.IsActivityStreamsRelationship() ||
+ this.IsActivityStreamsRemove() ||
+ this.IsForgeFedRepository() ||
+ this.IsActivityStreamsService() ||
+ this.IsActivityStreamsTentativeAccept() ||
+ this.IsActivityStreamsTentativeReject() ||
+ this.IsForgeFedTicket() ||
+ this.IsForgeFedTicketDependency() ||
+ this.IsActivityStreamsTombstone() ||
+ this.IsActivityStreamsTravel() ||
+ this.IsActivityStreamsUndo() ||
+ this.IsActivityStreamsUpdate() ||
+ this.IsActivityStreamsVideo() ||
+ this.IsActivityStreamsView() ||
+ this.iri != nil
+}
+
+// IsActivityStreamsAccept returns true if this property has a type of "Accept".
+// When true, use the GetActivityStreamsAccept and SetActivityStreamsAccept
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsAccept() bool {
+ return this.activitystreamsAcceptMember != nil
+}
+
+// IsActivityStreamsActivity returns true if this property has a type of
+// "Activity". When true, use the GetActivityStreamsActivity and
+// SetActivityStreamsActivity methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsActivity() bool {
+ return this.activitystreamsActivityMember != nil
+}
+
+// IsActivityStreamsAdd returns true if this property has a type of "Add". When
+// true, use the GetActivityStreamsAdd and SetActivityStreamsAdd methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsAdd() bool {
+ return this.activitystreamsAddMember != nil
+}
+
+// IsActivityStreamsAnnounce returns true if this property has a type of
+// "Announce". When true, use the GetActivityStreamsAnnounce and
+// SetActivityStreamsAnnounce methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsAnnounce() bool {
+ return this.activitystreamsAnnounceMember != nil
+}
+
+// IsActivityStreamsApplication returns true if this property has a type of
+// "Application". When true, use the GetActivityStreamsApplication and
+// SetActivityStreamsApplication methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsApplication() bool {
+ return this.activitystreamsApplicationMember != nil
+}
+
+// IsActivityStreamsArrive returns true if this property has a type of "Arrive".
+// When true, use the GetActivityStreamsArrive and SetActivityStreamsArrive
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsArrive() bool {
+ return this.activitystreamsArriveMember != nil
+}
+
+// IsActivityStreamsArticle returns true if this property has a type of "Article".
+// When true, use the GetActivityStreamsArticle and SetActivityStreamsArticle
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsArticle() bool {
+ return this.activitystreamsArticleMember != nil
+}
+
+// IsActivityStreamsAudio returns true if this property has a type of "Audio".
+// When true, use the GetActivityStreamsAudio and SetActivityStreamsAudio
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsAudio() bool {
+ return this.activitystreamsAudioMember != nil
+}
+
+// IsActivityStreamsBlock returns true if this property has a type of "Block".
+// When true, use the GetActivityStreamsBlock and SetActivityStreamsBlock
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsBlock() bool {
+ return this.activitystreamsBlockMember != nil
+}
+
+// IsActivityStreamsCollection returns true if this property has a type of
+// "Collection". When true, use the GetActivityStreamsCollection and
+// SetActivityStreamsCollection methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsCollection() bool {
+ return this.activitystreamsCollectionMember != nil
+}
+
+// IsActivityStreamsCollectionPage returns true if this property has a type of
+// "CollectionPage". When true, use the GetActivityStreamsCollectionPage and
+// SetActivityStreamsCollectionPage methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsCollectionPage() bool {
+ return this.activitystreamsCollectionPageMember != nil
+}
+
+// IsActivityStreamsCreate returns true if this property has a type of "Create".
+// When true, use the GetActivityStreamsCreate and SetActivityStreamsCreate
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsCreate() bool {
+ return this.activitystreamsCreateMember != nil
+}
+
+// IsActivityStreamsDelete returns true if this property has a type of "Delete".
+// When true, use the GetActivityStreamsDelete and SetActivityStreamsDelete
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsDelete() bool {
+ return this.activitystreamsDeleteMember != nil
+}
+
+// IsActivityStreamsDislike returns true if this property has a type of "Dislike".
+// When true, use the GetActivityStreamsDislike and SetActivityStreamsDislike
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsDislike() bool {
+ return this.activitystreamsDislikeMember != nil
+}
+
+// IsActivityStreamsDocument returns true if this property has a type of
+// "Document". When true, use the GetActivityStreamsDocument and
+// SetActivityStreamsDocument methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsDocument() bool {
+ return this.activitystreamsDocumentMember != nil
+}
+
+// IsActivityStreamsEvent returns true if this property has a type of "Event".
+// When true, use the GetActivityStreamsEvent and SetActivityStreamsEvent
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsEvent() bool {
+ return this.activitystreamsEventMember != nil
+}
+
+// IsActivityStreamsFlag returns true if this property has a type of "Flag". When
+// true, use the GetActivityStreamsFlag and SetActivityStreamsFlag methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsFlag() bool {
+ return this.activitystreamsFlagMember != nil
+}
+
+// IsActivityStreamsFollow returns true if this property has a type of "Follow".
+// When true, use the GetActivityStreamsFollow and SetActivityStreamsFollow
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsFollow() bool {
+ return this.activitystreamsFollowMember != nil
+}
+
+// IsActivityStreamsGroup returns true if this property has a type of "Group".
+// When true, use the GetActivityStreamsGroup and SetActivityStreamsGroup
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsGroup() bool {
+ return this.activitystreamsGroupMember != nil
+}
+
+// IsActivityStreamsIgnore returns true if this property has a type of "Ignore".
+// When true, use the GetActivityStreamsIgnore and SetActivityStreamsIgnore
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsIgnore() bool {
+ return this.activitystreamsIgnoreMember != nil
+}
+
+// IsActivityStreamsImage returns true if this property has a type of "Image".
+// When true, use the GetActivityStreamsImage and SetActivityStreamsImage
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsImage() bool {
+ return this.activitystreamsImageMember != nil
+}
+
+// IsActivityStreamsIntransitiveActivity returns true if this property has a type
+// of "IntransitiveActivity". When true, use the
+// GetActivityStreamsIntransitiveActivity and
+// SetActivityStreamsIntransitiveActivity methods to access and set this
+// property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsIntransitiveActivity() bool {
+ return this.activitystreamsIntransitiveActivityMember != nil
+}
+
+// IsActivityStreamsInvite returns true if this property has a type of "Invite".
+// When true, use the GetActivityStreamsInvite and SetActivityStreamsInvite
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsInvite() bool {
+ return this.activitystreamsInviteMember != nil
+}
+
+// IsActivityStreamsJoin returns true if this property has a type of "Join". When
+// true, use the GetActivityStreamsJoin and SetActivityStreamsJoin methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsJoin() bool {
+ return this.activitystreamsJoinMember != nil
+}
+
+// IsActivityStreamsLeave returns true if this property has a type of "Leave".
+// When true, use the GetActivityStreamsLeave and SetActivityStreamsLeave
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsLeave() bool {
+ return this.activitystreamsLeaveMember != nil
+}
+
+// IsActivityStreamsLike returns true if this property has a type of "Like". When
+// true, use the GetActivityStreamsLike and SetActivityStreamsLike methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsLike() bool {
+ return this.activitystreamsLikeMember != nil
+}
+
+// IsActivityStreamsLink returns true if this property has a type of "Link". When
+// true, use the GetActivityStreamsLink and SetActivityStreamsLink methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsLink() bool {
+ return this.activitystreamsLinkMember != nil
+}
+
+// IsActivityStreamsListen returns true if this property has a type of "Listen".
+// When true, use the GetActivityStreamsListen and SetActivityStreamsListen
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsListen() bool {
+ return this.activitystreamsListenMember != nil
+}
+
+// IsActivityStreamsMention returns true if this property has a type of "Mention".
+// When true, use the GetActivityStreamsMention and SetActivityStreamsMention
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsMention() bool {
+ return this.activitystreamsMentionMember != nil
+}
+
+// IsActivityStreamsMove returns true if this property has a type of "Move". When
+// true, use the GetActivityStreamsMove and SetActivityStreamsMove methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsMove() bool {
+ return this.activitystreamsMoveMember != nil
+}
+
+// IsActivityStreamsNote returns true if this property has a type of "Note". When
+// true, use the GetActivityStreamsNote and SetActivityStreamsNote methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsNote() bool {
+ return this.activitystreamsNoteMember != nil
+}
+
+// IsActivityStreamsObject returns true if this property has a type of "Object".
+// When true, use the GetActivityStreamsObject and SetActivityStreamsObject
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsObject() bool {
+ return this.activitystreamsObjectMember != nil
+}
+
+// IsActivityStreamsOffer returns true if this property has a type of "Offer".
+// When true, use the GetActivityStreamsOffer and SetActivityStreamsOffer
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsOffer() bool {
+ return this.activitystreamsOfferMember != nil
+}
+
+// IsActivityStreamsOrderedCollection returns true if this property has a type of
+// "OrderedCollection". When true, use the GetActivityStreamsOrderedCollection
+// and SetActivityStreamsOrderedCollection methods to access and set this
+// property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollection() bool {
+ return this.activitystreamsOrderedCollectionMember != nil
+}
+
+// IsActivityStreamsOrderedCollectionPage returns true if this property has a type
+// of "OrderedCollectionPage". When true, use the
+// GetActivityStreamsOrderedCollectionPage and
+// SetActivityStreamsOrderedCollectionPage methods to access and set this
+// property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsOrderedCollectionPage() bool {
+ return this.activitystreamsOrderedCollectionPageMember != nil
+}
+
+// IsActivityStreamsOrganization returns true if this property has a type of
+// "Organization". When true, use the GetActivityStreamsOrganization and
+// SetActivityStreamsOrganization methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsOrganization() bool {
+ return this.activitystreamsOrganizationMember != nil
+}
+
+// IsActivityStreamsPage returns true if this property has a type of "Page". When
+// true, use the GetActivityStreamsPage and SetActivityStreamsPage methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsPage() bool {
+ return this.activitystreamsPageMember != nil
+}
+
+// IsActivityStreamsPerson returns true if this property has a type of "Person".
+// When true, use the GetActivityStreamsPerson and SetActivityStreamsPerson
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsPerson() bool {
+ return this.activitystreamsPersonMember != nil
+}
+
+// IsActivityStreamsPlace returns true if this property has a type of "Place".
+// When true, use the GetActivityStreamsPlace and SetActivityStreamsPlace
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsPlace() bool {
+ return this.activitystreamsPlaceMember != nil
+}
+
+// IsActivityStreamsProfile returns true if this property has a type of "Profile".
+// When true, use the GetActivityStreamsProfile and SetActivityStreamsProfile
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsProfile() bool {
+ return this.activitystreamsProfileMember != nil
+}
+
+// IsActivityStreamsQuestion returns true if this property has a type of
+// "Question". When true, use the GetActivityStreamsQuestion and
+// SetActivityStreamsQuestion methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsQuestion() bool {
+ return this.activitystreamsQuestionMember != nil
+}
+
+// IsActivityStreamsRead returns true if this property has a type of "Read". When
+// true, use the GetActivityStreamsRead and SetActivityStreamsRead methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsRead() bool {
+ return this.activitystreamsReadMember != nil
+}
+
+// IsActivityStreamsReject returns true if this property has a type of "Reject".
+// When true, use the GetActivityStreamsReject and SetActivityStreamsReject
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsReject() bool {
+ return this.activitystreamsRejectMember != nil
+}
+
+// IsActivityStreamsRelationship returns true if this property has a type of
+// "Relationship". When true, use the GetActivityStreamsRelationship and
+// SetActivityStreamsRelationship methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsRelationship() bool {
+ return this.activitystreamsRelationshipMember != nil
+}
+
+// IsActivityStreamsRemove returns true if this property has a type of "Remove".
+// When true, use the GetActivityStreamsRemove and SetActivityStreamsRemove
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsRemove() bool {
+ return this.activitystreamsRemoveMember != nil
+}
+
+// IsActivityStreamsService returns true if this property has a type of "Service".
+// When true, use the GetActivityStreamsService and SetActivityStreamsService
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsService() bool {
+ return this.activitystreamsServiceMember != nil
+}
+
+// IsActivityStreamsTentativeAccept returns true if this property has a type of
+// "TentativeAccept". When true, use the GetActivityStreamsTentativeAccept and
+// SetActivityStreamsTentativeAccept methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeAccept() bool {
+ return this.activitystreamsTentativeAcceptMember != nil
+}
+
+// IsActivityStreamsTentativeReject returns true if this property has a type of
+// "TentativeReject". When true, use the GetActivityStreamsTentativeReject and
+// SetActivityStreamsTentativeReject methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsTentativeReject() bool {
+ return this.activitystreamsTentativeRejectMember != nil
+}
+
+// IsActivityStreamsTombstone returns true if this property has a type of
+// "Tombstone". When true, use the GetActivityStreamsTombstone and
+// SetActivityStreamsTombstone methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsTombstone() bool {
+ return this.activitystreamsTombstoneMember != nil
+}
+
+// IsActivityStreamsTravel returns true if this property has a type of "Travel".
+// When true, use the GetActivityStreamsTravel and SetActivityStreamsTravel
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsTravel() bool {
+ return this.activitystreamsTravelMember != nil
+}
+
+// IsActivityStreamsUndo returns true if this property has a type of "Undo". When
+// true, use the GetActivityStreamsUndo and SetActivityStreamsUndo methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsUndo() bool {
+ return this.activitystreamsUndoMember != nil
+}
+
+// IsActivityStreamsUpdate returns true if this property has a type of "Update".
+// When true, use the GetActivityStreamsUpdate and SetActivityStreamsUpdate
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsUpdate() bool {
+ return this.activitystreamsUpdateMember != nil
+}
+
+// IsActivityStreamsVideo returns true if this property has a type of "Video".
+// When true, use the GetActivityStreamsVideo and SetActivityStreamsVideo
+// methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsVideo() bool {
+ return this.activitystreamsVideoMember != nil
+}
+
+// IsActivityStreamsView returns true if this property has a type of "View". When
+// true, use the GetActivityStreamsView and SetActivityStreamsView methods to
+// access and set this property.
+func (this ActivityStreamsSourceProperty) IsActivityStreamsView() bool {
+ return this.activitystreamsViewMember != nil
+}
+
+// IsForgeFedBranch returns true if this property has a type of "Branch". When
+// true, use the GetForgeFedBranch and SetForgeFedBranch methods to access and
+// set this property.
+func (this ActivityStreamsSourceProperty) IsForgeFedBranch() bool {
+ return this.forgefedBranchMember != nil
+}
+
+// IsForgeFedCommit returns true if this property has a type of "Commit". When
+// true, use the GetForgeFedCommit and SetForgeFedCommit methods to access and
+// set this property.
+func (this ActivityStreamsSourceProperty) IsForgeFedCommit() bool {
+ return this.forgefedCommitMember != nil
+}
+
+// IsForgeFedPush returns true if this property has a type of "Push". When true,
+// use the GetForgeFedPush and SetForgeFedPush methods to access and set this
+// property.
+func (this ActivityStreamsSourceProperty) IsForgeFedPush() bool {
+ return this.forgefedPushMember != nil
+}
+
+// IsForgeFedRepository returns true if this property has a type of "Repository".
+// When true, use the GetForgeFedRepository and SetForgeFedRepository methods
+// to access and set this property.
+func (this ActivityStreamsSourceProperty) IsForgeFedRepository() bool {
+ return this.forgefedRepositoryMember != nil
+}
+
+// IsForgeFedTicket returns true if this property has a type of "Ticket". When
+// true, use the GetForgeFedTicket and SetForgeFedTicket methods to access and
+// set this property.
+func (this ActivityStreamsSourceProperty) IsForgeFedTicket() bool {
+ return this.forgefedTicketMember != nil
+}
+
+// IsForgeFedTicketDependency returns true if this property has a type of
+// "TicketDependency". When true, use the GetForgeFedTicketDependency and
+// SetForgeFedTicketDependency methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsForgeFedTicketDependency() bool {
+ return this.forgefedTicketDependencyMember != nil
+}
+
+// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
+// to access and set this property
+func (this ActivityStreamsSourceProperty) IsIRI() bool {
+ return this.iri != nil
+}
+
+// IsTootEmoji returns true if this property has a type of "Emoji". When true, use
+// the GetTootEmoji and SetTootEmoji methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsTootEmoji() bool {
+ return this.tootEmojiMember != nil
+}
+
+// IsTootIdentityProof returns true if this property has a type of
+// "IdentityProof". When true, use the GetTootIdentityProof and
+// SetTootIdentityProof methods to access and set this property.
+func (this ActivityStreamsSourceProperty) IsTootIdentityProof() bool {
+ return this.tootIdentityProofMember != nil
+}
+
+// JSONLDContext returns the JSONLD URIs required in the context string for this
+// property and the specific values that are set. The value in the map is the
+// alias used to import the property's value or values.
+func (this ActivityStreamsSourceProperty) JSONLDContext() map[string]string {
+ m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
+ var child map[string]string
+ if this.IsActivityStreamsObject() {
+ child = this.GetActivityStreamsObject().JSONLDContext()
+ } else if this.IsActivityStreamsLink() {
+ child = this.GetActivityStreamsLink().JSONLDContext()
+ } else if this.IsActivityStreamsAccept() {
+ child = this.GetActivityStreamsAccept().JSONLDContext()
+ } else if this.IsActivityStreamsActivity() {
+ child = this.GetActivityStreamsActivity().JSONLDContext()
+ } else if this.IsActivityStreamsAdd() {
+ child = this.GetActivityStreamsAdd().JSONLDContext()
+ } else if this.IsActivityStreamsAnnounce() {
+ child = this.GetActivityStreamsAnnounce().JSONLDContext()
+ } else if this.IsActivityStreamsApplication() {
+ child = this.GetActivityStreamsApplication().JSONLDContext()
+ } else if this.IsActivityStreamsArrive() {
+ child = this.GetActivityStreamsArrive().JSONLDContext()
+ } else if this.IsActivityStreamsArticle() {
+ child = this.GetActivityStreamsArticle().JSONLDContext()
+ } else if this.IsActivityStreamsAudio() {
+ child = this.GetActivityStreamsAudio().JSONLDContext()
+ } else if this.IsActivityStreamsBlock() {
+ child = this.GetActivityStreamsBlock().JSONLDContext()
+ } else if this.IsForgeFedBranch() {
+ child = this.GetForgeFedBranch().JSONLDContext()
+ } else if this.IsActivityStreamsCollection() {
+ child = this.GetActivityStreamsCollection().JSONLDContext()
+ } else if this.IsActivityStreamsCollectionPage() {
+ child = this.GetActivityStreamsCollectionPage().JSONLDContext()
+ } else if this.IsForgeFedCommit() {
+ child = this.GetForgeFedCommit().JSONLDContext()
+ } else if this.IsActivityStreamsCreate() {
+ child = this.GetActivityStreamsCreate().JSONLDContext()
+ } else if this.IsActivityStreamsDelete() {
+ child = this.GetActivityStreamsDelete().JSONLDContext()
+ } else if this.IsActivityStreamsDislike() {
+ child = this.GetActivityStreamsDislike().JSONLDContext()
+ } else if this.IsActivityStreamsDocument() {
+ child = this.GetActivityStreamsDocument().JSONLDContext()
+ } else if this.IsTootEmoji() {
+ child = this.GetTootEmoji().JSONLDContext()
+ } else if this.IsActivityStreamsEvent() {
+ child = this.GetActivityStreamsEvent().JSONLDContext()
+ } else if this.IsActivityStreamsFlag() {
+ child = this.GetActivityStreamsFlag().JSONLDContext()
+ } else if this.IsActivityStreamsFollow() {
+ child = this.GetActivityStreamsFollow().JSONLDContext()
+ } else if this.IsActivityStreamsGroup() {
+ child = this.GetActivityStreamsGroup().JSONLDContext()
+ } else if this.IsTootIdentityProof() {
+ child = this.GetTootIdentityProof().JSONLDContext()
+ } else if this.IsActivityStreamsIgnore() {
+ child = this.GetActivityStreamsIgnore().JSONLDContext()
+ } else if this.IsActivityStreamsImage() {
+ child = this.GetActivityStreamsImage().JSONLDContext()
+ } else if this.IsActivityStreamsIntransitiveActivity() {
+ child = this.GetActivityStreamsIntransitiveActivity().JSONLDContext()
+ } else if this.IsActivityStreamsInvite() {
+ child = this.GetActivityStreamsInvite().JSONLDContext()
+ } else if this.IsActivityStreamsJoin() {
+ child = this.GetActivityStreamsJoin().JSONLDContext()
+ } else if this.IsActivityStreamsLeave() {
+ child = this.GetActivityStreamsLeave().JSONLDContext()
+ } else if this.IsActivityStreamsLike() {
+ child = this.GetActivityStreamsLike().JSONLDContext()
+ } else if this.IsActivityStreamsListen() {
+ child = this.GetActivityStreamsListen().JSONLDContext()
+ } else if this.IsActivityStreamsMention() {
+ child = this.GetActivityStreamsMention().JSONLDContext()
+ } else if this.IsActivityStreamsMove() {
+ child = this.GetActivityStreamsMove().JSONLDContext()
+ } else if this.IsActivityStreamsNote() {
+ child = this.GetActivityStreamsNote().JSONLDContext()
+ } else if this.IsActivityStreamsOffer() {
+ child = this.GetActivityStreamsOffer().JSONLDContext()
+ } else if this.IsActivityStreamsOrderedCollection() {
+ child = this.GetActivityStreamsOrderedCollection().JSONLDContext()
+ } else if this.IsActivityStreamsOrderedCollectionPage() {
+ child = this.GetActivityStreamsOrderedCollectionPage().JSONLDContext()
+ } else if this.IsActivityStreamsOrganization() {
+ child = this.GetActivityStreamsOrganization().JSONLDContext()
+ } else if this.IsActivityStreamsPage() {
+ child = this.GetActivityStreamsPage().JSONLDContext()
+ } else if this.IsActivityStreamsPerson() {
+ child = this.GetActivityStreamsPerson().JSONLDContext()
+ } else if this.IsActivityStreamsPlace() {
+ child = this.GetActivityStreamsPlace().JSONLDContext()
+ } else if this.IsActivityStreamsProfile() {
+ child = this.GetActivityStreamsProfile().JSONLDContext()
+ } else if this.IsForgeFedPush() {
+ child = this.GetForgeFedPush().JSONLDContext()
+ } else if this.IsActivityStreamsQuestion() {
+ child = this.GetActivityStreamsQuestion().JSONLDContext()
+ } else if this.IsActivityStreamsRead() {
+ child = this.GetActivityStreamsRead().JSONLDContext()
+ } else if this.IsActivityStreamsReject() {
+ child = this.GetActivityStreamsReject().JSONLDContext()
+ } else if this.IsActivityStreamsRelationship() {
+ child = this.GetActivityStreamsRelationship().JSONLDContext()
+ } else if this.IsActivityStreamsRemove() {
+ child = this.GetActivityStreamsRemove().JSONLDContext()
+ } else if this.IsForgeFedRepository() {
+ child = this.GetForgeFedRepository().JSONLDContext()
+ } else if this.IsActivityStreamsService() {
+ child = this.GetActivityStreamsService().JSONLDContext()
+ } else if this.IsActivityStreamsTentativeAccept() {
+ child = this.GetActivityStreamsTentativeAccept().JSONLDContext()
+ } else if this.IsActivityStreamsTentativeReject() {
+ child = this.GetActivityStreamsTentativeReject().JSONLDContext()
+ } else if this.IsForgeFedTicket() {
+ child = this.GetForgeFedTicket().JSONLDContext()
+ } else if this.IsForgeFedTicketDependency() {
+ child = this.GetForgeFedTicketDependency().JSONLDContext()
+ } else if this.IsActivityStreamsTombstone() {
+ child = this.GetActivityStreamsTombstone().JSONLDContext()
+ } else if this.IsActivityStreamsTravel() {
+ child = this.GetActivityStreamsTravel().JSONLDContext()
+ } else if this.IsActivityStreamsUndo() {
+ child = this.GetActivityStreamsUndo().JSONLDContext()
+ } else if this.IsActivityStreamsUpdate() {
+ child = this.GetActivityStreamsUpdate().JSONLDContext()
+ } else if this.IsActivityStreamsVideo() {
+ child = this.GetActivityStreamsVideo().JSONLDContext()
+ } else if this.IsActivityStreamsView() {
+ child = this.GetActivityStreamsView().JSONLDContext()
+ }
+ /*
+ Since the literal maps in this function are determined at
+ code-generation time, this loop should not overwrite an existing key with a
+ new value.
+ */
+ for k, v := range child {
+ m[k] = v
+ }
+ return m
+}
+
+// KindIndex computes an arbitrary value for indexing this kind of value. This is
+// a leaky API detail only for folks looking to replace the go-fed
+// implementation. Applications should not use this method.
+func (this ActivityStreamsSourceProperty) KindIndex() int {
+ if this.IsActivityStreamsObject() {
+ return 0
+ }
+ if this.IsActivityStreamsLink() {
+ return 1
+ }
+ if this.IsActivityStreamsAccept() {
+ return 2
+ }
+ if this.IsActivityStreamsActivity() {
+ return 3
+ }
+ if this.IsActivityStreamsAdd() {
+ return 4
+ }
+ if this.IsActivityStreamsAnnounce() {
+ return 5
+ }
+ if this.IsActivityStreamsApplication() {
+ return 6
+ }
+ if this.IsActivityStreamsArrive() {
+ return 7
+ }
+ if this.IsActivityStreamsArticle() {
+ return 8
+ }
+ if this.IsActivityStreamsAudio() {
+ return 9
+ }
+ if this.IsActivityStreamsBlock() {
+ return 10
+ }
+ if this.IsForgeFedBranch() {
+ return 11
+ }
+ if this.IsActivityStreamsCollection() {
+ return 12
+ }
+ if this.IsActivityStreamsCollectionPage() {
+ return 13
+ }
+ if this.IsForgeFedCommit() {
+ return 14
+ }
+ if this.IsActivityStreamsCreate() {
+ return 15
+ }
+ if this.IsActivityStreamsDelete() {
+ return 16
+ }
+ if this.IsActivityStreamsDislike() {
+ return 17
+ }
+ if this.IsActivityStreamsDocument() {
+ return 18
+ }
+ if this.IsTootEmoji() {
+ return 19
+ }
+ if this.IsActivityStreamsEvent() {
+ return 20
+ }
+ if this.IsActivityStreamsFlag() {
+ return 21
+ }
+ if this.IsActivityStreamsFollow() {
+ return 22
+ }
+ if this.IsActivityStreamsGroup() {
+ return 23
+ }
+ if this.IsTootIdentityProof() {
+ return 24
+ }
+ if this.IsActivityStreamsIgnore() {
+ return 25
+ }
+ if this.IsActivityStreamsImage() {
+ return 26
+ }
+ if this.IsActivityStreamsIntransitiveActivity() {
+ return 27
+ }
+ if this.IsActivityStreamsInvite() {
+ return 28
+ }
+ if this.IsActivityStreamsJoin() {
+ return 29
+ }
+ if this.IsActivityStreamsLeave() {
+ return 30
+ }
+ if this.IsActivityStreamsLike() {
+ return 31
+ }
+ if this.IsActivityStreamsListen() {
+ return 32
+ }
+ if this.IsActivityStreamsMention() {
+ return 33
+ }
+ if this.IsActivityStreamsMove() {
+ return 34
+ }
+ if this.IsActivityStreamsNote() {
+ return 35
+ }
+ if this.IsActivityStreamsOffer() {
+ return 36
+ }
+ if this.IsActivityStreamsOrderedCollection() {
+ return 37
+ }
+ if this.IsActivityStreamsOrderedCollectionPage() {
+ return 38
+ }
+ if this.IsActivityStreamsOrganization() {
+ return 39
+ }
+ if this.IsActivityStreamsPage() {
+ return 40
+ }
+ if this.IsActivityStreamsPerson() {
+ return 41
+ }
+ if this.IsActivityStreamsPlace() {
+ return 42
+ }
+ if this.IsActivityStreamsProfile() {
+ return 43
+ }
+ if this.IsForgeFedPush() {
+ return 44
+ }
+ if this.IsActivityStreamsQuestion() {
+ return 45
+ }
+ if this.IsActivityStreamsRead() {
+ return 46
+ }
+ if this.IsActivityStreamsReject() {
+ return 47
+ }
+ if this.IsActivityStreamsRelationship() {
+ return 48
+ }
+ if this.IsActivityStreamsRemove() {
+ return 49
+ }
+ if this.IsForgeFedRepository() {
+ return 50
+ }
+ if this.IsActivityStreamsService() {
+ return 51
+ }
+ if this.IsActivityStreamsTentativeAccept() {
+ return 52
+ }
+ if this.IsActivityStreamsTentativeReject() {
+ return 53
+ }
+ if this.IsForgeFedTicket() {
+ return 54
+ }
+ if this.IsForgeFedTicketDependency() {
+ return 55
+ }
+ if this.IsActivityStreamsTombstone() {
+ return 56
+ }
+ if this.IsActivityStreamsTravel() {
+ return 57
+ }
+ if this.IsActivityStreamsUndo() {
+ return 58
+ }
+ if this.IsActivityStreamsUpdate() {
+ return 59
+ }
+ if this.IsActivityStreamsVideo() {
+ return 60
+ }
+ if this.IsActivityStreamsView() {
+ return 61
+ }
+ if this.IsIRI() {
+ return -2
+ }
+ return -1
+}
+
+// LessThan compares two instances of this property with an arbitrary but stable
+// comparison. Applications should not use this because it is only meant to
+// help alternative implementations to go-fed to be able to normalize
+// nonfunctional properties.
+func (this ActivityStreamsSourceProperty) LessThan(o vocab.ActivityStreamsSourceProperty) bool {
+ idx1 := this.KindIndex()
+ idx2 := o.KindIndex()
+ if idx1 < idx2 {
+ return true
+ } else if idx1 > idx2 {
+ return false
+ } else if this.IsActivityStreamsObject() {
+ return this.GetActivityStreamsObject().LessThan(o.GetActivityStreamsObject())
+ } else if this.IsActivityStreamsLink() {
+ return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
+ } else if this.IsActivityStreamsAccept() {
+ return this.GetActivityStreamsAccept().LessThan(o.GetActivityStreamsAccept())
+ } else if this.IsActivityStreamsActivity() {
+ return this.GetActivityStreamsActivity().LessThan(o.GetActivityStreamsActivity())
+ } else if this.IsActivityStreamsAdd() {
+ return this.GetActivityStreamsAdd().LessThan(o.GetActivityStreamsAdd())
+ } else if this.IsActivityStreamsAnnounce() {
+ return this.GetActivityStreamsAnnounce().LessThan(o.GetActivityStreamsAnnounce())
+ } else if this.IsActivityStreamsApplication() {
+ return this.GetActivityStreamsApplication().LessThan(o.GetActivityStreamsApplication())
+ } else if this.IsActivityStreamsArrive() {
+ return this.GetActivityStreamsArrive().LessThan(o.GetActivityStreamsArrive())
+ } else if this.IsActivityStreamsArticle() {
+ return this.GetActivityStreamsArticle().LessThan(o.GetActivityStreamsArticle())
+ } else if this.IsActivityStreamsAudio() {
+ return this.GetActivityStreamsAudio().LessThan(o.GetActivityStreamsAudio())
+ } else if this.IsActivityStreamsBlock() {
+ return this.GetActivityStreamsBlock().LessThan(o.GetActivityStreamsBlock())
+ } else if this.IsForgeFedBranch() {
+ return this.GetForgeFedBranch().LessThan(o.GetForgeFedBranch())
+ } else if this.IsActivityStreamsCollection() {
+ return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
+ } else if this.IsActivityStreamsCollectionPage() {
+ return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
+ } else if this.IsForgeFedCommit() {
+ return this.GetForgeFedCommit().LessThan(o.GetForgeFedCommit())
+ } else if this.IsActivityStreamsCreate() {
+ return this.GetActivityStreamsCreate().LessThan(o.GetActivityStreamsCreate())
+ } else if this.IsActivityStreamsDelete() {
+ return this.GetActivityStreamsDelete().LessThan(o.GetActivityStreamsDelete())
+ } else if this.IsActivityStreamsDislike() {
+ return this.GetActivityStreamsDislike().LessThan(o.GetActivityStreamsDislike())
+ } else if this.IsActivityStreamsDocument() {
+ return this.GetActivityStreamsDocument().LessThan(o.GetActivityStreamsDocument())
+ } else if this.IsTootEmoji() {
+ return this.GetTootEmoji().LessThan(o.GetTootEmoji())
+ } else if this.IsActivityStreamsEvent() {
+ return this.GetActivityStreamsEvent().LessThan(o.GetActivityStreamsEvent())
+ } else if this.IsActivityStreamsFlag() {
+ return this.GetActivityStreamsFlag().LessThan(o.GetActivityStreamsFlag())
+ } else if this.IsActivityStreamsFollow() {
+ return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
+ } else if this.IsActivityStreamsGroup() {
+ return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
+ } else if this.IsTootIdentityProof() {
+ return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
+ } else if this.IsActivityStreamsIgnore() {
+ return this.GetActivityStreamsIgnore().LessThan(o.GetActivityStreamsIgnore())
+ } else if this.IsActivityStreamsImage() {
+ return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
+ } else if this.IsActivityStreamsIntransitiveActivity() {
+ return this.GetActivityStreamsIntransitiveActivity().LessThan(o.GetActivityStreamsIntransitiveActivity())
+ } else if this.IsActivityStreamsInvite() {
+ return this.GetActivityStreamsInvite().LessThan(o.GetActivityStreamsInvite())
+ } else if this.IsActivityStreamsJoin() {
+ return this.GetActivityStreamsJoin().LessThan(o.GetActivityStreamsJoin())
+ } else if this.IsActivityStreamsLeave() {
+ return this.GetActivityStreamsLeave().LessThan(o.GetActivityStreamsLeave())
+ } else if this.IsActivityStreamsLike() {
+ return this.GetActivityStreamsLike().LessThan(o.GetActivityStreamsLike())
+ } else if this.IsActivityStreamsListen() {
+ return this.GetActivityStreamsListen().LessThan(o.GetActivityStreamsListen())
+ } else if this.IsActivityStreamsMention() {
+ return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
+ } else if this.IsActivityStreamsMove() {
+ return this.GetActivityStreamsMove().LessThan(o.GetActivityStreamsMove())
+ } else if this.IsActivityStreamsNote() {
+ return this.GetActivityStreamsNote().LessThan(o.GetActivityStreamsNote())
+ } else if this.IsActivityStreamsOffer() {
+ return this.GetActivityStreamsOffer().LessThan(o.GetActivityStreamsOffer())
+ } else if this.IsActivityStreamsOrderedCollection() {
+ return this.GetActivityStreamsOrderedCollection().LessThan(o.GetActivityStreamsOrderedCollection())
+ } else if this.IsActivityStreamsOrderedCollectionPage() {
+ return this.GetActivityStreamsOrderedCollectionPage().LessThan(o.GetActivityStreamsOrderedCollectionPage())
+ } else if this.IsActivityStreamsOrganization() {
+ return this.GetActivityStreamsOrganization().LessThan(o.GetActivityStreamsOrganization())
+ } else if this.IsActivityStreamsPage() {
+ return this.GetActivityStreamsPage().LessThan(o.GetActivityStreamsPage())
+ } else if this.IsActivityStreamsPerson() {
+ return this.GetActivityStreamsPerson().LessThan(o.GetActivityStreamsPerson())
+ } else if this.IsActivityStreamsPlace() {
+ return this.GetActivityStreamsPlace().LessThan(o.GetActivityStreamsPlace())
+ } else if this.IsActivityStreamsProfile() {
+ return this.GetActivityStreamsProfile().LessThan(o.GetActivityStreamsProfile())
+ } else if this.IsForgeFedPush() {
+ return this.GetForgeFedPush().LessThan(o.GetForgeFedPush())
+ } else if this.IsActivityStreamsQuestion() {
+ return this.GetActivityStreamsQuestion().LessThan(o.GetActivityStreamsQuestion())
+ } else if this.IsActivityStreamsRead() {
+ return this.GetActivityStreamsRead().LessThan(o.GetActivityStreamsRead())
+ } else if this.IsActivityStreamsReject() {
+ return this.GetActivityStreamsReject().LessThan(o.GetActivityStreamsReject())
+ } else if this.IsActivityStreamsRelationship() {
+ return this.GetActivityStreamsRelationship().LessThan(o.GetActivityStreamsRelationship())
+ } else if this.IsActivityStreamsRemove() {
+ return this.GetActivityStreamsRemove().LessThan(o.GetActivityStreamsRemove())
+ } else if this.IsForgeFedRepository() {
+ return this.GetForgeFedRepository().LessThan(o.GetForgeFedRepository())
+ } else if this.IsActivityStreamsService() {
+ return this.GetActivityStreamsService().LessThan(o.GetActivityStreamsService())
+ } else if this.IsActivityStreamsTentativeAccept() {
+ return this.GetActivityStreamsTentativeAccept().LessThan(o.GetActivityStreamsTentativeAccept())
+ } else if this.IsActivityStreamsTentativeReject() {
+ return this.GetActivityStreamsTentativeReject().LessThan(o.GetActivityStreamsTentativeReject())
+ } else if this.IsForgeFedTicket() {
+ return this.GetForgeFedTicket().LessThan(o.GetForgeFedTicket())
+ } else if this.IsForgeFedTicketDependency() {
+ return this.GetForgeFedTicketDependency().LessThan(o.GetForgeFedTicketDependency())
+ } else if this.IsActivityStreamsTombstone() {
+ return this.GetActivityStreamsTombstone().LessThan(o.GetActivityStreamsTombstone())
+ } else if this.IsActivityStreamsTravel() {
+ return this.GetActivityStreamsTravel().LessThan(o.GetActivityStreamsTravel())
+ } else if this.IsActivityStreamsUndo() {
+ return this.GetActivityStreamsUndo().LessThan(o.GetActivityStreamsUndo())
+ } else if this.IsActivityStreamsUpdate() {
+ return this.GetActivityStreamsUpdate().LessThan(o.GetActivityStreamsUpdate())
+ } else if this.IsActivityStreamsVideo() {
+ return this.GetActivityStreamsVideo().LessThan(o.GetActivityStreamsVideo())
+ } else if this.IsActivityStreamsView() {
+ return this.GetActivityStreamsView().LessThan(o.GetActivityStreamsView())
+ } else if this.IsIRI() {
+ return this.iri.String() < o.GetIRI().String()
+ }
+ return false
+}
+
+// Name returns the name of this property: "source".
+func (this ActivityStreamsSourceProperty) Name() string {
+ if len(this.alias) > 0 {
+ return this.alias + ":" + "source"
+ } else {
+ return "source"
+ }
+}
+
+// Serialize converts this into an interface representation suitable for
+// marshalling into a text or binary format. Applications should not need this
+// function as most typical use cases serialize types instead of individual
+// properties. It is exposed for alternatives to go-fed implementations to use.
+func (this ActivityStreamsSourceProperty) Serialize() (interface{}, error) {
+ if this.IsActivityStreamsObject() {
+ return this.GetActivityStreamsObject().Serialize()
+ } else if this.IsActivityStreamsLink() {
+ return this.GetActivityStreamsLink().Serialize()
+ } else if this.IsActivityStreamsAccept() {
+ return this.GetActivityStreamsAccept().Serialize()
+ } else if this.IsActivityStreamsActivity() {
+ return this.GetActivityStreamsActivity().Serialize()
+ } else if this.IsActivityStreamsAdd() {
+ return this.GetActivityStreamsAdd().Serialize()
+ } else if this.IsActivityStreamsAnnounce() {
+ return this.GetActivityStreamsAnnounce().Serialize()
+ } else if this.IsActivityStreamsApplication() {
+ return this.GetActivityStreamsApplication().Serialize()
+ } else if this.IsActivityStreamsArrive() {
+ return this.GetActivityStreamsArrive().Serialize()
+ } else if this.IsActivityStreamsArticle() {
+ return this.GetActivityStreamsArticle().Serialize()
+ } else if this.IsActivityStreamsAudio() {
+ return this.GetActivityStreamsAudio().Serialize()
+ } else if this.IsActivityStreamsBlock() {
+ return this.GetActivityStreamsBlock().Serialize()
+ } else if this.IsForgeFedBranch() {
+ return this.GetForgeFedBranch().Serialize()
+ } else if this.IsActivityStreamsCollection() {
+ return this.GetActivityStreamsCollection().Serialize()
+ } else if this.IsActivityStreamsCollectionPage() {
+ return this.GetActivityStreamsCollectionPage().Serialize()
+ } else if this.IsForgeFedCommit() {
+ return this.GetForgeFedCommit().Serialize()
+ } else if this.IsActivityStreamsCreate() {
+ return this.GetActivityStreamsCreate().Serialize()
+ } else if this.IsActivityStreamsDelete() {
+ return this.GetActivityStreamsDelete().Serialize()
+ } else if this.IsActivityStreamsDislike() {
+ return this.GetActivityStreamsDislike().Serialize()
+ } else if this.IsActivityStreamsDocument() {
+ return this.GetActivityStreamsDocument().Serialize()
+ } else if this.IsTootEmoji() {
+ return this.GetTootEmoji().Serialize()
+ } else if this.IsActivityStreamsEvent() {
+ return this.GetActivityStreamsEvent().Serialize()
+ } else if this.IsActivityStreamsFlag() {
+ return this.GetActivityStreamsFlag().Serialize()
+ } else if this.IsActivityStreamsFollow() {
+ return this.GetActivityStreamsFollow().Serialize()
+ } else if this.IsActivityStreamsGroup() {
+ return this.GetActivityStreamsGroup().Serialize()
+ } else if this.IsTootIdentityProof() {
+ return this.GetTootIdentityProof().Serialize()
+ } else if this.IsActivityStreamsIgnore() {
+ return this.GetActivityStreamsIgnore().Serialize()
+ } else if this.IsActivityStreamsImage() {
+ return this.GetActivityStreamsImage().Serialize()
+ } else if this.IsActivityStreamsIntransitiveActivity() {
+ return this.GetActivityStreamsIntransitiveActivity().Serialize()
+ } else if this.IsActivityStreamsInvite() {
+ return this.GetActivityStreamsInvite().Serialize()
+ } else if this.IsActivityStreamsJoin() {
+ return this.GetActivityStreamsJoin().Serialize()
+ } else if this.IsActivityStreamsLeave() {
+ return this.GetActivityStreamsLeave().Serialize()
+ } else if this.IsActivityStreamsLike() {
+ return this.GetActivityStreamsLike().Serialize()
+ } else if this.IsActivityStreamsListen() {
+ return this.GetActivityStreamsListen().Serialize()
+ } else if this.IsActivityStreamsMention() {
+ return this.GetActivityStreamsMention().Serialize()
+ } else if this.IsActivityStreamsMove() {
+ return this.GetActivityStreamsMove().Serialize()
+ } else if this.IsActivityStreamsNote() {
+ return this.GetActivityStreamsNote().Serialize()
+ } else if this.IsActivityStreamsOffer() {
+ return this.GetActivityStreamsOffer().Serialize()
+ } else if this.IsActivityStreamsOrderedCollection() {
+ return this.GetActivityStreamsOrderedCollection().Serialize()
+ } else if this.IsActivityStreamsOrderedCollectionPage() {
+ return this.GetActivityStreamsOrderedCollectionPage().Serialize()
+ } else if this.IsActivityStreamsOrganization() {
+ return this.GetActivityStreamsOrganization().Serialize()
+ } else if this.IsActivityStreamsPage() {
+ return this.GetActivityStreamsPage().Serialize()
+ } else if this.IsActivityStreamsPerson() {
+ return this.GetActivityStreamsPerson().Serialize()
+ } else if this.IsActivityStreamsPlace() {
+ return this.GetActivityStreamsPlace().Serialize()
+ } else if this.IsActivityStreamsProfile() {
+ return this.GetActivityStreamsProfile().Serialize()
+ } else if this.IsForgeFedPush() {
+ return this.GetForgeFedPush().Serialize()
+ } else if this.IsActivityStreamsQuestion() {
+ return this.GetActivityStreamsQuestion().Serialize()
+ } else if this.IsActivityStreamsRead() {
+ return this.GetActivityStreamsRead().Serialize()
+ } else if this.IsActivityStreamsReject() {
+ return this.GetActivityStreamsReject().Serialize()
+ } else if this.IsActivityStreamsRelationship() {
+ return this.GetActivityStreamsRelationship().Serialize()
+ } else if this.IsActivityStreamsRemove() {
+ return this.GetActivityStreamsRemove().Serialize()
+ } else if this.IsForgeFedRepository() {
+ return this.GetForgeFedRepository().Serialize()
+ } else if this.IsActivityStreamsService() {
+ return this.GetActivityStreamsService().Serialize()
+ } else if this.IsActivityStreamsTentativeAccept() {
+ return this.GetActivityStreamsTentativeAccept().Serialize()
+ } else if this.IsActivityStreamsTentativeReject() {
+ return this.GetActivityStreamsTentativeReject().Serialize()
+ } else if this.IsForgeFedTicket() {
+ return this.GetForgeFedTicket().Serialize()
+ } else if this.IsForgeFedTicketDependency() {
+ return this.GetForgeFedTicketDependency().Serialize()
+ } else if this.IsActivityStreamsTombstone() {
+ return this.GetActivityStreamsTombstone().Serialize()
+ } else if this.IsActivityStreamsTravel() {
+ return this.GetActivityStreamsTravel().Serialize()
+ } else if this.IsActivityStreamsUndo() {
+ return this.GetActivityStreamsUndo().Serialize()
+ } else if this.IsActivityStreamsUpdate() {
+ return this.GetActivityStreamsUpdate().Serialize()
+ } else if this.IsActivityStreamsVideo() {
+ return this.GetActivityStreamsVideo().Serialize()
+ } else if this.IsActivityStreamsView() {
+ return this.GetActivityStreamsView().Serialize()
+ } else if this.IsIRI() {
+ return this.iri.String(), nil
+ }
+ return this.unknown, nil
+}
+
+// SetActivityStreamsAccept sets the value of this property. Calling
+// IsActivityStreamsAccept afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsAccept(v vocab.ActivityStreamsAccept) {
+ this.Clear()
+ this.activitystreamsAcceptMember = v
+}
+
+// SetActivityStreamsActivity sets the value of this property. Calling
+// IsActivityStreamsActivity afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsActivity(v vocab.ActivityStreamsActivity) {
+ this.Clear()
+ this.activitystreamsActivityMember = v
+}
+
+// SetActivityStreamsAdd sets the value of this property. Calling
+// IsActivityStreamsAdd afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsAdd(v vocab.ActivityStreamsAdd) {
+ this.Clear()
+ this.activitystreamsAddMember = v
+}
+
+// SetActivityStreamsAnnounce sets the value of this property. Calling
+// IsActivityStreamsAnnounce afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsAnnounce(v vocab.ActivityStreamsAnnounce) {
+ this.Clear()
+ this.activitystreamsAnnounceMember = v
+}
+
+// SetActivityStreamsApplication sets the value of this property. Calling
+// IsActivityStreamsApplication afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsApplication(v vocab.ActivityStreamsApplication) {
+ this.Clear()
+ this.activitystreamsApplicationMember = v
+}
+
+// SetActivityStreamsArrive sets the value of this property. Calling
+// IsActivityStreamsArrive afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsArrive(v vocab.ActivityStreamsArrive) {
+ this.Clear()
+ this.activitystreamsArriveMember = v
+}
+
+// SetActivityStreamsArticle sets the value of this property. Calling
+// IsActivityStreamsArticle afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsArticle(v vocab.ActivityStreamsArticle) {
+ this.Clear()
+ this.activitystreamsArticleMember = v
+}
+
+// SetActivityStreamsAudio sets the value of this property. Calling
+// IsActivityStreamsAudio afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsAudio(v vocab.ActivityStreamsAudio) {
+ this.Clear()
+ this.activitystreamsAudioMember = v
+}
+
+// SetActivityStreamsBlock sets the value of this property. Calling
+// IsActivityStreamsBlock afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsBlock(v vocab.ActivityStreamsBlock) {
+ this.Clear()
+ this.activitystreamsBlockMember = v
+}
+
+// SetActivityStreamsCollection sets the value of this property. Calling
+// IsActivityStreamsCollection afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollection(v vocab.ActivityStreamsCollection) {
+ this.Clear()
+ this.activitystreamsCollectionMember = v
+}
+
+// SetActivityStreamsCollectionPage sets the value of this property. Calling
+// IsActivityStreamsCollectionPage afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsCollectionPage(v vocab.ActivityStreamsCollectionPage) {
+ this.Clear()
+ this.activitystreamsCollectionPageMember = v
+}
+
+// SetActivityStreamsCreate sets the value of this property. Calling
+// IsActivityStreamsCreate afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsCreate(v vocab.ActivityStreamsCreate) {
+ this.Clear()
+ this.activitystreamsCreateMember = v
+}
+
+// SetActivityStreamsDelete sets the value of this property. Calling
+// IsActivityStreamsDelete afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsDelete(v vocab.ActivityStreamsDelete) {
+ this.Clear()
+ this.activitystreamsDeleteMember = v
+}
+
+// SetActivityStreamsDislike sets the value of this property. Calling
+// IsActivityStreamsDislike afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsDislike(v vocab.ActivityStreamsDislike) {
+ this.Clear()
+ this.activitystreamsDislikeMember = v
+}
+
+// SetActivityStreamsDocument sets the value of this property. Calling
+// IsActivityStreamsDocument afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsDocument(v vocab.ActivityStreamsDocument) {
+ this.Clear()
+ this.activitystreamsDocumentMember = v
+}
+
+// SetActivityStreamsEvent sets the value of this property. Calling
+// IsActivityStreamsEvent afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsEvent(v vocab.ActivityStreamsEvent) {
+ this.Clear()
+ this.activitystreamsEventMember = v
+}
+
+// SetActivityStreamsFlag sets the value of this property. Calling
+// IsActivityStreamsFlag afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsFlag(v vocab.ActivityStreamsFlag) {
+ this.Clear()
+ this.activitystreamsFlagMember = v
+}
+
+// SetActivityStreamsFollow sets the value of this property. Calling
+// IsActivityStreamsFollow afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsFollow(v vocab.ActivityStreamsFollow) {
+ this.Clear()
+ this.activitystreamsFollowMember = v
+}
+
+// SetActivityStreamsGroup sets the value of this property. Calling
+// IsActivityStreamsGroup afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsGroup(v vocab.ActivityStreamsGroup) {
+ this.Clear()
+ this.activitystreamsGroupMember = v
+}
+
+// SetActivityStreamsIgnore sets the value of this property. Calling
+// IsActivityStreamsIgnore afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsIgnore(v vocab.ActivityStreamsIgnore) {
+ this.Clear()
+ this.activitystreamsIgnoreMember = v
+}
+
+// SetActivityStreamsImage sets the value of this property. Calling
+// IsActivityStreamsImage afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsImage(v vocab.ActivityStreamsImage) {
+ this.Clear()
+ this.activitystreamsImageMember = v
+}
+
+// SetActivityStreamsIntransitiveActivity sets the value of this property. Calling
+// IsActivityStreamsIntransitiveActivity afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsIntransitiveActivity(v vocab.ActivityStreamsIntransitiveActivity) {
+ this.Clear()
+ this.activitystreamsIntransitiveActivityMember = v
+}
+
+// SetActivityStreamsInvite sets the value of this property. Calling
+// IsActivityStreamsInvite afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsInvite(v vocab.ActivityStreamsInvite) {
+ this.Clear()
+ this.activitystreamsInviteMember = v
+}
+
+// SetActivityStreamsJoin sets the value of this property. Calling
+// IsActivityStreamsJoin afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsJoin(v vocab.ActivityStreamsJoin) {
+ this.Clear()
+ this.activitystreamsJoinMember = v
+}
+
+// SetActivityStreamsLeave sets the value of this property. Calling
+// IsActivityStreamsLeave afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsLeave(v vocab.ActivityStreamsLeave) {
+ this.Clear()
+ this.activitystreamsLeaveMember = v
+}
+
+// SetActivityStreamsLike sets the value of this property. Calling
+// IsActivityStreamsLike afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsLike(v vocab.ActivityStreamsLike) {
+ this.Clear()
+ this.activitystreamsLikeMember = v
+}
+
+// SetActivityStreamsLink sets the value of this property. Calling
+// IsActivityStreamsLink afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsLink(v vocab.ActivityStreamsLink) {
+ this.Clear()
+ this.activitystreamsLinkMember = v
+}
+
+// SetActivityStreamsListen sets the value of this property. Calling
+// IsActivityStreamsListen afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsListen(v vocab.ActivityStreamsListen) {
+ this.Clear()
+ this.activitystreamsListenMember = v
+}
+
+// SetActivityStreamsMention sets the value of this property. Calling
+// IsActivityStreamsMention afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsMention(v vocab.ActivityStreamsMention) {
+ this.Clear()
+ this.activitystreamsMentionMember = v
+}
+
+// SetActivityStreamsMove sets the value of this property. Calling
+// IsActivityStreamsMove afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsMove(v vocab.ActivityStreamsMove) {
+ this.Clear()
+ this.activitystreamsMoveMember = v
+}
+
+// SetActivityStreamsNote sets the value of this property. Calling
+// IsActivityStreamsNote afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsNote(v vocab.ActivityStreamsNote) {
+ this.Clear()
+ this.activitystreamsNoteMember = v
+}
+
+// SetActivityStreamsObject sets the value of this property. Calling
+// IsActivityStreamsObject afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsObject(v vocab.ActivityStreamsObject) {
+ this.Clear()
+ this.activitystreamsObjectMember = v
+}
+
+// SetActivityStreamsOffer sets the value of this property. Calling
+// IsActivityStreamsOffer afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsOffer(v vocab.ActivityStreamsOffer) {
+ this.Clear()
+ this.activitystreamsOfferMember = v
+}
+
+// SetActivityStreamsOrderedCollection sets the value of this property. Calling
+// IsActivityStreamsOrderedCollection afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollection(v vocab.ActivityStreamsOrderedCollection) {
+ this.Clear()
+ this.activitystreamsOrderedCollectionMember = v
+}
+
+// SetActivityStreamsOrderedCollectionPage sets the value of this property.
+// Calling IsActivityStreamsOrderedCollectionPage afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrderedCollectionPage(v vocab.ActivityStreamsOrderedCollectionPage) {
+ this.Clear()
+ this.activitystreamsOrderedCollectionPageMember = v
+}
+
+// SetActivityStreamsOrganization sets the value of this property. Calling
+// IsActivityStreamsOrganization afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsOrganization(v vocab.ActivityStreamsOrganization) {
+ this.Clear()
+ this.activitystreamsOrganizationMember = v
+}
+
+// SetActivityStreamsPage sets the value of this property. Calling
+// IsActivityStreamsPage afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsPage(v vocab.ActivityStreamsPage) {
+ this.Clear()
+ this.activitystreamsPageMember = v
+}
+
+// SetActivityStreamsPerson sets the value of this property. Calling
+// IsActivityStreamsPerson afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsPerson(v vocab.ActivityStreamsPerson) {
+ this.Clear()
+ this.activitystreamsPersonMember = v
+}
+
+// SetActivityStreamsPlace sets the value of this property. Calling
+// IsActivityStreamsPlace afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsPlace(v vocab.ActivityStreamsPlace) {
+ this.Clear()
+ this.activitystreamsPlaceMember = v
+}
+
+// SetActivityStreamsProfile sets the value of this property. Calling
+// IsActivityStreamsProfile afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsProfile(v vocab.ActivityStreamsProfile) {
+ this.Clear()
+ this.activitystreamsProfileMember = v
+}
+
+// SetActivityStreamsQuestion sets the value of this property. Calling
+// IsActivityStreamsQuestion afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsQuestion(v vocab.ActivityStreamsQuestion) {
+ this.Clear()
+ this.activitystreamsQuestionMember = v
+}
+
+// SetActivityStreamsRead sets the value of this property. Calling
+// IsActivityStreamsRead afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsRead(v vocab.ActivityStreamsRead) {
+ this.Clear()
+ this.activitystreamsReadMember = v
+}
+
+// SetActivityStreamsReject sets the value of this property. Calling
+// IsActivityStreamsReject afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsReject(v vocab.ActivityStreamsReject) {
+ this.Clear()
+ this.activitystreamsRejectMember = v
+}
+
+// SetActivityStreamsRelationship sets the value of this property. Calling
+// IsActivityStreamsRelationship afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsRelationship(v vocab.ActivityStreamsRelationship) {
+ this.Clear()
+ this.activitystreamsRelationshipMember = v
+}
+
+// SetActivityStreamsRemove sets the value of this property. Calling
+// IsActivityStreamsRemove afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsRemove(v vocab.ActivityStreamsRemove) {
+ this.Clear()
+ this.activitystreamsRemoveMember = v
+}
+
+// SetActivityStreamsService sets the value of this property. Calling
+// IsActivityStreamsService afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsService(v vocab.ActivityStreamsService) {
+ this.Clear()
+ this.activitystreamsServiceMember = v
+}
+
+// SetActivityStreamsTentativeAccept sets the value of this property. Calling
+// IsActivityStreamsTentativeAccept afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeAccept(v vocab.ActivityStreamsTentativeAccept) {
+ this.Clear()
+ this.activitystreamsTentativeAcceptMember = v
+}
+
+// SetActivityStreamsTentativeReject sets the value of this property. Calling
+// IsActivityStreamsTentativeReject afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsTentativeReject(v vocab.ActivityStreamsTentativeReject) {
+ this.Clear()
+ this.activitystreamsTentativeRejectMember = v
+}
+
+// SetActivityStreamsTombstone sets the value of this property. Calling
+// IsActivityStreamsTombstone afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsTombstone(v vocab.ActivityStreamsTombstone) {
+ this.Clear()
+ this.activitystreamsTombstoneMember = v
+}
+
+// SetActivityStreamsTravel sets the value of this property. Calling
+// IsActivityStreamsTravel afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsTravel(v vocab.ActivityStreamsTravel) {
+ this.Clear()
+ this.activitystreamsTravelMember = v
+}
+
+// SetActivityStreamsUndo sets the value of this property. Calling
+// IsActivityStreamsUndo afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsUndo(v vocab.ActivityStreamsUndo) {
+ this.Clear()
+ this.activitystreamsUndoMember = v
+}
+
+// SetActivityStreamsUpdate sets the value of this property. Calling
+// IsActivityStreamsUpdate afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsUpdate(v vocab.ActivityStreamsUpdate) {
+ this.Clear()
+ this.activitystreamsUpdateMember = v
+}
+
+// SetActivityStreamsVideo sets the value of this property. Calling
+// IsActivityStreamsVideo afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsVideo(v vocab.ActivityStreamsVideo) {
+ this.Clear()
+ this.activitystreamsVideoMember = v
+}
+
+// SetActivityStreamsView sets the value of this property. Calling
+// IsActivityStreamsView afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetActivityStreamsView(v vocab.ActivityStreamsView) {
+ this.Clear()
+ this.activitystreamsViewMember = v
+}
+
+// SetForgeFedBranch sets the value of this property. Calling IsForgeFedBranch
+// afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedBranch(v vocab.ForgeFedBranch) {
+ this.Clear()
+ this.forgefedBranchMember = v
+}
+
+// SetForgeFedCommit sets the value of this property. Calling IsForgeFedCommit
+// afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedCommit(v vocab.ForgeFedCommit) {
+ this.Clear()
+ this.forgefedCommitMember = v
+}
+
+// SetForgeFedPush sets the value of this property. Calling IsForgeFedPush
+// afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedPush(v vocab.ForgeFedPush) {
+ this.Clear()
+ this.forgefedPushMember = v
+}
+
+// SetForgeFedRepository sets the value of this property. Calling
+// IsForgeFedRepository afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedRepository(v vocab.ForgeFedRepository) {
+ this.Clear()
+ this.forgefedRepositoryMember = v
+}
+
+// SetForgeFedTicket sets the value of this property. Calling IsForgeFedTicket
+// afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedTicket(v vocab.ForgeFedTicket) {
+ this.Clear()
+ this.forgefedTicketMember = v
+}
+
+// SetForgeFedTicketDependency sets the value of this property. Calling
+// IsForgeFedTicketDependency afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetForgeFedTicketDependency(v vocab.ForgeFedTicketDependency) {
+ this.Clear()
+ this.forgefedTicketDependencyMember = v
+}
+
+// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetIRI(v *url.URL) {
+ this.Clear()
+ this.iri = v
+}
+
+// SetTootEmoji sets the value of this property. Calling IsTootEmoji afterwards
+// returns true.
+func (this *ActivityStreamsSourceProperty) SetTootEmoji(v vocab.TootEmoji) {
+ this.Clear()
+ this.tootEmojiMember = v
+}
+
+// SetTootIdentityProof sets the value of this property. Calling
+// IsTootIdentityProof afterwards returns true.
+func (this *ActivityStreamsSourceProperty) SetTootIdentityProof(v vocab.TootIdentityProof) {
+ this.Clear()
+ this.tootIdentityProofMember = v
+}
+
+// SetType attempts to set the property for the arbitrary type. Returns an error
+// if it is not a valid type to set on this property.
+func (this *ActivityStreamsSourceProperty) SetType(t vocab.Type) error {
+ if v, ok := t.(vocab.ActivityStreamsObject); ok {
+ this.SetActivityStreamsObject(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsLink); ok {
+ this.SetActivityStreamsLink(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsAccept); ok {
+ this.SetActivityStreamsAccept(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsActivity); ok {
+ this.SetActivityStreamsActivity(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsAdd); ok {
+ this.SetActivityStreamsAdd(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsAnnounce); ok {
+ this.SetActivityStreamsAnnounce(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsApplication); ok {
+ this.SetActivityStreamsApplication(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsArrive); ok {
+ this.SetActivityStreamsArrive(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsArticle); ok {
+ this.SetActivityStreamsArticle(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsAudio); ok {
+ this.SetActivityStreamsAudio(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsBlock); ok {
+ this.SetActivityStreamsBlock(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedBranch); ok {
+ this.SetForgeFedBranch(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsCollection); ok {
+ this.SetActivityStreamsCollection(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsCollectionPage); ok {
+ this.SetActivityStreamsCollectionPage(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedCommit); ok {
+ this.SetForgeFedCommit(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsCreate); ok {
+ this.SetActivityStreamsCreate(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsDelete); ok {
+ this.SetActivityStreamsDelete(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsDislike); ok {
+ this.SetActivityStreamsDislike(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsDocument); ok {
+ this.SetActivityStreamsDocument(v)
+ return nil
+ }
+ if v, ok := t.(vocab.TootEmoji); ok {
+ this.SetTootEmoji(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsEvent); ok {
+ this.SetActivityStreamsEvent(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsFlag); ok {
+ this.SetActivityStreamsFlag(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsFollow); ok {
+ this.SetActivityStreamsFollow(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsGroup); ok {
+ this.SetActivityStreamsGroup(v)
+ return nil
+ }
+ if v, ok := t.(vocab.TootIdentityProof); ok {
+ this.SetTootIdentityProof(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsIgnore); ok {
+ this.SetActivityStreamsIgnore(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsImage); ok {
+ this.SetActivityStreamsImage(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsIntransitiveActivity); ok {
+ this.SetActivityStreamsIntransitiveActivity(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsInvite); ok {
+ this.SetActivityStreamsInvite(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsJoin); ok {
+ this.SetActivityStreamsJoin(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsLeave); ok {
+ this.SetActivityStreamsLeave(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsLike); ok {
+ this.SetActivityStreamsLike(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsListen); ok {
+ this.SetActivityStreamsListen(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsMention); ok {
+ this.SetActivityStreamsMention(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsMove); ok {
+ this.SetActivityStreamsMove(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsNote); ok {
+ this.SetActivityStreamsNote(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsOffer); ok {
+ this.SetActivityStreamsOffer(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsOrderedCollection); ok {
+ this.SetActivityStreamsOrderedCollection(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsOrderedCollectionPage); ok {
+ this.SetActivityStreamsOrderedCollectionPage(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsOrganization); ok {
+ this.SetActivityStreamsOrganization(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsPage); ok {
+ this.SetActivityStreamsPage(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsPerson); ok {
+ this.SetActivityStreamsPerson(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsPlace); ok {
+ this.SetActivityStreamsPlace(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsProfile); ok {
+ this.SetActivityStreamsProfile(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedPush); ok {
+ this.SetForgeFedPush(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsQuestion); ok {
+ this.SetActivityStreamsQuestion(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsRead); ok {
+ this.SetActivityStreamsRead(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsReject); ok {
+ this.SetActivityStreamsReject(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsRelationship); ok {
+ this.SetActivityStreamsRelationship(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsRemove); ok {
+ this.SetActivityStreamsRemove(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedRepository); ok {
+ this.SetForgeFedRepository(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsService); ok {
+ this.SetActivityStreamsService(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsTentativeAccept); ok {
+ this.SetActivityStreamsTentativeAccept(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsTentativeReject); ok {
+ this.SetActivityStreamsTentativeReject(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedTicket); ok {
+ this.SetForgeFedTicket(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ForgeFedTicketDependency); ok {
+ this.SetForgeFedTicketDependency(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsTombstone); ok {
+ this.SetActivityStreamsTombstone(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsTravel); ok {
+ this.SetActivityStreamsTravel(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsUndo); ok {
+ this.SetActivityStreamsUndo(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsUpdate); ok {
+ this.SetActivityStreamsUpdate(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsVideo); ok {
+ this.SetActivityStreamsVideo(v)
+ return nil
+ }
+ if v, ok := t.(vocab.ActivityStreamsView); ok {
+ this.SetActivityStreamsView(v)
+ return nil
+ }
+
+ return fmt.Errorf("illegal type to set on source property: %T", t)
+}
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go
new file mode 100644
index 000000000..def07efae
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertystartindex contains the implementation for the startIndex
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertystartindex
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go
new file mode 100644
index 000000000..ef561ec70
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertystartindex
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..29c57b906
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_startindex/gen_property_activitystreams_startIndex.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go
new file mode 100644
index 000000000..7d0f612e6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertystarttime contains the implementation for the startTime
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertystarttime
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go
new file mode 100644
index 000000000..676e619df
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertystarttime
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..15b3168fe
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_starttime/gen_property_activitystreams_startTime.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go
new file mode 100644
index 000000000..3c9f21e89
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertystreams contains the implementation for the streams property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertystreams
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
new file mode 100644
index 000000000..1ddf6c14b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_pkg.go
@@ -0,0 +1,35 @@
+// 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
new file mode 100644
index 000000000..83597d0c3
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_streams/gen_property_activitystreams_streams.go
@@ -0,0 +1,938 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go
new file mode 100644
index 000000000..70070f9b7
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertysubject contains the implementation for the subject property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertysubject
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
new file mode 100644
index 000000000..75cc38e21
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..3d0e02e04
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_subject/gen_property_activitystreams_subject.go
@@ -0,0 +1,3024 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go
new file mode 100644
index 000000000..4c3116554
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertysummary contains the implementation for the summary property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertysummary
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go
new file mode 100644
index 000000000..a83e43a5c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertysummary
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..5acc2dfda
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_summary/gen_property_activitystreams_summary.go
@@ -0,0 +1,668 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go
new file mode 100644
index 000000000..5f71d3497
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertytag contains the implementation for the tag property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertytag
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
new file mode 100644
index 000000000..1407af2c0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..2d1472f91
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_tag/gen_property_activitystreams_tag.go
@@ -0,0 +1,7028 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go
new file mode 100644
index 000000000..45b158ba4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertytarget contains the implementation for the target property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertytarget
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
new file mode 100644
index 000000000..e2404b595
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..f5d293a8d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_target/gen_property_activitystreams_target.go
@@ -0,0 +1,7031 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go
new file mode 100644
index 000000000..83448156e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyto contains the implementation for the to property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyto
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
new file mode 100644
index 000000000..c4f9f3b3b
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_pkg.go
@@ -0,0 +1,265 @@
+// 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
new file mode 100644
index 000000000..b5082a484
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_to/gen_property_activitystreams_to.go
@@ -0,0 +1,7028 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go
new file mode 100644
index 000000000..19fbddf83
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertytotalitems contains the implementation for the totalItems
+// property. All applications are strongly encouraged to use the interface
+// instead of this concrete definition. The interfaces allow applications to
+// consume only the types and properties needed and be independent of the
+// go-fed implementation if another alternative implementation is created.
+// This package is code-generated and subject to the same license as the
+// go-fed tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertytotalitems
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go
new file mode 100644
index 000000000..d872e5ab5
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertytotalitems
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..96a61b94c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_totalitems/gen_property_activitystreams_totalItems.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go
new file mode 100644
index 000000000..c6c0892f0
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyunits contains the implementation for the units property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyunits
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go
new file mode 100644
index 000000000..f59f9c692
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyunits
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..cd90ad054
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_units/gen_property_activitystreams_units.go
@@ -0,0 +1,215 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go
new file mode 100644
index 000000000..c3a86be0a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyupdated contains the implementation for the updated property.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyupdated
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go
new file mode 100644
index 000000000..2c366bab9
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertyupdated
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..df7b46b37
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_updated/gen_property_activitystreams_updated.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go
new file mode 100644
index 000000000..025914280
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertyurl contains the implementation for the url property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertyurl
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
new file mode 100644
index 000000000..6062eef25
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_pkg.go
@@ -0,0 +1,26 @@
+// 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
new file mode 100644
index 000000000..01ce5b51d
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_url/gen_property_activitystreams_url.go
@@ -0,0 +1,796 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go
new file mode 100644
index 000000000..aca7b5c39
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package propertywidth contains the implementation for the width property. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package propertywidth
diff --git a/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go
new file mode 100644
index 000000000..b69e4b875
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_pkg.go
@@ -0,0 +1,15 @@
+// Code generated by astool. DO NOT EDIT.
+
+package propertywidth
+
+var mgr privateManager
+
+// privateManager abstracts the code-generated manager that provides access to
+// concrete implementations.
+type privateManager interface{}
+
+// SetManager sets the manager package-global variable. For internal use only, do
+// not use as part of Application behavior. Must be called at golang init time.
+func SetManager(m privateManager) {
+ mgr = m
+}
diff --git a/vendor/github.com/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
new file mode 100644
index 000000000..c03c337c2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/property_width/gen_property_activitystreams_width.go
@@ -0,0 +1,204 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go
new file mode 100644
index 000000000..62869ae5e
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typeaccept contains the implementation for the Accept type. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typeaccept
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
new file mode 100644
index 000000000..2068c7d5f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_pkg.go
@@ -0,0 +1,207 @@
+// 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
new file mode 100644
index 000000000..2c919e642
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_accept/gen_type_activitystreams_accept.go
@@ -0,0 +1,1976 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go
new file mode 100644
index 000000000..5d106b490
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typeactivity contains the implementation for the Activity type. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typeactivity
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
new file mode 100644
index 000000000..77291a6dd
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_pkg.go
@@ -0,0 +1,207 @@
+// 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
new file mode 100644
index 000000000..337a5de07
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_activity/gen_type_activitystreams_activity.go
@@ -0,0 +1,1956 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go
new file mode 100644
index 000000000..770b99c0c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typeadd contains the implementation for the Add type. All applications
+// are strongly encouraged to use the interface instead of this concrete
+// definition. The interfaces allow applications to consume only the types and
+// properties needed and be independent of the go-fed implementation if
+// another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typeadd
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
new file mode 100644
index 000000000..1f6695351
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_pkg.go
@@ -0,0 +1,207 @@
+// 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
new file mode 100644
index 000000000..770a4c13f
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_add/gen_type_activitystreams_add.go
@@ -0,0 +1,1971 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go
new file mode 100644
index 000000000..ed357559a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typeannounce contains the implementation for the Announce type. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typeannounce
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
new file mode 100644
index 000000000..626354eb2
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_pkg.go
@@ -0,0 +1,207 @@
+// 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
new file mode 100644
index 000000000..761e3ef5a
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_announce/gen_type_activitystreams_announce.go
@@ -0,0 +1,1953 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go
new file mode 100644
index 000000000..097c76de4
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typeapplication contains the implementation for the Application type.
+// All applications are strongly encouraged to use the interface instead of
+// this concrete definition. The interfaces allow applications to consume only
+// the types and properties needed and be independent of the go-fed
+// implementation if another alternative implementation is created. This
+// package is code-generated and subject to the same license as the go-fed
+// tool used to generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typeapplication
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
new file mode 100644
index 000000000..77f918139
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_pkg.go
@@ -0,0 +1,228 @@
+// 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)
+ // 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
new file mode 100644
index 000000000..e4f64ed61
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_application/gen_type_activitystreams_application.go
@@ -0,0 +1,2150 @@
+// 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
+ 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.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 == "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
+}
+
+// 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.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 "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 "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
+}
+
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go
new file mode 100644
index 000000000..2537e8b78
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typearrive contains the implementation for the Arrive type. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typearrive
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
new file mode 100644
index 000000000..3ed9d1387
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_pkg.go
@@ -0,0 +1,203 @@
+// 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
new file mode 100644
index 000000000..0e09740e6
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_arrive/gen_type_activitystreams_arrive.go
@@ -0,0 +1,1911 @@
+// 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_doc.go b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go
new file mode 100644
index 000000000..e1d682448
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_doc.go
@@ -0,0 +1,17 @@
+// Code generated by astool. DO NOT EDIT.
+
+// Package typearticle contains the implementation for the Article type. All
+// applications are strongly encouraged to use the interface instead of this
+// concrete definition. The interfaces allow applications to consume only the
+// types and properties needed and be independent of the go-fed implementation
+// if another alternative implementation is created. This package is
+// code-generated and subject to the same license as the go-fed tool used to
+// generate it.
+//
+// This package is independent of other types' and properties' implementations
+// by having a Manager injected into it to act as a factory for the concrete
+// implementations. The implementations have been generated into their own
+// separate subpackages for each vocabulary.
+//
+// Strongly consider using the interfaces instead of this package.
+package typearticle
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
new file mode 100644
index 000000000..4c0055c5c
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_pkg.go
@@ -0,0 +1,187 @@
+// 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
new file mode 100644
index 000000000..158c880ad
--- /dev/null
+++ b/vendor/github.com/go-fed/activity/streams/impl/activitystreams/type_article/gen_type_activitystreams_article.go
@@ -0,0 +1,1732 @@
+// 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 &&