Merge branch 'master' into patch-1

This commit is contained in:
Sevki 2020-07-05 20:06:55 +01:00 committed by GitHub
commit a8fb705a22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
184 changed files with 19440 additions and 2241 deletions

View File

@ -104,3 +104,31 @@ This tool relies on built-in knowledge of several ontologies:
It does not have complete knowledge of these schemas, so if an error is
encountered during the code generation process with a new extension, please
[file an issue](https://github.com/go-fed/activity/issues).
## Non-Standard Behaviors
ActivityPub has a requirement where properties in a base type are not inherited
by deriving types. This concept is one reason why the ActivityStreams vocabulary
cannot be mapped into a traditional object-oriented programming language. It
also means that we need an RDF/OWL/JSON-LD concept to encapsulate this detail.
Unfortunately, no standards body provides an RDF definition of this meaning, so
the `astool` uses the JSON-LD reserved notation `@wtf_without_property` to
trigger code generation that results in this behavior.
It is the hope of this author that the prefix `@wtf` would never be used by the
JSON-LD authors and would never have a chance to become a de-facto standard due
to the implied profanity. Furthermore, its use should be extremely limited.
Therefore, the use of this non-standard keyworld only for the `astool` and in
limited applications should never collide with anything else.
This notation is used in two places:
* [Intransitive Activity](https://www.w3.org/TR/activitystreams-vocabulary/#dfn-intransitiveactivity)
does not have the `object` property, so this is a spec-compliant use.
* `OrderedCollection` so that it does not have both `items` and `orderedItems`
properties. This is an opinion: `items` for `Collection` and `orderedItems` for
`OrderedCollection`.
## References
* [JSON-LD Specification](https://json-ld.org/spec/latest/json-ld/)

270
astool/toot.jsonld Normal file
View File

@ -0,0 +1,270 @@
{
"@context": [
{
"as": "https://www.w3.org/ns/activitystreams",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rfc": "https://tools.ietf.org/html/",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
{
"domain": "rdfs:domain",
"example": "schema:workExample",
"isDefinedBy": "rdfs:isDefinedBy",
"mainEntity": "schema:mainEntity",
"members": "owl:members",
"name": "schema:name",
"notes": "rdfs:comment",
"range": "rdfs:range",
"subClassOf": "rdfs:subClassOf",
"disjointWith": "owl:disjointWith",
"subPropertyOf": "rdfs:subPropertyOf",
"unionOf": "owl:unionOf",
"url": "schema:URL"
}
],
"id": "http://joinmastodon.org/ns#",
"type": "owl:Ontology",
"name": "Toot",
"members": [
{
"id": "http://joinmastodon.org/ns#Emoji",
"type": "owl:Class",
"example": [
{
"type": "http://schema.org/CreativeWork",
"mainEntity": {
"id": "https://example.com/@alice/hello-world",
"type": "Note",
"content": "Hello world :Kappa:",
"tag": [
{
"id": "https://example.com/emoji/123",
"type": "Emoji",
"name": ":Kappa:",
"icon": {
"type": "Image",
"mediaType": "image/png",
"url": "https://example.com/files/kappa.png"
}
}
]
}
}
],
"subClassOf": {
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Object",
"name": "as:Object"
},
"disjointWith": [],
"name": "Emoji",
"url": "https://docs.joinmastodon.org/development/activitypub/#custom-emojis"
},
{
"id": "http://joinmastodon.org/ns#featured",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Application",
"name": "as:Application"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Group",
"name": "as:Group"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Organization",
"name": "as:Organization"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Person",
"name": "as:Person"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Service",
"name": "as:Service"
}
]
},
"isDefinedBy": "https://docs.joinmastodon.org/development/activitypub/#featured-collection",
"range": {
"type": "owl:Class",
"unionOf": {
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#OrderedCollection",
"name": "as:OrderedCollection"
}
},
"name": "featured",
"url": "https://docs.joinmastodon.org/development/activitypub/#featured-collection"
},
{
"id": "http://joinmastodon.org/ns#votersCount",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Question",
"name": "as:Question"
}
]
},
"range": {
"type": "owl:Class",
"unionOf": "xsd:nonNegativeInteger"
},
"name": "votersCount"
},
{
"id": "http://joinmastodon.org/ns#blurhash",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Document",
"name": "as:Document"
}
]
},
"range": {
"type": "owl:Class",
"unionOf": "xsd:string"
},
"name": "blurhash"
},
{
"id": "http://joinmastodon.org/ns#IdentityProof",
"type": "owl:Class",
"example": {
},
"subClassOf": {
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Object",
"name": "as:Object"
},
"disjointWith": [],
"name": "IdentityProof"
},
{
"id": "http://joinmastodon.org/ns#signatureAlgorithm",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "http://joinmastodon.org/ns#IdentityProof",
"name": "IdentityProof"
}
]
},
"range": {
"type": "owl:Class",
"unionOf": "xsd:string"
},
"name": "signatureAlgorithm"
},
{
"id": "http://joinmastodon.org/ns#signatureValue",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "http://joinmastodon.org/ns#IdentityProof",
"name": "IdentityProof"
}
]
},
"range": {
"type": "owl:Class",
"unionOf": "xsd:string"
},
"name": "signatureValue"
},
{
"id": "http://joinmastodon.org/ns#discoverable",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"example": {
},
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Application",
"name": "as:Application"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Group",
"name": "as:Group"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Organization",
"name": "as:Organization"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Person",
"name": "as:Person"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Service",
"name": "as:Service"
}
]
},
"range": {
"type": "owl:Class",
"unionOf": "xsd:boolean"
},
"name": "discoverable"
}
]
}

4
gen.go Normal file
View File

@ -0,0 +1,4 @@
// +build generate
//go:generate go run ./astool -spec astool/activitystreams.jsonld -spec astool/security-v1.jsonld -path github.com/go-fed/activity ./streams
package activity

5
go.sum
View File

@ -1,9 +1,5 @@
github.com/dave/jennifer v1.3.0 h1:p3tl41zjjCZTNBytMwrUuiAnherNUZktlhPTKoF/sEk=
github.com/dave/jennifer v1.3.0/go.mod h1:fIb+770HOpJ2fmN9EPPKOqm1vMGhB+TwXKMZhrIygKg=
github.com/go-fed/activity v0.4.0 h1:1YOYLMT+x2hx+AtQZNQHOGBXWnn2CF/10jGxTjaOEsw=
github.com/go-fed/activity v0.4.0/go.mod h1:QeFu271luhA2o47U3/DR6iWtxiB9Fw2dKGbvL8edM9E=
github.com/go-fed/httpsig v0.1.0 h1:6F2OxRVnNTN4OPN+Mc2jxs2WEay9/qiHT/jphlvAwIY=
github.com/go-fed/httpsig v0.1.0/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5 h1:WLvFZqoXnuVTBKA6U/1FnEHNQ0Rq0QM0rGhY8Tx6R1g=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
@ -14,4 +10,3 @@ golang.org/x/crypto v0.0.0-20180527072434-ab813273cd59 h1:hk3yo72LXLapY9EXVttc3Z
golang.org/x/crypto v0.0.0-20180527072434-ab813273cd59/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/sys v0.0.0-20180525142821-c11f84a56e43 h1:PvnWIWTbA7gsEBkKjt0HV9hckYfcqYv8s/ju7ArZ0do=
golang.org/x/sys v0.0.0-20180525142821-c11f84a56e43/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=

View File

@ -40,6 +40,10 @@ type Activity interface {
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)
}

View File

@ -186,6 +186,7 @@ func TestBaseActorSocialProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testCreateNoId))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testCreateNoId)).Return(ctx, nil)
delegate.EXPECT().AddNewIds(ctx, toDeserializedForm(testCreateNoId)).DoAndReturn(func(c context.Context, activity Activity) error {
withNewId(activity)
return nil
@ -213,6 +214,7 @@ func TestBaseActorSocialProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testMyNote))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testMyNote)).Return(ctx, nil)
delegate.EXPECT().WrapInCreate(ctx, toDeserializedForm(testMyNote), mustParse(testMyOutboxIRI)).DoAndReturn(func(c context.Context, t vocab.Type, u *url.URL) (vocab.ActivityStreamsCreate, error) {
return wrappedInCreate(t), nil
})
@ -241,6 +243,7 @@ func TestBaseActorSocialProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testCreateNoId))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testCreateNoId)).Return(ctx, nil)
delegate.EXPECT().AddNewIds(ctx, toDeserializedForm(testCreateNoId)).DoAndReturn(func(c context.Context, activity Activity) error {
withNewId(activity)
return nil
@ -266,6 +269,7 @@ func TestBaseActorSocialProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testCreateNoId))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testCreateNoId)).Return(ctx, nil)
delegate.EXPECT().AddNewIds(ctx, toDeserializedForm(testCreateNoId)).DoAndReturn(func(c context.Context, activity Activity) error {
withNewId(activity)
return nil
@ -428,6 +432,7 @@ func TestBaseActorFederatingProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostInboxRequest(testCreate))
delegate.EXPECT().AuthenticatePostInbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostInboxRequestBodyHook(ctx, req, toDeserializedForm(testCreate)).Return(ctx, nil)
delegate.EXPECT().AuthorizePostInbox(ctx, resp, toDeserializedForm(testCreate)).DoAndReturn(func(ctx context.Context, resp http.ResponseWriter, activity Activity) (bool, error) {
resp.WriteHeader(http.StatusForbidden)
return false, nil
@ -447,6 +452,7 @@ func TestBaseActorFederatingProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostInboxRequest(testCreate))
delegate.EXPECT().AuthenticatePostInbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostInboxRequestBodyHook(ctx, req, toDeserializedForm(testCreate)).Return(ctx, nil)
delegate.EXPECT().AuthorizePostInbox(ctx, resp, toDeserializedForm(testCreate)).Return(true, nil)
delegate.EXPECT().PostInbox(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(nil)
delegate.EXPECT().InboxForwarding(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(nil)
@ -465,6 +471,7 @@ func TestBaseActorFederatingProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostInboxRequest(testCreate))
delegate.EXPECT().AuthenticatePostInbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostInboxRequestBodyHook(ctx, req, toDeserializedForm(testCreate)).Return(ctx, nil)
delegate.EXPECT().AuthorizePostInbox(ctx, resp, toDeserializedForm(testCreate)).Return(true, nil)
delegate.EXPECT().PostInbox(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(ErrObjectRequired)
// Run the test
@ -482,6 +489,7 @@ func TestBaseActorFederatingProtocol(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostInboxRequest(testCreate))
delegate.EXPECT().AuthenticatePostInbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostInboxRequestBodyHook(ctx, req, toDeserializedForm(testCreate)).Return(ctx, nil)
delegate.EXPECT().AuthorizePostInbox(ctx, resp, toDeserializedForm(testCreate)).Return(true, nil)
delegate.EXPECT().PostInbox(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(ErrTargetRequired)
// Run the test
@ -677,6 +685,7 @@ func TestBaseActor(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostInboxRequest(testCreate))
delegate.EXPECT().AuthenticatePostInbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostInboxRequestBodyHook(ctx, req, toDeserializedForm(testCreate)).Return(ctx, nil)
delegate.EXPECT().AuthorizePostInbox(ctx, resp, toDeserializedForm(testCreate)).Return(true, nil)
delegate.EXPECT().PostInbox(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(nil)
delegate.EXPECT().InboxForwarding(ctx, mustParse(testMyInboxIRI), toDeserializedForm(testCreate)).Return(nil)
@ -695,6 +704,7 @@ func TestBaseActor(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testCreateNoId))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testCreateNoId)).Return(ctx, nil)
delegate.EXPECT().AddNewIds(ctx, toDeserializedForm(testCreateNoId)).DoAndReturn(func(c context.Context, activity Activity) error {
withNewId(activity)
return nil
@ -722,6 +732,7 @@ func TestBaseActor(t *testing.T) {
resp := httptest.NewRecorder()
req := toAPRequest(toPostOutboxRequest(testCreateNoId))
delegate.EXPECT().AuthenticatePostOutbox(ctx, resp, req).Return(ctx, true, nil)
delegate.EXPECT().PostOutboxRequestBodyHook(ctx, req, toDeserializedForm(testCreateNoId)).Return(ctx, nil)
delegate.EXPECT().AddNewIds(ctx, toDeserializedForm(testCreateNoId)).DoAndReturn(func(c context.Context, activity Activity) error {
withNewId(activity)
return nil

View File

@ -101,7 +101,7 @@ type Database interface {
// at the specified IRI, for prepending new items.
//
// The library makes this call only after acquiring a lock first.
GetOutbox(c context.Context, inboxIRI *url.URL) (inbox vocab.ActivityStreamsOrderedCollectionPage, err error)
GetOutbox(c context.Context, outboxIRI *url.URL) (inbox 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.

View File

@ -443,6 +443,10 @@ func (w FederatingWrappedCallbacks) follow(c context.Context, a vocab.ActivitySt
return err
}
items := followers.GetActivityStreamsItems()
if items == nil {
items = streams.NewActivityStreamsItemsProperty()
followers.SetActivityStreamsItems(items)
}
for _, elem := range recipients {
items.PrependIRI(elem)
}
@ -552,8 +556,8 @@ func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivitySt
if maybeMyFollowIRI != nil {
// Verify our Follow request exists and the peer didn't
// fabricate it.
actors := a.GetActivityStreamsActor()
if actors == nil || actors.Len() == 0 {
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
@ -596,7 +600,7 @@ func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivitySt
}
// Build map of original Accept actors
acceptActors := make(map[string]bool)
for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
for iter := activityActors.Begin(); iter != activityActors.End(); iter = iter.Next() {
id, err := ToId(iter)
if err != nil {
return err
@ -635,7 +639,11 @@ func (w FederatingWrappedCallbacks) accept(c context.Context, a vocab.ActivitySt
return err
}
items := following.GetActivityStreamsItems()
for iter := actors.Begin(); iter != actors.End(); iter = iter.Next() {
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)
@ -857,9 +865,11 @@ func (w FederatingWrappedCallbacks) announce(c context.Context, a vocab.Activity
}
return nil
}
for iter := op.Begin(); iter != op.End(); iter = iter.Next() {
if err := loopFn(iter); err != nil {
return err
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 {

File diff suppressed because it is too large Load Diff

105
pub/handlers_test.go Normal file
View File

@ -0,0 +1,105 @@
package pub
import (
"context"
"fmt"
"io/ioutil"
"net/http"
"net/http/httptest"
"testing"
"github.com/golang/mock/gomock"
)
// TestActivityStreamsHandler tests the handler for serving ActivityPub
// requests.
func TestActivityStreamsHandler(t *testing.T) {
ctx := context.Background()
setupFn := func(ctl *gomock.Controller) (db *MockDatabase, clock *MockClock, hf HandlerFunc) {
db = NewMockDatabase(ctl)
clock = NewMockClock(ctl)
hf = NewActivityStreamsHandler(db, clock)
return
}
t.Run("IgnoresIfNotActivityPubGetRequest", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, hf := setupFn(ctl)
resp := httptest.NewRecorder()
req := httptest.NewRequest("GET", testNoteId1, nil)
// Run & Verify
isAPReq, err := hf(ctx, resp, req)
assertEqual(t, isAPReq, false)
assertEqual(t, err, nil)
assertEqual(t, len(resp.Result().Header), 0)
})
t.Run("ReturnsErrorWhenDatabaseFetchReturnsError", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
mockDb, _, hf := setupFn(ctl)
resp := httptest.NewRecorder()
req := toAPRequest(httptest.NewRequest("GET", testNoteId1, nil))
testErr := fmt.Errorf("test error")
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testNoteId1))
mockDb.EXPECT().Get(ctx, mustParse(testNoteId1)).Return(nil, testErr)
mockDb.EXPECT().Unlock(ctx, mustParse(testNoteId1))
// Run & Verify
isAPReq, err := hf(ctx, resp, req)
assertEqual(t, isAPReq, true)
assertEqual(t, err, testErr)
assertEqual(t, len(resp.Result().Header), 0)
})
t.Run("ServesTombstoneWithStatusGone", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
mockDb, mockClock, hf := setupFn(ctl)
resp := httptest.NewRecorder()
req := toAPRequest(httptest.NewRequest("GET", testNoteId1, nil))
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testNoteId1))
mockDb.EXPECT().Get(ctx, mustParse(testNoteId1)).Return(testTombstone, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testNoteId1))
mockClock.EXPECT().Now().Return(now())
// Run & Verify
isAPReq, err := hf(ctx, resp, req)
assertEqual(t, isAPReq, true)
assertEqual(t, err, nil)
assertEqual(t, resp.Code, http.StatusGone)
respV := resp.Result()
assertEqual(t, respV.Header.Get(contentTypeHeader), "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")
assertEqual(t, respV.Header.Get(dateHeader), nowDateHeader())
assertNotEqual(t, len(respV.Header.Get(digestHeader)), 0)
b, err := ioutil.ReadAll(respV.Body)
assertEqual(t, err, nil)
assertByteEqual(t, b, mustSerializeToBytes(testTombstone))
})
t.Run("ServesContentWithStatusOk", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
mockDb, mockClock, hf := setupFn(ctl)
resp := httptest.NewRecorder()
req := toAPRequest(httptest.NewRequest("GET", testNoteId1, nil))
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testNoteId1))
mockDb.EXPECT().Get(ctx, mustParse(testNoteId1)).Return(testMyNote, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testNoteId1))
mockClock.EXPECT().Now().Return(now())
// Run & Verify
isAPReq, err := hf(ctx, resp, req)
assertEqual(t, isAPReq, true)
assertEqual(t, err, nil)
assertEqual(t, resp.Code, http.StatusOK)
respV := resp.Result()
assertEqual(t, respV.Header.Get(contentTypeHeader), "application/ld+json; profile=\"https://www.w3.org/ns/activitystreams\"")
assertEqual(t, respV.Header.Get(dateHeader), nowDateHeader())
assertNotEqual(t, len(respV.Header.Get(digestHeader)), 0)
b, err := ioutil.ReadAll(respV.Body)
assertEqual(t, err, nil)
assertByteEqual(t, b, mustSerializeToBytes(testMyNote))
})
}

View File

@ -240,32 +240,32 @@ func (mr *MockDatabaseMockRecorder) Delete(c, id interface{}) *gomock.Call {
}
// GetOutbox mocks base method
func (m *MockDatabase) GetOutbox(c context.Context, inboxIRI *url.URL) (vocab.ActivityStreamsOrderedCollectionPage, error) {
func (m *MockDatabase) GetOutbox(c context.Context, outboxIRI *url.URL) (vocab.ActivityStreamsOrderedCollectionPage, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetOutbox", c, inboxIRI)
ret := m.ctrl.Call(m, "GetOutbox", c, outboxIRI)
ret0, _ := ret[0].(vocab.ActivityStreamsOrderedCollectionPage)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetOutbox indicates an expected call of GetOutbox
func (mr *MockDatabaseMockRecorder) GetOutbox(c, inboxIRI interface{}) *gomock.Call {
func (mr *MockDatabaseMockRecorder) GetOutbox(c, outboxIRI interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOutbox", reflect.TypeOf((*MockDatabase)(nil).GetOutbox), c, inboxIRI)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetOutbox", reflect.TypeOf((*MockDatabase)(nil).GetOutbox), c, outboxIRI)
}
// SetOutbox mocks base method
func (m *MockDatabase) SetOutbox(c context.Context, inbox vocab.ActivityStreamsOrderedCollectionPage) error {
func (m *MockDatabase) SetOutbox(c context.Context, outbox vocab.ActivityStreamsOrderedCollectionPage) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SetOutbox", c, inbox)
ret := m.ctrl.Call(m, "SetOutbox", c, outbox)
ret0, _ := ret[0].(error)
return ret0
}
// SetOutbox indicates an expected call of SetOutbox
func (mr *MockDatabaseMockRecorder) SetOutbox(c, inbox interface{}) *gomock.Call {
func (mr *MockDatabaseMockRecorder) SetOutbox(c, outbox interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOutbox", reflect.TypeOf((*MockDatabase)(nil).SetOutbox), c, inbox)
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SetOutbox", reflect.TypeOf((*MockDatabase)(nil).SetOutbox), c, outbox)
}
// NewId mocks base method

166
pub/mock_httpsig_test.go Normal file
View File

@ -0,0 +1,166 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: ../../httpsig/httpsig.go
// Package pub is a generated GoMock package.
package pub
import (
crypto "crypto"
httpsig "github.com/go-fed/httpsig"
gomock "github.com/golang/mock/gomock"
http "net/http"
reflect "reflect"
)
// MockSigner is a mock of Signer interface
type MockSigner struct {
ctrl *gomock.Controller
recorder *MockSignerMockRecorder
}
// MockSignerMockRecorder is the mock recorder for MockSigner
type MockSignerMockRecorder struct {
mock *MockSigner
}
// NewMockSigner creates a new mock instance
func NewMockSigner(ctrl *gomock.Controller) *MockSigner {
mock := &MockSigner{ctrl: ctrl}
mock.recorder = &MockSignerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockSigner) EXPECT() *MockSignerMockRecorder {
return m.recorder
}
// SignRequest mocks base method
func (m *MockSigner) SignRequest(pKey crypto.PrivateKey, pubKeyId string, r *http.Request, body []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignRequest", pKey, pubKeyId, r, body)
ret0, _ := ret[0].(error)
return ret0
}
// SignRequest indicates an expected call of SignRequest
func (mr *MockSignerMockRecorder) SignRequest(pKey, pubKeyId, r, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignRequest", reflect.TypeOf((*MockSigner)(nil).SignRequest), pKey, pubKeyId, r, body)
}
// SignResponse mocks base method
func (m *MockSigner) SignResponse(pKey crypto.PrivateKey, pubKeyId string, r http.ResponseWriter, body []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignResponse", pKey, pubKeyId, r, body)
ret0, _ := ret[0].(error)
return ret0
}
// SignResponse indicates an expected call of SignResponse
func (mr *MockSignerMockRecorder) SignResponse(pKey, pubKeyId, r, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignResponse", reflect.TypeOf((*MockSigner)(nil).SignResponse), pKey, pubKeyId, r, body)
}
// MockSSHSigner is a mock of SSHSigner interface
type MockSSHSigner struct {
ctrl *gomock.Controller
recorder *MockSSHSignerMockRecorder
}
// MockSSHSignerMockRecorder is the mock recorder for MockSSHSigner
type MockSSHSignerMockRecorder struct {
mock *MockSSHSigner
}
// NewMockSSHSigner creates a new mock instance
func NewMockSSHSigner(ctrl *gomock.Controller) *MockSSHSigner {
mock := &MockSSHSigner{ctrl: ctrl}
mock.recorder = &MockSSHSignerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockSSHSigner) EXPECT() *MockSSHSignerMockRecorder {
return m.recorder
}
// SignRequest mocks base method
func (m *MockSSHSigner) SignRequest(pubKeyId string, r *http.Request, body []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignRequest", pubKeyId, r, body)
ret0, _ := ret[0].(error)
return ret0
}
// SignRequest indicates an expected call of SignRequest
func (mr *MockSSHSignerMockRecorder) SignRequest(pubKeyId, r, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignRequest", reflect.TypeOf((*MockSSHSigner)(nil).SignRequest), pubKeyId, r, body)
}
// SignResponse mocks base method
func (m *MockSSHSigner) SignResponse(pubKeyId string, r http.ResponseWriter, body []byte) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SignResponse", pubKeyId, r, body)
ret0, _ := ret[0].(error)
return ret0
}
// SignResponse indicates an expected call of SignResponse
func (mr *MockSSHSignerMockRecorder) SignResponse(pubKeyId, r, body interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SignResponse", reflect.TypeOf((*MockSSHSigner)(nil).SignResponse), pubKeyId, r, body)
}
// MockVerifier is a mock of Verifier interface
type MockVerifier struct {
ctrl *gomock.Controller
recorder *MockVerifierMockRecorder
}
// MockVerifierMockRecorder is the mock recorder for MockVerifier
type MockVerifierMockRecorder struct {
mock *MockVerifier
}
// NewMockVerifier creates a new mock instance
func NewMockVerifier(ctrl *gomock.Controller) *MockVerifier {
mock := &MockVerifier{ctrl: ctrl}
mock.recorder = &MockVerifierMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use
func (m *MockVerifier) EXPECT() *MockVerifierMockRecorder {
return m.recorder
}
// KeyId mocks base method
func (m *MockVerifier) KeyId() string {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "KeyId")
ret0, _ := ret[0].(string)
return ret0
}
// KeyId indicates an expected call of KeyId
func (mr *MockVerifierMockRecorder) KeyId() *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "KeyId", reflect.TypeOf((*MockVerifier)(nil).KeyId))
}
// Verify mocks base method
func (m *MockVerifier) Verify(pKey crypto.PublicKey, algo httpsig.Algorithm) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "Verify", pKey, algo)
ret0, _ := ret[0].(error)
return ret0
}
// Verify indicates an expected call of Verify
func (mr *MockVerifierMockRecorder) Verify(pKey, algo interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "Verify", reflect.TypeOf((*MockVerifier)(nil).Verify), pKey, algo)
}

View File

@ -24,6 +24,8 @@ const (
testFederatedActorIRI2 = "https://other.example.com/addison"
testFederatedActorIRI3 = "https://other.example.com/sam"
testFederatedActorIRI4 = "https://other.example.com/jessie"
testFederatedInboxIRI = "https://other.example.com/dakota/inbox"
testFederatedInboxIRI2 = "https://other.example.com/addison/inbox"
testNoteId1 = "https://example.com/note/1"
testNoteId2 = "https://example.com/note/2"
testNewActivityIRI = "https://example.com/new/1"
@ -76,8 +78,10 @@ func assertNotEqual(t *testing.T, a, b interface{}) {
var (
// testErr is a test error.
testErr = errors.New("test error")
// testNote is a test Note from a federated peer.
// testFederatedNote is a test Note from a federated peer.
testFederatedNote vocab.ActivityStreamsNote
// testFederatedNote2 is a test Note from a federated peer.
testFederatedNote2 vocab.ActivityStreamsNote
// testMyNote is a test Note owned by this server.
testMyNote vocab.ActivityStreamsNote
// testMyNoteNoId is a test Note owned by this server.
@ -124,6 +128,12 @@ var (
testOrderedCollectionWithBothFederatedIds vocab.ActivityStreamsOrderedCollectionPage
// testPerson is a Person.
testPerson vocab.ActivityStreamsPerson
// testMyPerson is my Person.
testMyPerson vocab.ActivityStreamsPerson
// testFederatedPerson1 is a federated Person.
testFederatedPerson1 vocab.ActivityStreamsPerson
// testFederatedPerson2 is a federated Person.
testFederatedPerson2 vocab.ActivityStreamsPerson
// testService is a Service.
testService vocab.ActivityStreamsService
// testCollectionOfActors is a collection of actors.
@ -132,6 +142,10 @@ var (
testOrderedCollectionOfActors vocab.ActivityStreamsOrderedCollectionPage
// testNestedInReplyTo is an Activity with an 'object' with an 'inReplyTo'
testNestedInReplyTo vocab.ActivityStreamsListen
// testFollow is a test Follow Activity.
testFollow vocab.ActivityStreamsFollow
// testTombstone is a test Tombsone.
testTombstone vocab.ActivityStreamsTombstone
)
// The test data cannot be created at init time since that is when the hooks of
@ -151,6 +165,19 @@ func setupData() {
id.Set(mustParse(testNoteId1))
testFederatedNote.SetJSONLDId(id)
}()
// testFederatedNote2
func() {
testFederatedNote2 = streams.NewActivityStreamsNote()
name := streams.NewActivityStreamsNameProperty()
name.AppendXMLSchemaString("A second federated note")
testFederatedNote2.SetActivityStreamsName(name)
content := streams.NewActivityStreamsContentProperty()
content.AppendXMLSchemaString("This is a simple second note being federated.")
testFederatedNote2.SetActivityStreamsContent(content)
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testNoteId2))
testFederatedNote2.SetJSONLDId(id)
}()
// testMyNote
func() {
testMyNote = streams.NewActivityStreamsNote()
@ -326,6 +353,39 @@ func setupData() {
id.Set(mustParse(testPersonIRI))
testPerson.SetJSONLDId(id)
}()
// testMyPerson
func() {
testMyPerson = streams.NewActivityStreamsPerson()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testPersonIRI))
testMyPerson.SetJSONLDId(id)
inbox := streams.NewActivityStreamsInboxProperty()
inbox.SetIRI(mustParse(testMyInboxIRI))
testMyPerson.SetActivityStreamsInbox(inbox)
outbox := streams.NewActivityStreamsOutboxProperty()
outbox.SetIRI(mustParse(testMyOutboxIRI))
testMyPerson.SetActivityStreamsOutbox(outbox)
}()
// testFederatedPerson1
func() {
testFederatedPerson1 = streams.NewActivityStreamsPerson()
id := streams.NewJSONLDIdProperty()
id.SetIRI(mustParse(testFederatedActorIRI))
testFederatedPerson1.SetJSONLDId(id)
inbox := streams.NewActivityStreamsInboxProperty()
inbox.SetIRI(mustParse(testFederatedInboxIRI))
testFederatedPerson1.SetActivityStreamsInbox(inbox)
}()
// testFederatedPerson2
func() {
testFederatedPerson2 = streams.NewActivityStreamsPerson()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testFederatedActorIRI2))
testFederatedPerson2.SetJSONLDId(id)
inbox := streams.NewActivityStreamsInboxProperty()
inbox.SetIRI(mustParse(testFederatedInboxIRI2))
testFederatedPerson2.SetActivityStreamsInbox(inbox)
}()
// testService
func() {
testService = streams.NewActivityStreamsService()
@ -378,6 +438,26 @@ func setupData() {
op.AppendActivityStreamsNote(note)
testNestedInReplyTo.SetActivityStreamsObject(op)
}()
// testFollow
func() {
testFollow = streams.NewActivityStreamsFollow()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testFederatedActivityIRI))
testFollow.SetJSONLDId(id)
actor := streams.NewActivityStreamsActorProperty()
actor.AppendIRI(mustParse(testFederatedActorIRI2))
testFollow.SetActivityStreamsActor(actor)
op := streams.NewActivityStreamsObjectProperty()
op.AppendIRI(mustParse(testFederatedActorIRI))
testFollow.SetActivityStreamsObject(op)
}()
// testTombstone
func() {
testTombstone = streams.NewActivityStreamsTombstone()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testFederatedActivityIRI))
testTombstone.SetJSONLDId(id)
}()
}
// wrappedInCreate returns a Create activity wrapping the given type.

View File

@ -2,11 +2,15 @@ package pub
import (
"context"
"github.com/go-fed/activity/streams/vocab"
"github.com/golang/mock/gomock"
"fmt"
"net/http/httptest"
"net/url"
"testing"
"time"
"github.com/go-fed/activity/streams"
"github.com/go-fed/activity/streams/vocab"
"github.com/golang/mock/gomock"
)
// TestPassThroughMethods tests the methods that pass-through to other
@ -217,7 +221,7 @@ func TestPostInbox(t *testing.T) {
db.EXPECT().SetInbox(ctx, testOrderedCollectionWithFederatedId).Return(nil),
db.EXPECT().Unlock(ctx, inboxIRI),
)
fp.EXPECT().Callbacks(ctx).Return(FederatingWrappedCallbacks{}, nil)
fp.EXPECT().Callbacks(ctx).Return(FederatingWrappedCallbacks{}, nil, nil)
fp.EXPECT().DefaultCallback(ctx, testListen).Return(nil)
// Run
err := a.PostInbox(ctx, inboxIRI, testListen)
@ -253,7 +257,7 @@ func TestPostInbox(t *testing.T) {
db.EXPECT().SetInbox(ctx, testOrderedCollectionWithBothFederatedIds).Return(nil),
db.EXPECT().Unlock(ctx, inboxIRI),
)
fp.EXPECT().Callbacks(ctx).Return(FederatingWrappedCallbacks{}, nil)
fp.EXPECT().Callbacks(ctx).Return(FederatingWrappedCallbacks{}, nil, nil)
fp.EXPECT().DefaultCallback(ctx, testListen).Return(nil)
// Run
err := a.PostInbox(ctx, inboxIRI, testListen)
@ -279,7 +283,7 @@ func TestPostInbox(t *testing.T) {
pass = true
return nil
},
})
}, nil)
// Run
err := a.PostInbox(ctx, inboxIRI, testListen)
// Verify
@ -305,7 +309,7 @@ func TestPostInbox(t *testing.T) {
pass = true
return nil
},
})
}, nil)
// Run
err := a.PostInbox(ctx, inboxIRI, testCreate)
// Verify
@ -331,7 +335,7 @@ func TestPostInbox(t *testing.T) {
pass = true
return nil
},
}, nil)
}, nil, nil)
db.EXPECT().Lock(ctx, mustParse(testNoteId1))
db.EXPECT().Create(ctx, testFederatedNote)
db.EXPECT().Unlock(ctx, mustParse(testNoteId1))
@ -853,7 +857,7 @@ func TestPostOutbox(t *testing.T) {
db.EXPECT().SetOutbox(ctx, testOrderedCollectionWithNewId).Return(nil),
db.EXPECT().Unlock(ctx, outboxIRI),
)
sp.EXPECT().Callbacks(ctx).Return(SocialWrappedCallbacks{}, nil)
sp.EXPECT().Callbacks(ctx).Return(SocialWrappedCallbacks{}, nil, nil)
sp.EXPECT().DefaultCallback(ctx, testMyListen).Return(nil)
// Run
deliverable, err := a.PostOutbox(ctx, testMyListen, outboxIRI, mustSerialize(testMyListen))
@ -876,7 +880,7 @@ func TestPostOutbox(t *testing.T) {
db.EXPECT().SetOutbox(ctx, testOrderedCollectionWithBothNewIds).Return(nil),
db.EXPECT().Unlock(ctx, outboxIRI),
)
sp.EXPECT().Callbacks(ctx).Return(SocialWrappedCallbacks{}, nil)
sp.EXPECT().Callbacks(ctx).Return(SocialWrappedCallbacks{}, nil, nil)
sp.EXPECT().DefaultCallback(ctx, testMyListen).Return(nil)
// Run
deliverable, err := a.PostOutbox(ctx, testMyListen, outboxIRI, mustSerialize(testMyListen))
@ -905,7 +909,7 @@ func TestPostOutbox(t *testing.T) {
pass = true
return nil
},
})
}, nil)
// Run
deliverable, err := a.PostOutbox(ctx, testMyListen, outboxIRI, mustSerialize(testMyListen))
// Verify
@ -934,7 +938,7 @@ func TestPostOutbox(t *testing.T) {
pass = true
return nil
},
})
}, nil)
// Run
deliverable, err := a.PostOutbox(ctx, testMyCreate, outboxIRI, mustSerialize(testMyCreate))
// Verify
@ -963,7 +967,7 @@ func TestPostOutbox(t *testing.T) {
pass = true
return nil
},
}, nil)
}, nil, nil)
db.EXPECT().Lock(ctx, mustParse(testNoteId1))
db.EXPECT().Create(ctx, testMyNote)
db.EXPECT().Unlock(ctx, mustParse(testNoteId1))
@ -1068,78 +1072,759 @@ func TestAddNewIds(t *testing.T) {
// TestDeliver ensures federated delivery of an activity happens correctly to
// the ActivityPub specification.
func TestDeliver(t *testing.T) {
baseActivityFn := func() vocab.ActivityStreamsCreate {
act := streams.NewActivityStreamsCreate()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testNewActivityIRI))
act.SetJSONLDId(id)
op := streams.NewActivityStreamsObjectProperty()
note := streams.NewActivityStreamsNote()
op.AppendActivityStreamsNote(note)
act.SetActivityStreamsObject(op)
return act
}
ctx := context.Background()
setupFn := func(ctl *gomock.Controller) (c *MockCommonBehavior, fp *MockFederatingProtocol, sp *MockSocialProtocol, db *MockDatabase, cl *MockClock, a DelegateActor) {
setupData()
c = NewMockCommonBehavior(ctl)
fp = NewMockFederatingProtocol(ctl)
sp = NewMockSocialProtocol(ctl)
db = NewMockDatabase(ctl)
cl = NewMockClock(ctl)
a = &sideEffectActor{
common: c,
s2s: fp,
c2s: sp,
db: db,
clock: cl,
}
return
}
t.Run("SendToRecipientsInTo", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("SendToRecipientsInBto", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
bto := streams.NewActivityStreamsBtoProperty()
bto.AppendIRI(mustParse(testFederatedActorIRI))
bto.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBto(bto)
expectAct := baseActivityFn() // Ensure Bto is stripped
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(expectAct), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("SendToRecipientsInCc", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
cc := streams.NewActivityStreamsCcProperty()
cc.AppendIRI(mustParse(testFederatedActorIRI))
cc.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsCc(cc)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("SendToRecipientsInBcc", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
bcc := streams.NewActivityStreamsBccProperty()
bcc.AppendIRI(mustParse(testFederatedActorIRI))
bcc.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBcc(bcc)
expectAct := baseActivityFn() // Ensure Bcc is stripped
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(expectAct), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("SendToRecipientsInAudience", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
aud := streams.NewActivityStreamsAudienceProperty()
aud.AppendIRI(mustParse(testFederatedActorIRI))
aud.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsAudience(aud)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("DoesNotSendToPublicIRI", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
to.AppendIRI(mustParse(PublicActivityPubIRI))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("RecursivelyResolveCollectionActors", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testAudienceIRI))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(2)
mockTp.EXPECT().Dereference(ctx, mustParse(testAudienceIRI)).Return(
mustSerializeToBytes(testCollectionOfActors), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("RecursivelyResolveOrderedCollectionActors", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testAudienceIRI))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(2)
mockTp.EXPECT().Dereference(ctx, mustParse(testAudienceIRI)).Return(
mustSerializeToBytes(testOrderedCollectionOfActors), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI3)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI4)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("DoesNotRecursivelyResolveCollectionActorsIfExceedingMaxDepth", func(t *testing.T) {
t.Errorf("Not yet implemented.")
})
t.Run("DoesNotSendIfMoreThanOneAttributedTo", func(t *testing.T) {
t.Errorf("Not yet implemented.")
})
t.Run("DoesNotSendIfThisActorIsNotInAttributedTo", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testAudienceIRI))
act.SetActivityStreamsTo(to)
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testAudienceIRI)).Return(
mustSerializeToBytes(testCollectionOfActors), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), nil)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("DedupesRecipients", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsTo(to)
bto := streams.NewActivityStreamsBtoProperty()
bto.AppendIRI(mustParse(testFederatedActorIRI))
bto.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBto(bto)
cc := streams.NewActivityStreamsCcProperty()
cc.AppendIRI(mustParse(testFederatedActorIRI))
cc.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsCc(cc)
bcc := streams.NewActivityStreamsBccProperty()
bcc.AppendIRI(mustParse(testFederatedActorIRI))
bcc.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBcc(bcc)
expectAct := baseActivityFn() // Ensure Bcc & Bto are stripped
expectAct.SetActivityStreamsTo(to)
expectAct.SetActivityStreamsCc(cc)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil).Times(4)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil).Times(4)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(expectAct), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("StripsBto", func(t *testing.T) {
t.Errorf("Not yet implemented.")
t.Run("StripsBtoOnObject", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
bto := streams.NewActivityStreamsBtoProperty()
bto.AppendIRI(mustParse(testFederatedActorIRI))
bto.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBto(bto)
act.GetActivityStreamsObject().At(0).GetActivityStreamsNote().SetActivityStreamsBto(bto)
expectAct := baseActivityFn() // Ensure Bto is stripped
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(expectAct), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("StripsBcc", func(t *testing.T) {
t.Errorf("Not yet implemented.")
t.Run("StripsBccOnObject", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
bcc := streams.NewActivityStreamsBccProperty()
bcc.AppendIRI(mustParse(testFederatedActorIRI))
bcc.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsBcc(bcc)
act.GetActivityStreamsObject().At(0).GetActivityStreamsNote().SetActivityStreamsBcc(bcc)
expectAct := baseActivityFn() // Ensure Bto is stripped
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(expectAct), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("ReturnsErrorIfAnyTransportRequestsFail", func(t *testing.T) {
t.Errorf("Not yet implemented.")
t.Run("DoesNotReturnErrorIfDereferenceRecipientFails", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI2),
}
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
[]byte{}, fmt.Errorf("test error"))
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, nil)
})
t.Run("ReturnsErrorIfBatchDeliverFails", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
c, mockFp, _, mockDb, _, a := setupFn(ctl)
mockTp := NewMockTransport(ctl)
act := baseActivityFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
act.SetActivityStreamsTo(to)
expectRecip := []*url.URL{
mustParse(testFederatedInboxIRI),
mustParse(testFederatedInboxIRI2),
}
expectErr := fmt.Errorf("test error")
// Mock
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockFp.EXPECT().MaxDeliveryRecursionDepth(ctx).Return(1)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI)).Return(
mustSerializeToBytes(testFederatedPerson1), nil)
mockTp.EXPECT().Dereference(ctx, mustParse(testFederatedActorIRI2)).Return(
mustSerializeToBytes(testFederatedPerson2), nil)
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().Lock(ctx, mustParse(testPersonIRI))
mockDb.EXPECT().Get(ctx, mustParse(testPersonIRI)).Return(
testMyPerson, nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testPersonIRI))
c.EXPECT().NewTransport(ctx, mustParse(testMyOutboxIRI), goFedUserAgent()).Return(
mockTp, nil)
mockTp.EXPECT().BatchDeliver(ctx, mustSerializeToBytes(act), expectRecip).Return(
expectErr)
// Run & Verify
err := a.Deliver(ctx, mustParse(testMyOutboxIRI), act)
assertEqual(t, err, expectErr)
})
}
// TestWrapInCreate ensures an object received by the Social Protocol is
// properly wrapped in a Create Activity.
func TestWrapInCreate(t *testing.T) {
baseNoteFn := func() (vocab.ActivityStreamsNote, vocab.ActivityStreamsCreate) {
n := streams.NewActivityStreamsNote()
id := streams.NewJSONLDIdProperty()
id.Set(mustParse(testNoteId1))
n.SetJSONLDId(id)
cr := streams.NewActivityStreamsCreate()
op := streams.NewActivityStreamsObjectProperty()
op.AppendActivityStreamsNote(n)
cr.SetActivityStreamsObject(op)
actorProp := streams.NewActivityStreamsActorProperty()
actorProp.AppendIRI(mustParse(testPersonIRI))
cr.SetActivityStreamsActor(actorProp)
return n, cr
}
ctx := context.Background()
setupFn := func(ctl *gomock.Controller) (c *MockCommonBehavior, fp *MockFederatingProtocol, sp *MockSocialProtocol, db *MockDatabase, cl *MockClock, a DelegateActor) {
setupData()
c = NewMockCommonBehavior(ctl)
fp = NewMockFederatingProtocol(ctl)
sp = NewMockSocialProtocol(ctl)
db = NewMockDatabase(ctl)
cl = NewMockClock(ctl)
a = &sideEffectActor{
common: c,
s2s: fp,
c2s: sp,
db: db,
clock: cl,
}
return
}
t.Run("CreateHasObjectAndActor", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasTo", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
to := streams.NewActivityStreamsToProperty()
to.AppendIRI(mustParse(testFederatedActorIRI))
to.AppendIRI(mustParse(testFederatedActorIRI2))
n.SetActivityStreamsTo(to)
expect.SetActivityStreamsTo(to)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasCc", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
cc := streams.NewActivityStreamsCcProperty()
cc.AppendIRI(mustParse(testFederatedActorIRI))
cc.AppendIRI(mustParse(testFederatedActorIRI2))
n.SetActivityStreamsCc(cc)
expect.SetActivityStreamsCc(cc)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasBto", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
bto := streams.NewActivityStreamsBtoProperty()
bto.AppendIRI(mustParse(testFederatedActorIRI))
bto.AppendIRI(mustParse(testFederatedActorIRI2))
n.SetActivityStreamsBto(bto)
expect.SetActivityStreamsBto(bto)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasBcc", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
bcc := streams.NewActivityStreamsBccProperty()
bcc.AppendIRI(mustParse(testFederatedActorIRI))
bcc.AppendIRI(mustParse(testFederatedActorIRI2))
n.SetActivityStreamsBcc(bcc)
expect.SetActivityStreamsBcc(bcc)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasAudience", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
aud := streams.NewActivityStreamsAudienceProperty()
aud.AppendIRI(mustParse(testFederatedActorIRI))
aud.AppendIRI(mustParse(testFederatedActorIRI2))
n.SetActivityStreamsAudience(aud)
expect.SetActivityStreamsAudience(aud)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
t.Run("CreateHasPublished", func(t *testing.T) {
t.Errorf("Not yet implemented.")
})
t.Run("CreateHasActor", func(t *testing.T) {
t.Errorf("Not yet implemented.")
})
t.Run("CreateHasObject", func(t *testing.T) {
t.Errorf("Not yet implemented.")
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
_, _, _, mockDb, _, a := setupFn(ctl)
n, expect := baseNoteFn()
pub := streams.NewActivityStreamsPublishedProperty()
pub.Set(time.Now())
n.SetActivityStreamsPublished(pub)
expect.SetActivityStreamsPublished(pub)
// Mock
mockDb.EXPECT().Lock(ctx, mustParse(testMyOutboxIRI))
mockDb.EXPECT().ActorForOutbox(ctx, mustParse(testMyOutboxIRI)).Return(
mustParse(testPersonIRI), nil)
mockDb.EXPECT().Unlock(ctx, mustParse(testMyOutboxIRI))
// Run & Verify
got, err := a.WrapInCreate(ctx, n, mustParse(testMyOutboxIRI))
assertEqual(t, err, nil)
assertByteEqual(t, mustSerializeToBytes(got), mustSerializeToBytes(expect))
})
}

View File

@ -234,11 +234,14 @@ func (w SocialWrappedCallbacks) create(c context.Context, a vocab.ActivityStream
}
}
}
// Put all missing object attributedTo IRIs onto the actor property.
for _, attributedToMap := range objectAttributedToIds {
for k, v := range attributedToMap {
if _, ok := createActorIds[k]; !ok {
actors.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)
}
}
}
}
@ -458,7 +461,7 @@ func (w SocialWrappedCallbacks) like(c context.Context, a vocab.ActivityStreamsL
return err
}
// WARNING: Unlock not deferred.
actorIRI, err := w.db.ActorForInbox(c, w.outboxIRI)
actorIRI, err := w.db.ActorForOutbox(c, w.outboxIRI)
if err != nil {
w.db.Unlock(c, w.outboxIRI)
return err

View File

@ -137,10 +137,7 @@ func (h HttpSigTransport) Dereference(c context.Context, iri *url.URL) ([]byte,
// Deliver sends a POST request with an HTTP Signature.
func (h HttpSigTransport) Deliver(c context.Context, b []byte, to *url.URL) error {
byteCopy := make([]byte, len(b))
copy(byteCopy, b)
buf := bytes.NewBuffer(byteCopy)
req, err := http.NewRequest("POST", to.String(), buf)
req, err := http.NewRequest("POST", to.String(), bytes.NewReader(b))
if err != nil {
return err
}

159
pub/transport_test.go Normal file
View File

@ -0,0 +1,159 @@
package pub
import (
"context"
"fmt"
"net/http"
"net/http/httptest"
"net/url"
"testing"
"github.com/golang/mock/gomock"
)
const (
testAppAgent = "testApp"
testPubKeyId = "myPubKeyId"
)
var (
testPrivKey = []byte("some private key")
testRespBody = []byte("test resp body")
httpSigSetupFn = func(ctl *gomock.Controller) (t *HttpSigTransport, c *MockClock, hc *MockHttpClient, gs, ps *MockSigner) {
c = NewMockClock(ctl)
hc = NewMockHttpClient(ctl)
gs = NewMockSigner(ctl)
ps = NewMockSigner(ctl)
t = NewHttpSigTransport(
hc,
testAppAgent,
c,
gs,
ps,
testPubKeyId,
testPrivKey)
return
}
)
func TestHttpSigTransportDereference(t *testing.T) {
ctx := context.Background()
t.Run("ReturnsErrorWhenHTTPStatusError", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, gs, _ := httpSigSetupFn(ctl)
resp := &http.Response{}
testErr := fmt.Errorf("test error")
// Mock
c.EXPECT().Now().Return(now())
gs.EXPECT().SignRequest(testPrivKey, testPubKeyId, gomock.Any(), nil)
hc.EXPECT().Do(gomock.Any()).Return(resp, testErr)
// Run & Verify
b, err := tp.Dereference(ctx, mustParse(testNoteId1))
assertEqual(t, len(b), 0)
assertEqual(t, err, testErr)
})
t.Run("Dereferences", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, gs, _ := httpSigSetupFn(ctl)
expectReq, err := http.NewRequest("GET", testNoteId1, nil)
assertEqual(t, err, nil)
expectReq = expectReq.WithContext(ctx)
expectReq.Header.Add(acceptHeader, acceptHeaderValue)
expectReq.Header.Add("Accept-Charset", "utf-8")
expectReq.Header.Add("Date", nowDateHeader())
expectReq.Header.Add("User-Agent", fmt.Sprintf("%s %s", testAppAgent, goFedUserAgent()))
respR := httptest.NewRecorder()
respR.Write(testRespBody)
resp := respR.Result()
// Mock
c.EXPECT().Now().Return(now())
gs.EXPECT().SignRequest(testPrivKey, testPubKeyId, expectReq, nil)
hc.EXPECT().Do(expectReq).Return(resp, nil)
// Run & Verify
b, err := tp.Dereference(ctx, mustParse(testNoteId1))
assertByteEqual(t, b, testRespBody)
assertEqual(t, err, nil)
})
}
func TestHttpSigTransportDeliver(t *testing.T) {
ctx := context.Background()
t.Run("ReturnsErrorWhenHTTPStatusError", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, _, ps := httpSigSetupFn(ctl)
resp := &http.Response{}
testErr := fmt.Errorf("test error")
// Mock
c.EXPECT().Now().Return(now())
ps.EXPECT().SignRequest(testPrivKey, testPubKeyId, gomock.Any(), gomock.Any())
hc.EXPECT().Do(gomock.Any()).Return(resp, testErr)
// Run & Verify
err := tp.Deliver(ctx, testRespBody, mustParse(testNoteId1))
assertEqual(t, err, testErr)
})
t.Run("Delivers", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, _, ps := httpSigSetupFn(ctl)
// gomock cannot handle http.NewRequest w/ Body differences.
respR := httptest.NewRecorder()
respR.WriteHeader(http.StatusOK)
resp := respR.Result()
// Mock
c.EXPECT().Now().Return(now())
ps.EXPECT().SignRequest(testPrivKey, testPubKeyId, gomock.Any(), testRespBody)
hc.EXPECT().Do(gomock.Any()).Return(resp, nil)
// Run & Verify
err := tp.Deliver(ctx, testRespBody, mustParse(testFederatedActorIRI))
assertEqual(t, err, nil)
})
}
func TestHttpSigTransportBatchDeliver(t *testing.T) {
ctx := context.Background()
t.Run("BatchDelivers", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, _, ps := httpSigSetupFn(ctl)
// gomock cannot handle http.NewRequest w/ Body differences.
respR := httptest.NewRecorder()
respR.WriteHeader(http.StatusOK)
resp := respR.Result()
// Mock
c.EXPECT().Now().Return(now()).Times(2)
ps.EXPECT().SignRequest(testPrivKey, testPubKeyId, gomock.Any(), testRespBody).Times(2)
hc.EXPECT().Do(gomock.Any()).Return(resp, nil).Times(2)
// Run & Verify
err := tp.BatchDeliver(ctx, testRespBody, []*url.URL{mustParse(testFederatedActorIRI), mustParse(testFederatedActorIRI2)})
assertEqual(t, err, nil)
})
t.Run("ReturnsErrorWhenOneErrors", func(t *testing.T) {
// Setup
ctl := gomock.NewController(t)
defer ctl.Finish()
tp, c, hc, _, ps := httpSigSetupFn(ctl)
// gomock cannot handle http.NewRequest w/ Body differences.
respR := httptest.NewRecorder()
respR.WriteHeader(http.StatusOK)
resp := respR.Result()
errResp := &http.Response{}
testErr := fmt.Errorf("test error")
// Mock
c.EXPECT().Now().Return(now()).Times(2)
ps.EXPECT().SignRequest(testPrivKey, testPubKeyId, gomock.Any(), testRespBody).Times(2)
first := hc.EXPECT().Do(gomock.Any()).Return(resp, nil)
hc.EXPECT().Do(gomock.Any()).Return(errResp, testErr).After(first)
// Run & Verify
err := tp.BatchDeliver(ctx, testRespBody, []*url.URL{mustParse(testFederatedActorIRI), mustParse(testFederatedActorIRI2)})
assertNotEqual(t, err, nil)
})
}

View File

@ -116,14 +116,6 @@ func dedupeOrderedItems(oc orderedItemser) error {
return nil
}
const (
// jsonLDContext is the key for the JSON-LD specification's context
// value. It contains the definitions of the types contained within the
// rest of the payload. Important for linked-data representations, but
// only applicable to go-fed at code-generation time.
jsonLDContext = "@context"
)
const (
// The Location header
locationHeader = "Location"
@ -266,69 +258,74 @@ func wrapInCreate(ctx context.Context, o vocab.Type, actor *url.URL) (c vocab.Ac
}
// Copying over properties.
if v, ok := o.(toer); ok {
activityTo := streams.NewActivityStreamsToProperty()
to := v.GetActivityStreamsTo()
for iter := to.Begin(); iter != to.End(); iter = iter.Next() {
var id *url.URL
id, err = ToId(iter)
if err != nil {
return
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)
}
activityTo.AppendIRI(id)
c.SetActivityStreamsTo(activityTo)
}
c.SetActivityStreamsTo(activityTo)
}
if v, ok := o.(btoer); ok {
activityBto := streams.NewActivityStreamsBtoProperty()
bto := v.GetActivityStreamsBto()
for iter := bto.Begin(); iter != bto.End(); iter = iter.Next() {
var id *url.URL
id, err = ToId(iter)
if err != nil {
return
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)
}
activityBto.AppendIRI(id)
c.SetActivityStreamsBto(activityBto)
}
c.SetActivityStreamsBto(activityBto)
}
if v, ok := o.(ccer); ok {
activityCc := streams.NewActivityStreamsCcProperty()
cc := v.GetActivityStreamsCc()
for iter := cc.Begin(); iter != cc.End(); iter = iter.Next() {
var id *url.URL
id, err = ToId(iter)
if err != nil {
return
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)
}
activityCc.AppendIRI(id)
c.SetActivityStreamsCc(activityCc)
}
c.SetActivityStreamsCc(activityCc)
}
if v, ok := o.(bccer); ok {
activityBcc := streams.NewActivityStreamsBccProperty()
bcc := v.GetActivityStreamsBcc()
for iter := bcc.Begin(); iter != bcc.End(); iter = iter.Next() {
var id *url.URL
id, err = ToId(iter)
if err != nil {
return
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)
}
activityBcc.AppendIRI(id)
c.SetActivityStreamsBcc(activityBcc)
}
c.SetActivityStreamsBcc(activityBcc)
}
if v, ok := o.(audiencer); ok {
activityAudience := streams.NewActivityStreamsAudienceProperty()
aud := v.GetActivityStreamsAudience()
for iter := aud.Begin(); iter != aud.End(); iter = iter.Next() {
var id *url.URL
id, err = ToId(iter)
if err != nil {
return
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)
}
activityAudience.AppendIRI(id)
c.SetActivityStreamsAudience(activityAudience)
}
c.SetActivityStreamsAudience(activityAudience)
}
return
}
@ -407,16 +404,17 @@ func dedupeIRIs(recipients, ignored []*url.URL) (out []*url.URL) {
// 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) {
bto := activity.GetActivityStreamsBto()
if bto != nil {
for i := bto.Len() - 1; i >= 0; i-- {
bto.Remove(i)
}
}
bcc := activity.GetActivityStreamsBcc()
if bcc != nil {
for i := bcc.Len() - 1; i >= 0; i-- {
bcc.Remove(i)
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)
}
}
}
}
@ -754,27 +752,27 @@ func mustHaveActivityActorsMatchObjectActors(c context.Context,
activityActorMap[id.String()] = true
}
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 := newTransport(c, boxIRI, 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 {
return fmt.Errorf("cannot verify actors: object is neither a value nor IRI")
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 {
@ -972,20 +970,10 @@ func remove(c context.Context,
// and recursively on every 'object' property value.
func clearSensitiveFields(obj vocab.Type) {
if t, ok := obj.(btoer); ok {
bto := t.GetActivityStreamsBto()
if bto != nil {
for bto.Len() > 0 {
bto.Remove(0)
}
}
t.SetActivityStreamsBto(nil)
}
if t, ok := obj.(bccer); ok {
bcc := t.GetActivityStreamsBcc()
if bcc != nil {
for bcc.Len() > 0 {
bcc.Remove(0)
}
}
t.SetActivityStreamsBcc(nil)
}
if t, ok := obj.(objecter); ok {
op := t.GetActivityStreamsObject()

View File

@ -47,6 +47,9 @@ 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"
@ -59,6 +62,9 @@ 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"
@ -191,6 +197,9 @@ 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"
@ -218,12 +227,18 @@ var ActivityStreamsDeletedPropertyName string = "deleted"
// ActivityStreamsDescribesPropertyName is the string literal of the name for the describes property in the ActivityStreams vocabulary.
var ActivityStreamsDescribesPropertyName string = "describes"
// 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"
// 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"
// ActivityStreamsFirstPropertyName is the string literal of the name for the first property in the ActivityStreams vocabulary.
var ActivityStreamsFirstPropertyName string = "first"
@ -356,6 +371,12 @@ 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"
// ActivityStreamsStartIndexPropertyName is the string literal of the name for the startIndex property in the ActivityStreams vocabulary.
var ActivityStreamsStartIndexPropertyName string = "startIndex"
@ -395,5 +416,8 @@ 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"

View File

@ -1,9 +1,9 @@
// Code generated by astool. DO NOT EDIT.
// Package 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.
// 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

View File

@ -127,6 +127,14 @@ import (
typeupdate "github.com/go-fed/activity/streams/impl/activitystreams/type_update"
typevideo "github.com/go-fed/activity/streams/impl/activitystreams/type_video"
typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
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"
@ -270,6 +278,14 @@ func init() {
typeupdate.SetManager(mgr)
typevideo.SetManager(mgr)
typeview.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)
@ -328,5 +344,7 @@ func init() {
typeupdate.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typevideo.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeview.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeemoji.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typeidentityproof.SetTypePropertyConstructor(NewJSONLDTypeProperty)
typepublickey.SetTypePropertyConstructor(NewJSONLDTypeProperty)
}

View File

@ -61,6 +61,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, 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:
@ -69,6 +71,8 @@ func NewJSONResolver(callbacks ...interface{}) (*JSONResolver, 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:
@ -166,7 +170,6 @@ func toAliasMap(i interface{}) (m map[string]string) {
switch v := i.(type) {
case string:
// Single entry, no alias.
if ok, http, https := toHttpHttpsFn(v); ok {
m[http] = ""
m[https] = ""
@ -175,7 +178,6 @@ func toAliasMap(i interface{}) (m map[string]string) {
}
case []interface{}:
// Recursively apply.
for _, elem := range v {
r := toAliasMap(elem)
for k, val := range r {
@ -184,7 +186,6 @@ func toAliasMap(i interface{}) (m map[string]string) {
}
case map[string]interface{}:
// Map any aliases.
for k, val := range v {
// Only handle string aliases.
switch conc := val.(type) {
@ -223,6 +224,13 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
if len(ActivityStreamsAlias) > 0 {
ActivityStreamsAlias += ":"
}
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"]
@ -396,6 +404,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
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 {
@ -440,6 +459,17 @@ func (this JSONResolver) Resolve(ctx context.Context, m map[string]interface{})
}
}
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 {

View File

@ -129,6 +129,14 @@ import (
typeview "github.com/go-fed/activity/streams/impl/activitystreams/type_view"
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"
@ -363,6 +371,18 @@ func (this Manager) DeserializeBlockActivityStreams() func(map[string]interface{
}
}
// 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
}
}
// DeserializeBtoPropertyActivityStreams returns the deserialization method for
// the "ActivityStreamsBtoProperty" non-functional property in the vocabulary
// "ActivityStreams"
@ -519,6 +539,18 @@ func (this Manager) DeserializeDescribesPropertyActivityStreams() func(map[strin
}
}
// 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"
@ -558,6 +590,18 @@ func (this Manager) DeserializeDurationPropertyActivityStreams() func(map[string
}
}
// 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"
@ -584,6 +628,18 @@ func (this Manager) DeserializeEventActivityStreams() func(map[string]interface{
}
}
// 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
}
}
// DeserializeFirstPropertyActivityStreams returns the deserialization method for
// the "ActivityStreamsFirstProperty" non-functional property in the
// vocabulary "ActivityStreams"
@ -752,6 +808,18 @@ func (this Manager) DeserializeIdPropertyJSONLD() func(map[string]interface{}, m
}
}
// 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"
@ -1545,6 +1613,32 @@ func (this Manager) DeserializeSharesPropertyActivityStreams() func(map[string]i
}
}
// 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
}
}
// DeserializeStartIndexPropertyActivityStreams returns the deserialization method
// for the "ActivityStreamsStartIndexProperty" non-functional property in the
// vocabulary "ActivityStreams"
@ -1817,6 +1911,18 @@ func (this Manager) DeserializeViewActivityStreams() func(map[string]interface{}
}
}
// 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"

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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)
}

View File

@ -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()
}

View File

@ -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()
}

View File

@ -91,6 +91,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
}, 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
@ -103,6 +106,9 @@ func ToType(c context.Context, m map[string]interface{}) (t vocab.Type, err erro
}, 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

View File

@ -59,6 +59,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
// 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):
@ -67,6 +69,8 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
// 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):
@ -323,6 +327,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} 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 {
@ -367,6 +382,17 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} 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 {

View File

@ -58,6 +58,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, 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:
@ -66,6 +68,8 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, 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:
@ -288,6 +292,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
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 {
@ -324,6 +337,15 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
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 {

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsActorPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsActorPropertyIterator(i interface{}, aliasMap map
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsActorPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsActorPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsActorPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsActorPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsActorPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsActorPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsActorPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsActorPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsActorPropertyIterator) serialize() (interface{}, error
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsActorProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsActorProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsActorProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5409,6 +5563,34 @@ func (this *ActivityStreamsActorProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6175,6 +6357,31 @@ func (this *ActivityStreamsActorProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsAnyOfPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsAnyOfPropertyIterator(i interface{}, aliasMap map
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsAnyOfPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsAnyOfPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsAnyOfPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsAnyOfPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsAnyOfPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsAnyOfPropertyIterator) serialize() (interface{}, error
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsAnyOfProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsAnyOfProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsAnyOfProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5409,6 +5563,34 @@ func (this *ActivityStreamsAnyOfProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6175,6 +6357,31 @@ func (this *ActivityStreamsAnyOfProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsAttachmentPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsAttachmentPropertyIterator(i interface{}, aliasMa
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsAttachmentPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsAttachmentPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) JSONLDContext() map[string
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsAttachmentPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsAttachmentPropertyIterator) SetType(t vocab.Type) err
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsAttachmentPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{},
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsAttachmentPropertyIterator) serialize() (interface{},
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() {
@ -3352,6 +3442,29 @@ func (this *ActivityStreamsAttachmentProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4333,6 +4446,40 @@ func (this *ActivityStreamsAttachmentProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4463,150 +4610,158 @@ func (this ActivityStreamsAttachmentProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5421,6 +5576,34 @@ func (this *ActivityStreamsAttachmentProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6187,6 +6370,32 @@ func (this *ActivityStreamsAttachmentProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsAttributedToPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsAttributedToPropertyIterator(i interface{}, alias
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsAttributedToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsAttributedToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) JSONLDContext() map[stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsAttributedToPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) LessThan(o vocab.Activit
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsAttributedToPropertyIterator) SetType(t vocab.Type) e
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsAttributedToPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsAttributedToPropertyIterator) serialize() (interface{}
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() {
@ -3388,6 +3478,29 @@ func (this *ActivityStreamsAttributedToProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4370,6 +4483,40 @@ func (this *ActivityStreamsAttributedToProperty) InsertIRI(idx int, v *url.URL)
}
}
// 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.
@ -4500,150 +4647,158 @@ func (this ActivityStreamsAttributedToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5459,6 +5614,34 @@ func (this *ActivityStreamsAttributedToProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6225,6 +6408,32 @@ func (this *ActivityStreamsAttributedToProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsAudiencePropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsAudiencePropertyIterator(i interface{}, aliasMap
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsAudiencePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsAudiencePropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsAudiencePropertyIterator) JSONLDContext() map[string]s
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsAudiencePropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsAudiencePropertyIterator) LessThan(o vocab.ActivityStr
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsAudiencePropertyIterator) SetType(t vocab.Type) error
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsAudiencePropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsAudiencePropertyIterator) serialize() (interface{}, er
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsAudienceProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsAudienceProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsAudienceProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsAudienceProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,31 @@ func (this *ActivityStreamsAudienceProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsBccPropertyIterator struct {
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
@ -202,6 +204,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s
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,
@ -226,6 +234,12 @@ func deserializeActivityStreamsBccPropertyIterator(i interface{}, aliasMap map[s
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,
@ -817,6 +831,19 @@ 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 {
@ -871,6 +898,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -883,6 +913,9 @@ func (this ActivityStreamsBccPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1005,10 +1038,12 @@ func (this ActivityStreamsBccPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1434,6 +1469,19 @@ 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.
@ -1474,6 +1522,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1482,6 +1532,8 @@ func (this ActivityStreamsBccPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1615,117 +1667,123 @@ func (this ActivityStreamsBccPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1777,6 +1835,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB
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() {
@ -1785,6 +1845,8 @@ func (this ActivityStreamsBccPropertyIterator) LessThan(o vocab.ActivityStreamsB
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() {
@ -2268,6 +2330,20 @@ func (this *ActivityStreamsBccPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2339,6 +2415,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error {
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
@ -2355,6 +2435,10 @@ func (this *ActivityStreamsBccPropertyIterator) SetType(t vocab.Type) error {
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
@ -2511,10 +2595,12 @@ func (this *ActivityStreamsBccPropertyIterator) clear() {
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
@ -2591,6 +2677,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error)
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() {
@ -2599,6 +2687,8 @@ func (this ActivityStreamsBccPropertyIterator) serialize() (interface{}, error)
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() {
@ -3340,6 +3430,28 @@ func (this *ActivityStreamsBccProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4320,6 +4432,40 @@ func (this *ActivityStreamsBccProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4450,150 +4596,158 @@ func (this ActivityStreamsBccProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5407,6 +5561,34 @@ func (this *ActivityStreamsBccProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6173,6 +6355,31 @@ func (this *ActivityStreamsBccProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsBtoPropertyIterator struct {
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
@ -202,6 +204,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s
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,
@ -226,6 +234,12 @@ func deserializeActivityStreamsBtoPropertyIterator(i interface{}, aliasMap map[s
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,
@ -817,6 +831,19 @@ 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 {
@ -871,6 +898,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -883,6 +913,9 @@ func (this ActivityStreamsBtoPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1005,10 +1038,12 @@ func (this ActivityStreamsBtoPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1434,6 +1469,19 @@ 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.
@ -1474,6 +1522,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1482,6 +1532,8 @@ func (this ActivityStreamsBtoPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1615,117 +1667,123 @@ func (this ActivityStreamsBtoPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1777,6 +1835,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB
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() {
@ -1785,6 +1845,8 @@ func (this ActivityStreamsBtoPropertyIterator) LessThan(o vocab.ActivityStreamsB
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() {
@ -2268,6 +2330,20 @@ func (this *ActivityStreamsBtoPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2339,6 +2415,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error {
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
@ -2355,6 +2435,10 @@ func (this *ActivityStreamsBtoPropertyIterator) SetType(t vocab.Type) error {
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
@ -2511,10 +2595,12 @@ func (this *ActivityStreamsBtoPropertyIterator) clear() {
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
@ -2591,6 +2677,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error)
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() {
@ -2599,6 +2687,8 @@ func (this ActivityStreamsBtoPropertyIterator) serialize() (interface{}, error)
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() {
@ -3340,6 +3430,28 @@ func (this *ActivityStreamsBtoProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4320,6 +4432,40 @@ func (this *ActivityStreamsBtoProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4450,150 +4596,158 @@ func (this ActivityStreamsBtoProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5407,6 +5561,34 @@ func (this *ActivityStreamsBtoProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6173,6 +6355,31 @@ func (this *ActivityStreamsBtoProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsCcPropertyIterator struct {
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
@ -202,6 +204,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st
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,
@ -226,6 +234,12 @@ func deserializeActivityStreamsCcPropertyIterator(i interface{}, aliasMap map[st
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,
@ -817,6 +831,19 @@ 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 {
@ -871,6 +898,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -883,6 +913,9 @@ func (this ActivityStreamsCcPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1005,10 +1038,12 @@ func (this ActivityStreamsCcPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1434,6 +1469,19 @@ 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.
@ -1474,6 +1522,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1482,6 +1532,8 @@ func (this ActivityStreamsCcPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1615,117 +1667,123 @@ func (this ActivityStreamsCcPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1777,6 +1835,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc
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() {
@ -1785,6 +1845,8 @@ func (this ActivityStreamsCcPropertyIterator) LessThan(o vocab.ActivityStreamsCc
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() {
@ -2268,6 +2330,20 @@ func (this *ActivityStreamsCcPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2339,6 +2415,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error {
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
@ -2355,6 +2435,10 @@ func (this *ActivityStreamsCcPropertyIterator) SetType(t vocab.Type) error {
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
@ -2511,10 +2595,12 @@ func (this *ActivityStreamsCcPropertyIterator) clear() {
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
@ -2591,6 +2677,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) {
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() {
@ -2599,6 +2687,8 @@ func (this ActivityStreamsCcPropertyIterator) serialize() (interface{}, error) {
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() {
@ -3340,6 +3430,28 @@ func (this *ActivityStreamsCcProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4320,6 +4432,40 @@ func (this *ActivityStreamsCcProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4450,150 +4596,158 @@ func (this ActivityStreamsCcProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5407,6 +5561,34 @@ func (this *ActivityStreamsCcProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6173,6 +6355,31 @@ func (this *ActivityStreamsCcProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -38,10 +38,12 @@ type ActivityStreamsClosedPropertyIterator struct {
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
@ -210,6 +212,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma
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,
@ -234,6 +242,12 @@ func deserializeActivityStreamsClosedPropertyIterator(i interface{}, aliasMap ma
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,
@ -840,6 +854,19 @@ 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 {
@ -894,6 +921,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -906,6 +936,9 @@ func (this ActivityStreamsClosedPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1043,10 +1076,12 @@ func (this ActivityStreamsClosedPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1472,6 +1507,19 @@ 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.
@ -1526,6 +1574,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1534,6 +1584,8 @@ func (this ActivityStreamsClosedPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1673,117 +1725,123 @@ func (this ActivityStreamsClosedPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 18
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 19
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 20
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 21
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 22
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 23
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 24
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 25
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 26
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 27
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 28
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 29
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 30
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 31
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 32
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 33
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 34
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 35
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 36
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 37
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 38
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 39
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 40
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 41
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 42
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 43
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 44
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 45
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 46
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 47
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 48
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 49
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 50
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 51
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 52
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 53
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 54
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 55
}
if this.IsActivityStreamsVideo() {
return 56
}
if this.IsActivityStreamsView() {
return 57
}
if this.IsIRI() {
return -2
}
@ -1839,6 +1897,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -1847,6 +1907,8 @@ func (this ActivityStreamsClosedPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -2330,6 +2392,20 @@ func (this *ActivityStreamsClosedPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2401,6 +2477,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error {
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
@ -2417,6 +2497,10 @@ func (this *ActivityStreamsClosedPropertyIterator) SetType(t vocab.Type) error {
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
@ -2591,10 +2675,12 @@ func (this *ActivityStreamsClosedPropertyIterator) clear() {
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
@ -2675,6 +2761,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro
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() {
@ -2683,6 +2771,8 @@ func (this ActivityStreamsClosedPropertyIterator) serialize() (interface{}, erro
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() {
@ -3425,6 +3515,28 @@ func (this *ActivityStreamsClosedProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4429,6 +4541,40 @@ func (this *ActivityStreamsClosedProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4603,150 +4749,158 @@ func (this ActivityStreamsClosedProperty) Less(i, j int) bool {
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 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} 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 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 56 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 57 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5561,6 +5715,34 @@ func (this *ActivityStreamsClosedProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6357,6 +6539,31 @@ func (this *ActivityStreamsClosedProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsContextPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsContextPropertyIterator(i interface{}, aliasMap m
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsContextPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsContextPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsContextPropertyIterator) JSONLDContext() map[string]st
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsContextPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsContextPropertyIterator) LessThan(o vocab.ActivityStre
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsContextPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsContextPropertyIterator) SetType(t vocab.Type) error
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsContextPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsContextPropertyIterator) serialize() (interface{}, err
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsContextProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsContextProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsContextProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsContextProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,31 @@ func (this *ActivityStreamsContextProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -30,10 +30,12 @@ type ActivityStreamsDescribesProperty struct {
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
@ -195,6 +197,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
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,
@ -219,6 +227,12 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
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,
@ -446,10 +460,12 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
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
@ -856,6 +872,19 @@ 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 {
@ -907,6 +936,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -919,6 +951,9 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1037,10 +1072,12 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1451,6 +1488,19 @@ 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.
@ -1489,6 +1539,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
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() {
@ -1497,6 +1549,8 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
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() {
@ -1625,114 +1679,120 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 15
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 16
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 17
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 18
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 19
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 20
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 21
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 22
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 23
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 24
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 25
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 26
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 27
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsLike() {
return 28
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsListen() {
return 29
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 30
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 31
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 32
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 33
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 34
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 35
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 36
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 37
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 38
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 39
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 40
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 41
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 42
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 43
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 44
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 45
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 46
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 47
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 48
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 49
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 50
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 51
}
if this.IsActivityStreamsVideo() {
return 52
}
if this.IsActivityStreamsView() {
return 53
}
if this.IsIRI() {
return -2
}
@ -1782,6 +1842,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
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() {
@ -1790,6 +1852,8 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
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() {
@ -1906,6 +1970,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
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() {
@ -1914,6 +1980,8 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
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() {
@ -2354,6 +2422,20 @@ func (this *ActivityStreamsDescribesProperty) SetIRI(v *url.URL) {
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 {
@ -2421,6 +2503,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
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
@ -2437,6 +2523,10 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -33,10 +33,12 @@ type ActivityStreamsFormerTypePropertyIterator struct {
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
@ -198,6 +200,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa
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,
@ -222,6 +230,12 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa
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,
@ -801,6 +815,19 @@ 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 {
@ -852,6 +879,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -864,6 +894,9 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -989,10 +1022,12 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1403,6 +1438,19 @@ 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.
@ -1448,6 +1496,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string
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() {
@ -1456,6 +1506,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string
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() {
@ -1587,114 +1639,120 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 31
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 32
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 33
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 34
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 35
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 36
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 37
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 38
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 39
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 40
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 41
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 42
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 43
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 44
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 45
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 46
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 47
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 48
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 49
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 50
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 51
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 52
}
if this.IsActivityStreamsVideo() {
return 53
}
if this.IsActivityStreamsView() {
return 54
}
if this.IsIRI() {
return -2
}
@ -1746,6 +1804,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -1754,6 +1814,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -2221,6 +2283,20 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2288,6 +2364,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err
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
@ -2304,6 +2384,10 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err
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
@ -2464,10 +2548,12 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() {
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
@ -2543,6 +2629,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{},
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() {
@ -2551,6 +2639,8 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{},
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() {
@ -3278,6 +3368,29 @@ func (this *ActivityStreamsFormerTypeProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4237,6 +4350,40 @@ func (this *ActivityStreamsFormerTypeProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4385,146 +4532,154 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5311,6 +5466,34 @@ func (this *ActivityStreamsFormerTypeProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6066,6 +6249,32 @@ func (this *ActivityStreamsFormerTypeProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsGeneratorPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsGeneratorPropertyIterator(i interface{}, aliasMap
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsGeneratorPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsGeneratorPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) JSONLDContext() map[string]
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsGeneratorPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) LessThan(o vocab.ActivitySt
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsGeneratorPropertyIterator) SetType(t vocab.Type) erro
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsGeneratorPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsGeneratorPropertyIterator) serialize() (interface{}, e
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsGeneratorProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsGeneratorProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsGeneratorProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsGeneratorProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,32 @@ func (this *ActivityStreamsGeneratorProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsInReplyToPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsInReplyToPropertyIterator(i interface{}, aliasMap
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsInReplyToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsInReplyToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) JSONLDContext() map[string]
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsInReplyToPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) LessThan(o vocab.ActivitySt
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsInReplyToPropertyIterator) SetType(t vocab.Type) erro
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsInReplyToPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsInReplyToPropertyIterator) serialize() (interface{}, e
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsInReplyToProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsInReplyToProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsInReplyToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsInReplyToProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,32 @@ func (this *ActivityStreamsInReplyToProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsInstrumentPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsInstrumentPropertyIterator(i interface{}, aliasMa
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsInstrumentPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsInstrumentPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) JSONLDContext() map[string
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsInstrumentPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) LessThan(o vocab.ActivityS
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsInstrumentPropertyIterator) SetType(t vocab.Type) err
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsInstrumentPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{},
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsInstrumentPropertyIterator) serialize() (interface{},
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() {
@ -3352,6 +3442,29 @@ func (this *ActivityStreamsInstrumentProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4333,6 +4446,40 @@ func (this *ActivityStreamsInstrumentProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4463,150 +4610,158 @@ func (this ActivityStreamsInstrumentProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5421,6 +5576,34 @@ func (this *ActivityStreamsInstrumentProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6187,6 +6370,32 @@ func (this *ActivityStreamsInstrumentProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsItemsPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsItemsPropertyIterator(i interface{}, aliasMap map
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsItemsPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsItemsPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsItemsPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsItemsPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsItemsPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsItemsPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsItemsPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsItemsPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsItemsPropertyIterator) serialize() (interface{}, error
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsItemsProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsItemsProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsItemsProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5409,6 +5563,34 @@ func (this *ActivityStreamsItemsProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6175,6 +6357,31 @@ func (this *ActivityStreamsItemsProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsLocationPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsLocationPropertyIterator(i interface{}, aliasMap
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsLocationPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsLocationPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsLocationPropertyIterator) JSONLDContext() map[string]s
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsLocationPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsLocationPropertyIterator) LessThan(o vocab.ActivityStr
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsLocationPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsLocationPropertyIterator) SetType(t vocab.Type) error
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsLocationPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsLocationPropertyIterator) serialize() (interface{}, er
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsLocationProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsLocationProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsLocationProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsLocationProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,31 @@ func (this *ActivityStreamsLocationProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsObjectPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsObjectPropertyIterator(i interface{}, aliasMap ma
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsObjectPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsObjectPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsObjectPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsObjectPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsObjectPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsObjectPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsObjectPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsObjectPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsObjectPropertyIterator) serialize() (interface{}, erro
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsObjectProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsObjectProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsObjectProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5410,6 +5564,34 @@ func (this *ActivityStreamsObjectProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6176,6 +6358,31 @@ func (this *ActivityStreamsObjectProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsOneOfPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsOneOfPropertyIterator(i interface{}, aliasMap map
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsOneOfPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsOneOfPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsOneOfPropertyIterator) JSONLDContext() map[string]stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsOneOfPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsOneOfPropertyIterator) LessThan(o vocab.ActivityStream
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsOneOfPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsOneOfPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsOneOfPropertyIterator) serialize() (interface{}, error
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsOneOfProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsOneOfProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsOneOfProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5409,6 +5563,34 @@ func (this *ActivityStreamsOneOfProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6175,6 +6357,31 @@ func (this *ActivityStreamsOneOfProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsOrderedItemsPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsOrderedItemsPropertyIterator(i interface{}, alias
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) JSONLDContext() map[stri
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) LessThan(o vocab.Activit
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) SetType(t vocab.Type) e
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsOrderedItemsPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsOrderedItemsPropertyIterator) serialize() (interface{}
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() {
@ -3388,6 +3478,29 @@ func (this *ActivityStreamsOrderedItemsProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4370,6 +4483,40 @@ func (this *ActivityStreamsOrderedItemsProperty) InsertIRI(idx int, v *url.URL)
}
}
// 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.
@ -4500,150 +4647,158 @@ func (this ActivityStreamsOrderedItemsProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5459,6 +5614,34 @@ func (this *ActivityStreamsOrderedItemsProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6225,6 +6408,32 @@ func (this *ActivityStreamsOrderedItemsProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsOriginPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsOriginPropertyIterator(i interface{}, aliasMap ma
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsOriginPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsOriginPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsOriginPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsOriginPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsOriginPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsOriginPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsOriginPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsOriginPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsOriginPropertyIterator) serialize() (interface{}, erro
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsOriginProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsOriginProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsOriginProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5410,6 +5564,34 @@ func (this *ActivityStreamsOriginProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6176,6 +6358,31 @@ func (this *ActivityStreamsOriginProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsPreviewPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsPreviewPropertyIterator(i interface{}, aliasMap m
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsPreviewPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsPreviewPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsPreviewPropertyIterator) JSONLDContext() map[string]st
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsPreviewPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsPreviewPropertyIterator) LessThan(o vocab.ActivityStre
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsPreviewPropertyIterator) SetType(t vocab.Type) error
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsPreviewPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsPreviewPropertyIterator) serialize() (interface{}, err
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() {
@ -3351,6 +3441,29 @@ func (this *ActivityStreamsPreviewProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4331,6 +4444,40 @@ func (this *ActivityStreamsPreviewProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4461,150 +4608,158 @@ func (this ActivityStreamsPreviewProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5419,6 +5574,34 @@ func (this *ActivityStreamsPreviewProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6185,6 +6368,31 @@ func (this *ActivityStreamsPreviewProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -30,10 +30,12 @@ type ActivityStreamsRelationshipPropertyIterator struct {
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
@ -195,6 +197,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias
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,
@ -219,6 +227,12 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias
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,
@ -790,6 +804,19 @@ 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 {
@ -841,6 +868,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -853,6 +883,9 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -971,10 +1004,12 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1385,6 +1420,19 @@ 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.
@ -1423,6 +1471,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri
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() {
@ -1431,6 +1481,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri
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() {
@ -1559,114 +1611,120 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 15
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 16
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 17
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 18
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 19
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 20
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 21
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 22
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 23
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 24
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 25
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 26
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 27
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsLike() {
return 28
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsListen() {
return 29
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 30
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 31
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 32
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 33
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 34
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 35
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 36
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 37
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 38
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 39
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 40
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 41
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 42
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 43
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 44
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 45
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 46
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 47
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 48
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 49
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 50
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 51
}
if this.IsActivityStreamsVideo() {
return 52
}
if this.IsActivityStreamsView() {
return 53
}
if this.IsIRI() {
return -2
}
@ -1716,6 +1774,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
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() {
@ -1724,6 +1784,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
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() {
@ -2191,6 +2253,20 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2258,6 +2334,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e
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
@ -2274,6 +2354,10 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e
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
@ -2425,10 +2509,12 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() {
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
@ -2502,6 +2588,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}
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() {
@ -2510,6 +2598,8 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}
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() {
@ -3272,6 +3362,29 @@ func (this *ActivityStreamsRelationshipProperty) AppendIRI(v *url.URL) {
})
}
// 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
@ -4220,6 +4333,40 @@ func (this *ActivityStreamsRelationshipProperty) InsertIRI(idx int, v *url.URL)
}
}
// 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.
@ -4346,146 +4493,154 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 16 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5273,6 +5428,34 @@ func (this *ActivityStreamsRelationshipProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6013,6 +6196,32 @@ func (this *ActivityStreamsRelationshipProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsResultPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsResultPropertyIterator(i interface{}, aliasMap ma
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsResultPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsResultPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsResultPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsResultPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsResultPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsResultPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsResultPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsResultPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsResultPropertyIterator) serialize() (interface{}, erro
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsResultProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsResultProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsResultProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5410,6 +5564,34 @@ func (this *ActivityStreamsResultProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6176,6 +6358,31 @@ func (this *ActivityStreamsResultProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsSubjectProperty struct {
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
@ -203,6 +205,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st
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,
@ -227,6 +235,12 @@ func DeserializeSubjectProperty(m map[string]interface{}, aliasMap map[string]st
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,
@ -461,10 +475,12 @@ func (this *ActivityStreamsSubjectProperty) Clear() {
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
@ -886,6 +902,19 @@ 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 {
@ -940,6 +969,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -952,6 +984,9 @@ func (this ActivityStreamsSubjectProperty) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1074,10 +1109,12 @@ func (this ActivityStreamsSubjectProperty) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1503,6 +1540,19 @@ 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.
@ -1543,6 +1593,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string {
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() {
@ -1551,6 +1603,8 @@ func (this ActivityStreamsSubjectProperty) JSONLDContext() map[string]string {
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() {
@ -1684,117 +1738,123 @@ func (this ActivityStreamsSubjectProperty) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1846,6 +1906,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje
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() {
@ -1854,6 +1916,8 @@ func (this ActivityStreamsSubjectProperty) LessThan(o vocab.ActivityStreamsSubje
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() {
@ -1974,6 +2038,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) {
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() {
@ -1982,6 +2048,8 @@ func (this ActivityStreamsSubjectProperty) Serialize() (interface{}, error) {
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() {
@ -2438,6 +2506,20 @@ func (this *ActivityStreamsSubjectProperty) SetIRI(v *url.URL) {
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 {
@ -2509,6 +2591,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error {
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
@ -2525,6 +2611,10 @@ func (this *ActivityStreamsSubjectProperty) SetType(t vocab.Type) error {
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

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsTagPropertyIterator struct {
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
@ -202,6 +204,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s
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,
@ -226,6 +234,12 @@ func deserializeActivityStreamsTagPropertyIterator(i interface{}, aliasMap map[s
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,
@ -817,6 +831,19 @@ 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 {
@ -871,6 +898,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -883,6 +913,9 @@ func (this ActivityStreamsTagPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1005,10 +1038,12 @@ func (this ActivityStreamsTagPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1434,6 +1469,19 @@ 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.
@ -1474,6 +1522,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1482,6 +1532,8 @@ func (this ActivityStreamsTagPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1615,117 +1667,123 @@ func (this ActivityStreamsTagPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1777,6 +1835,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT
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() {
@ -1785,6 +1845,8 @@ func (this ActivityStreamsTagPropertyIterator) LessThan(o vocab.ActivityStreamsT
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() {
@ -2268,6 +2330,20 @@ func (this *ActivityStreamsTagPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2339,6 +2415,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error {
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
@ -2355,6 +2435,10 @@ func (this *ActivityStreamsTagPropertyIterator) SetType(t vocab.Type) error {
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
@ -2511,10 +2595,12 @@ func (this *ActivityStreamsTagPropertyIterator) clear() {
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
@ -2591,6 +2677,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error)
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() {
@ -2599,6 +2687,8 @@ func (this ActivityStreamsTagPropertyIterator) serialize() (interface{}, error)
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() {
@ -3340,6 +3430,28 @@ func (this *ActivityStreamsTagProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4320,6 +4432,40 @@ func (this *ActivityStreamsTagProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4450,150 +4596,158 @@ func (this ActivityStreamsTagProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5407,6 +5561,34 @@ func (this *ActivityStreamsTagProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6173,6 +6355,31 @@ func (this *ActivityStreamsTagProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsTargetPropertyIterator struct {
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
@ -203,6 +205,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma
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,
@ -227,6 +235,12 @@ func deserializeActivityStreamsTargetPropertyIterator(i interface{}, aliasMap ma
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,
@ -818,6 +832,19 @@ 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 {
@ -872,6 +899,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -884,6 +914,9 @@ func (this ActivityStreamsTargetPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1006,10 +1039,12 @@ func (this ActivityStreamsTargetPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1435,6 +1470,19 @@ 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.
@ -1475,6 +1523,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1483,6 +1533,8 @@ func (this ActivityStreamsTargetPropertyIterator) JSONLDContext() map[string]str
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() {
@ -1616,117 +1668,123 @@ func (this ActivityStreamsTargetPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1778,6 +1836,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -1786,6 +1846,8 @@ func (this ActivityStreamsTargetPropertyIterator) LessThan(o vocab.ActivityStrea
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() {
@ -2269,6 +2331,20 @@ func (this *ActivityStreamsTargetPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2340,6 +2416,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error {
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
@ -2356,6 +2436,10 @@ func (this *ActivityStreamsTargetPropertyIterator) SetType(t vocab.Type) error {
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
@ -2512,10 +2596,12 @@ func (this *ActivityStreamsTargetPropertyIterator) clear() {
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
@ -2592,6 +2678,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro
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() {
@ -2600,6 +2688,8 @@ func (this ActivityStreamsTargetPropertyIterator) serialize() (interface{}, erro
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() {
@ -3342,6 +3432,28 @@ func (this *ActivityStreamsTargetProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4322,6 +4434,40 @@ func (this *ActivityStreamsTargetProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4452,150 +4598,158 @@ func (this ActivityStreamsTargetProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5410,6 +5564,34 @@ func (this *ActivityStreamsTargetProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6176,6 +6358,31 @@ func (this *ActivityStreamsTargetProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -69,6 +69,9 @@ type privateManager interface {
// 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"
@ -85,6 +88,9 @@ type privateManager interface {
// 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"

View File

@ -31,10 +31,12 @@ type ActivityStreamsToPropertyIterator struct {
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
@ -202,6 +204,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st
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,
@ -226,6 +234,12 @@ func deserializeActivityStreamsToPropertyIterator(i interface{}, aliasMap map[st
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,
@ -817,6 +831,19 @@ 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 {
@ -871,6 +898,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsDocument() {
return this.GetActivityStreamsDocument()
}
if this.IsTootEmoji() {
return this.GetTootEmoji()
}
if this.IsActivityStreamsEvent() {
return this.GetActivityStreamsEvent()
}
@ -883,6 +913,9 @@ func (this ActivityStreamsToPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
if this.IsActivityStreamsIgnore() {
return this.GetActivityStreamsIgnore()
}
@ -1005,10 +1038,12 @@ func (this ActivityStreamsToPropertyIterator) HasAny() bool {
this.IsActivityStreamsDelete() ||
this.IsActivityStreamsDislike() ||
this.IsActivityStreamsDocument() ||
this.IsTootEmoji() ||
this.IsActivityStreamsEvent() ||
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
this.IsActivityStreamsIntransitiveActivity() ||
@ -1434,6 +1469,19 @@ 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.
@ -1474,6 +1522,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1482,6 +1532,8 @@ func (this ActivityStreamsToPropertyIterator) JSONLDContext() map[string]string
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() {
@ -1615,117 +1667,123 @@ func (this ActivityStreamsToPropertyIterator) KindIndex() int {
if this.IsActivityStreamsDocument() {
return 16
}
if this.IsActivityStreamsEvent() {
if this.IsTootEmoji() {
return 17
}
if this.IsActivityStreamsFlag() {
if this.IsActivityStreamsEvent() {
return 18
}
if this.IsActivityStreamsFollow() {
if this.IsActivityStreamsFlag() {
return 19
}
if this.IsActivityStreamsGroup() {
if this.IsActivityStreamsFollow() {
return 20
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsActivityStreamsImage() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsMention() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsMention() {
return 31
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsMove() {
return 32
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsNote() {
return 33
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOffer() {
return 34
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsOrderedCollection() {
return 35
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 36
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsOrganization() {
return 37
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsPage() {
return 38
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsPerson() {
return 39
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsPlace() {
return 40
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsProfile() {
return 41
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsQuestion() {
return 42
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRead() {
return 43
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsReject() {
return 44
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsRelationship() {
return 45
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsRemove() {
return 46
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsService() {
return 47
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTentativeAccept() {
return 48
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsTentativeReject() {
return 49
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsTombstone() {
return 50
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsTravel() {
return 51
}
if this.IsActivityStreamsVideo() {
if this.IsActivityStreamsUndo() {
return 52
}
if this.IsActivityStreamsView() {
if this.IsActivityStreamsUpdate() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
}
if this.IsIRI() {
return -2
}
@ -1777,6 +1835,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo
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() {
@ -1785,6 +1845,8 @@ func (this ActivityStreamsToPropertyIterator) LessThan(o vocab.ActivityStreamsTo
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() {
@ -2268,6 +2330,20 @@ func (this *ActivityStreamsToPropertyIterator) SetIRI(v *url.URL) {
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 {
@ -2339,6 +2415,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error {
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
@ -2355,6 +2435,10 @@ func (this *ActivityStreamsToPropertyIterator) SetType(t vocab.Type) error {
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
@ -2511,10 +2595,12 @@ func (this *ActivityStreamsToPropertyIterator) clear() {
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
@ -2591,6 +2677,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) {
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() {
@ -2599,6 +2687,8 @@ func (this ActivityStreamsToPropertyIterator) serialize() (interface{}, error) {
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() {
@ -3340,6 +3430,28 @@ func (this *ActivityStreamsToProperty) AppendIRI(v *url.URL) {
})
}
// 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.
@ -4320,6 +4432,40 @@ func (this *ActivityStreamsToProperty) InsertIRI(idx int, v *url.URL) {
}
}
// 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.
@ -4450,150 +4596,158 @@ func (this ActivityStreamsToProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsDocument()
return lhs.LessThan(rhs)
} else if idx1 == 17 {
lhs := this.properties[i].GetTootEmoji()
rhs := this.properties[j].GetTootEmoji()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
lhs := this.properties[i].GetActivityStreamsEvent()
rhs := this.properties[j].GetActivityStreamsEvent()
return lhs.LessThan(rhs)
} else if idx1 == 18 {
} else if idx1 == 19 {
lhs := this.properties[i].GetActivityStreamsFlag()
rhs := this.properties[j].GetActivityStreamsFlag()
return lhs.LessThan(rhs)
} else if idx1 == 19 {
} else if idx1 == 20 {
lhs := this.properties[i].GetActivityStreamsFollow()
rhs := this.properties[j].GetActivityStreamsFollow()
return lhs.LessThan(rhs)
} else if idx1 == 20 {
} else if idx1 == 21 {
lhs := this.properties[i].GetActivityStreamsGroup()
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 55 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5407,6 +5561,34 @@ func (this *ActivityStreamsToProperty) PrependIRI(v *url.URL) {
}
}
// 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.
@ -6173,6 +6355,31 @@ func (this *ActivityStreamsToProperty) SetIRI(idx int, v *url.URL) {
}
}
// 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.

View File

@ -48,6 +48,10 @@ type privateManager interface {
// 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"
@ -56,6 +60,10 @@ type privateManager interface {
// 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"

View File

@ -25,8 +25,10 @@ type ActivityStreamsApplication struct {
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
@ -174,6 +176,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
} 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 {
@ -184,6 +191,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
} 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 {
@ -354,10 +366,14 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
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" {
@ -681,6 +697,17 @@ 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"
@ -721,8 +748,10 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
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)
@ -886,6 +915,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
// 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) {
@ -914,6 +957,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
// 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) {
@ -1415,6 +1472,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
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 {
@ -1431,6 +1496,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
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 {
@ -1872,6 +1945,16 @@ 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

View File

@ -32,6 +32,10 @@ type privateManager interface {
// method for the "ActivityStreamsBccProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
// DeserializeBlurhashPropertyToot returns the deserialization method for
// the "TootBlurhashProperty" non-functional property in the
// vocabulary "Toot"
DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error)
// DeserializeBtoPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsBtoProperty" non-functional property
// in the vocabulary "ActivityStreams"

View File

@ -26,6 +26,7 @@ type ActivityStreamsAudio struct {
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty
TootBlurhash vocab.TootBlurhashProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty
@ -151,6 +152,11 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsBcc = p
}
if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.TootBlurhash = p
}
if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@ -301,6 +307,8 @@ func DeserializeAudio(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "bcc" {
continue
} else if k == "blurhash" {
continue
} else if k == "bto" {
continue
} else if k == "cc" {
@ -578,6 +586,11 @@ func (this ActivityStreamsAudio) GetJSONLDType() vocab.JSONLDTypeProperty {
return this.JSONLDType
}
// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise.
func (this ActivityStreamsAudio) GetTootBlurhash() vocab.TootBlurhashProperty {
return this.TootBlurhash
}
// GetTypeName returns the name of this type.
func (this ActivityStreamsAudio) GetTypeName() string {
return "Audio"
@ -608,6 +621,7 @@ func (this ActivityStreamsAudio) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
m = this.helperJSONLDContext(this.TootBlurhash, m)
m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
@ -713,6 +727,20 @@ func (this ActivityStreamsAudio) LessThan(o vocab.ActivityStreamsAudio) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "blurhash"
if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "bto"
if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@ -1154,6 +1182,14 @@ func (this ActivityStreamsAudio) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsBcc.Name()] = i
}
}
// Maybe serialize property "blurhash"
if this.TootBlurhash != nil {
if i, err := this.TootBlurhash.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.TootBlurhash.Name()] = i
}
}
// Maybe serialize property "bto"
if this.ActivityStreamsBto != nil {
if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
@ -1544,6 +1580,11 @@ func (this *ActivityStreamsAudio) SetJSONLDType(i vocab.JSONLDTypeProperty) {
this.JSONLDType = i
}
// SetTootBlurhash sets the "blurhash" property.
func (this *ActivityStreamsAudio) SetTootBlurhash(i vocab.TootBlurhashProperty) {
this.TootBlurhash = i
}
// VocabularyURI returns the vocabulary's URI as a string.
func (this ActivityStreamsAudio) VocabularyURI() string {
return "https://www.w3.org/ns/activitystreams"

View File

@ -32,6 +32,10 @@ type privateManager interface {
// method for the "ActivityStreamsBccProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
// DeserializeBlurhashPropertyToot returns the deserialization method for
// the "TootBlurhashProperty" non-functional property in the
// vocabulary "Toot"
DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error)
// DeserializeBtoPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsBtoProperty" non-functional property
// in the vocabulary "ActivityStreams"

View File

@ -22,6 +22,7 @@ type ActivityStreamsDocument struct {
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty
TootBlurhash vocab.TootBlurhashProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty
@ -127,6 +128,11 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
} else if p != nil {
this.ActivityStreamsBcc = p
}
if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.TootBlurhash = p
}
if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@ -277,6 +283,8 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
continue
} else if k == "bcc" {
continue
} else if k == "blurhash" {
continue
} else if k == "bto" {
continue
} else if k == "cc" {
@ -579,6 +587,11 @@ func (this ActivityStreamsDocument) GetJSONLDType() vocab.JSONLDTypeProperty {
return this.JSONLDType
}
// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise.
func (this ActivityStreamsDocument) GetTootBlurhash() vocab.TootBlurhashProperty {
return this.TootBlurhash
}
// GetTypeName returns the name of this type.
func (this ActivityStreamsDocument) GetTypeName() string {
return "Document"
@ -609,6 +622,7 @@ func (this ActivityStreamsDocument) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
m = this.helperJSONLDContext(this.TootBlurhash, m)
m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
@ -714,6 +728,20 @@ func (this ActivityStreamsDocument) LessThan(o vocab.ActivityStreamsDocument) bo
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "blurhash"
if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "bto"
if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@ -1155,6 +1183,14 @@ func (this ActivityStreamsDocument) Serialize() (map[string]interface{}, error)
m[this.ActivityStreamsBcc.Name()] = i
}
}
// Maybe serialize property "blurhash"
if this.TootBlurhash != nil {
if i, err := this.TootBlurhash.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.TootBlurhash.Name()] = i
}
}
// Maybe serialize property "bto"
if this.ActivityStreamsBto != nil {
if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
@ -1545,6 +1581,11 @@ func (this *ActivityStreamsDocument) SetJSONLDType(i vocab.JSONLDTypeProperty) {
this.JSONLDType = i
}
// SetTootBlurhash sets the "blurhash" property.
func (this *ActivityStreamsDocument) SetTootBlurhash(i vocab.TootBlurhashProperty) {
this.TootBlurhash = i
}
// VocabularyURI returns the vocabulary's URI as a string.
func (this ActivityStreamsDocument) VocabularyURI() string {
return "https://www.w3.org/ns/activitystreams"

View File

@ -48,6 +48,10 @@ type privateManager interface {
// 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"
@ -56,6 +60,10 @@ type privateManager interface {
// 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"

View File

@ -25,8 +25,10 @@ type ActivityStreamsGroup struct {
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
@ -154,6 +156,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
} 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 {
@ -164,6 +171,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
} 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 {
@ -334,10 +346,14 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
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" {
@ -681,6 +697,17 @@ func (this ActivityStreamsGroup) GetJSONLDType() vocab.JSONLDTypeProperty {
return this.JSONLDType
}
// GetTootDiscoverable returns the "discoverable" property if it exists, and nil
// otherwise.
func (this ActivityStreamsGroup) GetTootDiscoverable() vocab.TootDiscoverableProperty {
return this.TootDiscoverable
}
// GetTootFeatured returns the "featured" property if it exists, and nil otherwise.
func (this ActivityStreamsGroup) GetTootFeatured() vocab.TootFeaturedProperty {
return this.TootFeatured
}
// GetTypeName returns the name of this type.
func (this ActivityStreamsGroup) GetTypeName() string {
return "Group"
@ -721,8 +748,10 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
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)
@ -886,6 +915,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
// 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) {
@ -914,6 +957,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
// 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) {
@ -1415,6 +1472,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
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 {
@ -1431,6 +1496,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
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 {
@ -1872,6 +1945,16 @@ func (this *ActivityStreamsGroup) SetJSONLDType(i vocab.JSONLDTypeProperty) {
this.JSONLDType = i
}
// SetTootDiscoverable sets the "discoverable" property.
func (this *ActivityStreamsGroup) SetTootDiscoverable(i vocab.TootDiscoverableProperty) {
this.TootDiscoverable = i
}
// SetTootFeatured sets the "featured" property.
func (this *ActivityStreamsGroup) SetTootFeatured(i vocab.TootFeaturedProperty) {
this.TootFeatured = i
}
// SetW3IDSecurityV1PublicKey sets the "publicKey" property.
func (this *ActivityStreamsGroup) SetW3IDSecurityV1PublicKey(i vocab.W3IDSecurityV1PublicKeyProperty) {
this.W3IDSecurityV1PublicKey = i

View File

@ -32,6 +32,10 @@ type privateManager interface {
// method for the "ActivityStreamsBccProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
// DeserializeBlurhashPropertyToot returns the deserialization method for
// the "TootBlurhashProperty" non-functional property in the
// vocabulary "Toot"
DeserializeBlurhashPropertyToot() func(map[string]interface{}, map[string]string) (vocab.TootBlurhashProperty, error)
// DeserializeBtoPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsBtoProperty" non-functional property
// in the vocabulary "ActivityStreams"

View File

@ -33,6 +33,7 @@ type ActivityStreamsImage struct {
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
ActivityStreamsAudience vocab.ActivityStreamsAudienceProperty
ActivityStreamsBcc vocab.ActivityStreamsBccProperty
TootBlurhash vocab.TootBlurhashProperty
ActivityStreamsBto vocab.ActivityStreamsBtoProperty
ActivityStreamsCc vocab.ActivityStreamsCcProperty
ActivityStreamsContent vocab.ActivityStreamsContentProperty
@ -140,6 +141,11 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
} else if p != nil {
this.ActivityStreamsBcc = p
}
if p, err := mgr.DeserializeBlurhashPropertyToot()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
this.TootBlurhash = p
}
if p, err := mgr.DeserializeBtoPropertyActivityStreams()(m, aliasMap); err != nil {
return nil, err
} else if p != nil {
@ -300,6 +306,8 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
continue
} else if k == "bcc" {
continue
} else if k == "blurhash" {
continue
} else if k == "bto" {
continue
} else if k == "cc" {
@ -613,6 +621,11 @@ func (this ActivityStreamsImage) GetJSONLDType() vocab.JSONLDTypeProperty {
return this.JSONLDType
}
// GetTootBlurhash returns the "blurhash" property if it exists, and nil otherwise.
func (this ActivityStreamsImage) GetTootBlurhash() vocab.TootBlurhashProperty {
return this.TootBlurhash
}
// GetTypeName returns the name of this type.
func (this ActivityStreamsImage) GetTypeName() string {
return "Image"
@ -643,6 +656,7 @@ func (this ActivityStreamsImage) JSONLDContext() map[string]string {
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
m = this.helperJSONLDContext(this.ActivityStreamsAudience, m)
m = this.helperJSONLDContext(this.ActivityStreamsBcc, m)
m = this.helperJSONLDContext(this.TootBlurhash, m)
m = this.helperJSONLDContext(this.ActivityStreamsBto, m)
m = this.helperJSONLDContext(this.ActivityStreamsCc, m)
m = this.helperJSONLDContext(this.ActivityStreamsContent, m)
@ -750,6 +764,20 @@ func (this ActivityStreamsImage) LessThan(o vocab.ActivityStreamsImage) bool {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "blurhash"
if lhs, rhs := this.TootBlurhash, o.GetTootBlurhash(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
return true
} else if rhs.LessThan(lhs) {
return false
}
} else if lhs == nil && rhs != nil {
// Nil is less than anything else
return true
} else if rhs != nil && rhs == nil {
// Anything else is greater than nil
return false
} // Else: Both are nil
// Compare property "bto"
if lhs, rhs := this.ActivityStreamsBto, o.GetActivityStreamsBto(); lhs != nil && rhs != nil {
if lhs.LessThan(rhs) {
@ -1219,6 +1247,14 @@ func (this ActivityStreamsImage) Serialize() (map[string]interface{}, error) {
m[this.ActivityStreamsBcc.Name()] = i
}
}
// Maybe serialize property "blurhash"
if this.TootBlurhash != nil {
if i, err := this.TootBlurhash.Serialize(); err != nil {
return nil, err
} else if i != nil {
m[this.TootBlurhash.Name()] = i
}
}
// Maybe serialize property "bto"
if this.ActivityStreamsBto != nil {
if i, err := this.ActivityStreamsBto.Serialize(); err != nil {
@ -1635,6 +1671,11 @@ func (this *ActivityStreamsImage) SetJSONLDType(i vocab.JSONLDTypeProperty) {
this.JSONLDType = i
}
// SetTootBlurhash sets the "blurhash" property.
func (this *ActivityStreamsImage) SetTootBlurhash(i vocab.TootBlurhashProperty) {
this.TootBlurhash = i
}
// VocabularyURI returns the vocabulary's URI as a string.
func (this ActivityStreamsImage) VocabularyURI() string {
return "https://www.w3.org/ns/activitystreams"

View File

@ -199,7 +199,7 @@ func IsOrExtendsLink(other vocab.Type) bool {
// LinkIsDisjointWith returns true if the other provided type is disjoint with the
// Link type.
func LinkIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Event", "Flag", "Follow", "Group", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

View File

@ -197,7 +197,7 @@ func IsOrExtendsMention(other vocab.Type) bool {
// MentionIsDisjointWith returns true if the other provided type is disjoint with
// the Mention type.
func MentionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Event", "Flag", "Follow", "Group", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

Some files were not shown because too many files have changed in this diff Show More