mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-22 11:46:40 +00:00
[chore] bump activity dependency -> v1.6.0-gts (#2599)
This commit is contained in:
parent
c13eb87ae7
commit
8692cc1f36
2
go.mod
2
go.mod
|
@ -46,7 +46,7 @@ require (
|
||||||
github.com/spf13/cobra v1.8.0
|
github.com/spf13/cobra v1.8.0
|
||||||
github.com/spf13/viper v1.18.2
|
github.com/spf13/viper v1.18.2
|
||||||
github.com/stretchr/testify v1.8.4
|
github.com/stretchr/testify v1.8.4
|
||||||
github.com/superseriousbusiness/activity v1.4.0-gts
|
github.com/superseriousbusiness/activity v1.6.0-gts
|
||||||
github.com/superseriousbusiness/httpsig v1.2.0-SSB
|
github.com/superseriousbusiness/httpsig v1.2.0-SSB
|
||||||
github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8
|
github.com/superseriousbusiness/oauth2/v4 v4.3.2-SSB.0.20230227143000-f4900831d6c8
|
||||||
github.com/tdewolff/minify/v2 v2.20.14
|
github.com/tdewolff/minify/v2 v2.20.14
|
||||||
|
|
4
go.sum
4
go.sum
|
@ -483,8 +483,8 @@ github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXl
|
||||||
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
github.com/subosito/gotenv v1.6.0 h1:9NlTDc1FTs4qu0DDq7AEtTPNw6SVm7uBMsUCUjABIf8=
|
||||||
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
github.com/subosito/gotenv v1.6.0/go.mod h1:Dk4QP5c2W3ibzajGcXpNraDfq2IrhjMIvMSWPKKo0FU=
|
||||||
github.com/sunfish-shogi/bufseekio v0.0.0-20210207115823-a4185644b365/go.mod h1:dEzdXgvImkQ3WLI+0KQpmEx8T/C/ma9KeS3AfmU899I=
|
github.com/sunfish-shogi/bufseekio v0.0.0-20210207115823-a4185644b365/go.mod h1:dEzdXgvImkQ3WLI+0KQpmEx8T/C/ma9KeS3AfmU899I=
|
||||||
github.com/superseriousbusiness/activity v1.4.0-gts h1:9r95sYy80tuGWWpDDNlLwa/k6dKZdyP/k+rhVA+VjdQ=
|
github.com/superseriousbusiness/activity v1.6.0-gts h1:SwrTpqof0bIzYYsNyM7WH9Vxqz+6kN4BGQjzKvlIN1Y=
|
||||||
github.com/superseriousbusiness/activity v1.4.0-gts/go.mod h1:AZw0Xb4Oju8rmaJCZ21gc5CPg47MmNgyac+Hx5jo8VM=
|
github.com/superseriousbusiness/activity v1.6.0-gts/go.mod h1:AZw0Xb4Oju8rmaJCZ21gc5CPg47MmNgyac+Hx5jo8VM=
|
||||||
github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe h1:ksl2oCx/Qo8sNDc3Grb8WGKBM9nkvhCm25uvlT86azE=
|
github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe h1:ksl2oCx/Qo8sNDc3Grb8WGKBM9nkvhCm25uvlT86azE=
|
||||||
github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe/go.mod h1:gH4P6gN1V+wmIw5o97KGaa1RgXB/tVpC2UNzijhg3E4=
|
github.com/superseriousbusiness/go-jpeg-image-structure/v2 v2.0.0-20220321154430-d89a106fdabe/go.mod h1:gH4P6gN1V+wmIw5o97KGaa1RgXB/tVpC2UNzijhg3E4=
|
||||||
github.com/superseriousbusiness/go-png-image-structure/v2 v2.0.1-SSB h1:8psprYSK1KdOSH7yQ4PbJq0YYaGQY+gzdW/B0ExDb/8=
|
github.com/superseriousbusiness/go-png-image-structure/v2 v2.0.1-SSB h1:8psprYSK1KdOSH7yQ4PbJq0YYaGQY+gzdW/B0ExDb/8=
|
||||||
|
|
6
vendor/github.com/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
6
vendor/github.com/superseriousbusiness/activity/streams/gen_consts.go
generated
vendored
|
@ -188,6 +188,9 @@
|
||||||
// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary.
|
// ActivityStreamsActorPropertyName is the string literal of the name for the actor property in the ActivityStreams vocabulary.
|
||||||
var ActivityStreamsActorPropertyName string = "actor"
|
var ActivityStreamsActorPropertyName string = "actor"
|
||||||
|
|
||||||
|
// ActivityStreamsAlsoKnownAsPropertyName is the string literal of the name for the alsoKnownAs property in the ActivityStreams vocabulary.
|
||||||
|
var ActivityStreamsAlsoKnownAsPropertyName string = "alsoKnownAs"
|
||||||
|
|
||||||
// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary.
|
// ActivityStreamsAltitudePropertyName is the string literal of the name for the altitude property in the ActivityStreams vocabulary.
|
||||||
var ActivityStreamsAltitudePropertyName string = "altitude"
|
var ActivityStreamsAltitudePropertyName string = "altitude"
|
||||||
|
|
||||||
|
@ -317,6 +320,9 @@
|
||||||
// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
|
// ActivityStreamsMediaTypePropertyName is the string literal of the name for the mediaType property in the ActivityStreams vocabulary.
|
||||||
var ActivityStreamsMediaTypePropertyName string = "mediaType"
|
var ActivityStreamsMediaTypePropertyName string = "mediaType"
|
||||||
|
|
||||||
|
// ActivityStreamsMovedToPropertyName is the string literal of the name for the movedTo property in the ActivityStreams vocabulary.
|
||||||
|
var ActivityStreamsMovedToPropertyName string = "movedTo"
|
||||||
|
|
||||||
// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary.
|
// ActivityStreamsNamePropertyName is the string literal of the name for the name property in the ActivityStreams vocabulary.
|
||||||
var ActivityStreamsNamePropertyName string = "name"
|
var ActivityStreamsNamePropertyName string = "name"
|
||||||
|
|
||||||
|
|
4
vendor/github.com/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
4
vendor/github.com/superseriousbusiness/activity/streams/gen_init.go
generated
vendored
|
@ -5,6 +5,7 @@
|
||||||
import (
|
import (
|
||||||
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
||||||
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
||||||
|
propertyalsoknownas "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas"
|
||||||
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
||||||
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
||||||
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
||||||
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
||||||
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
||||||
|
propertymovedto "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto"
|
||||||
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
||||||
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
||||||
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
||||||
|
@ -165,6 +167,7 @@ func init() {
|
||||||
mgr = &Manager{}
|
mgr = &Manager{}
|
||||||
propertyaccuracy.SetManager(mgr)
|
propertyaccuracy.SetManager(mgr)
|
||||||
propertyactor.SetManager(mgr)
|
propertyactor.SetManager(mgr)
|
||||||
|
propertyalsoknownas.SetManager(mgr)
|
||||||
propertyaltitude.SetManager(mgr)
|
propertyaltitude.SetManager(mgr)
|
||||||
propertyanyof.SetManager(mgr)
|
propertyanyof.SetManager(mgr)
|
||||||
propertyattachment.SetManager(mgr)
|
propertyattachment.SetManager(mgr)
|
||||||
|
@ -204,6 +207,7 @@ func init() {
|
||||||
propertylongitude.SetManager(mgr)
|
propertylongitude.SetManager(mgr)
|
||||||
propertymanuallyapprovesfollowers.SetManager(mgr)
|
propertymanuallyapprovesfollowers.SetManager(mgr)
|
||||||
propertymediatype.SetManager(mgr)
|
propertymediatype.SetManager(mgr)
|
||||||
|
propertymovedto.SetManager(mgr)
|
||||||
propertyname.SetManager(mgr)
|
propertyname.SetManager(mgr)
|
||||||
propertynext.SetManager(mgr)
|
propertynext.SetManager(mgr)
|
||||||
propertyobject.SetManager(mgr)
|
propertyobject.SetManager(mgr)
|
||||||
|
|
28
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
28
vendor/github.com/superseriousbusiness/activity/streams/gen_manager.go
generated
vendored
|
@ -5,6 +5,7 @@
|
||||||
import (
|
import (
|
||||||
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
||||||
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
||||||
|
propertyalsoknownas "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas"
|
||||||
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
||||||
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
||||||
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
||||||
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
||||||
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
||||||
|
propertymovedto "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto"
|
||||||
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
||||||
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
||||||
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
||||||
|
@ -224,6 +226,19 @@ func (this Manager) DeserializeAddActivityStreams() func(map[string]interface{},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsAlsoKnownAsProperty" non-functional property
|
||||||
|
// in the vocabulary "ActivityStreams"
|
||||||
|
func (this Manager) DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) {
|
||||||
|
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) {
|
||||||
|
i, err := propertyalsoknownas.DeserializeAlsoKnownAsProperty(m, aliasMap)
|
||||||
|
if i == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return i, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization method
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization method
|
||||||
// for the "ActivityStreamsAltitudeProperty" non-functional property in the
|
// for the "ActivityStreamsAltitudeProperty" non-functional property in the
|
||||||
// vocabulary "ActivityStreams"
|
// vocabulary "ActivityStreams"
|
||||||
|
@ -1180,6 +1195,19 @@ func (this Manager) DeserializeMoveActivityStreams() func(map[string]interface{}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization method
|
||||||
|
// for the "ActivityStreamsMovedToProperty" non-functional property in the
|
||||||
|
// vocabulary "ActivityStreams"
|
||||||
|
func (this Manager) DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error) {
|
||||||
|
return func(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsMovedToProperty, error) {
|
||||||
|
i, err := propertymovedto.DeserializeMovedToProperty(m, aliasMap)
|
||||||
|
if i == nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return i, err
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization method for
|
// DeserializeNamePropertyActivityStreams returns the deserialization method for
|
||||||
// the "ActivityStreamsNameProperty" non-functional property in the vocabulary
|
// the "ActivityStreamsNameProperty" non-functional property in the vocabulary
|
||||||
// "ActivityStreams"
|
// "ActivityStreams"
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
import (
|
import (
|
||||||
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
propertyaccuracy "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy"
|
||||||
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
propertyactor "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor"
|
||||||
|
propertyalsoknownas "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas"
|
||||||
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
propertyaltitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude"
|
||||||
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
propertyanyof "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof"
|
||||||
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
propertyattachment "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment"
|
||||||
|
@ -44,6 +45,7 @@
|
||||||
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
propertylongitude "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude"
|
||||||
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
propertymanuallyapprovesfollowers "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers"
|
||||||
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
propertymediatype "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype"
|
||||||
|
propertymovedto "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto"
|
||||||
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
propertyname "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name"
|
||||||
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
propertynext "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next"
|
||||||
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
propertyobject "github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object"
|
||||||
|
@ -93,6 +95,12 @@ func NewActivityStreamsActorProperty() vocab.ActivityStreamsActorProperty {
|
||||||
return propertyactor.NewActivityStreamsActorProperty()
|
return propertyactor.NewActivityStreamsActorProperty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewActivityStreamsActivityStreamsAlsoKnownAsProperty creates a new
|
||||||
|
// ActivityStreamsAlsoKnownAsProperty
|
||||||
|
func NewActivityStreamsAlsoKnownAsProperty() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return propertyalsoknownas.NewActivityStreamsAlsoKnownAsProperty()
|
||||||
|
}
|
||||||
|
|
||||||
// NewActivityStreamsActivityStreamsAltitudeProperty creates a new
|
// NewActivityStreamsActivityStreamsAltitudeProperty creates a new
|
||||||
// ActivityStreamsAltitudeProperty
|
// ActivityStreamsAltitudeProperty
|
||||||
func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty {
|
func NewActivityStreamsAltitudeProperty() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -327,6 +335,12 @@ func NewActivityStreamsMediaTypeProperty() vocab.ActivityStreamsMediaTypePropert
|
||||||
return propertymediatype.NewActivityStreamsMediaTypeProperty()
|
return propertymediatype.NewActivityStreamsMediaTypeProperty()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// NewActivityStreamsActivityStreamsMovedToProperty creates a new
|
||||||
|
// ActivityStreamsMovedToProperty
|
||||||
|
func NewActivityStreamsMovedToProperty() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return propertymovedto.NewActivityStreamsMovedToProperty()
|
||||||
|
}
|
||||||
|
|
||||||
// NewActivityStreamsActivityStreamsNameProperty creates a new
|
// NewActivityStreamsActivityStreamsNameProperty creates a new
|
||||||
// ActivityStreamsNameProperty
|
// ActivityStreamsNameProperty
|
||||||
func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty {
|
func NewActivityStreamsNameProperty() vocab.ActivityStreamsNameProperty {
|
||||||
|
|
17
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_doc.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
// Package propertyalsoknownas contains the implementation for the alsoKnownAs
|
||||||
|
// property. All applications are strongly encouraged to use the interface
|
||||||
|
// instead of this concrete definition. The interfaces allow applications to
|
||||||
|
// consume only the types and properties needed and be independent of the
|
||||||
|
// go-fed implementation if another alternative implementation is created.
|
||||||
|
// This package is code-generated and subject to the same license as the
|
||||||
|
// go-fed tool used to generate it.
|
||||||
|
//
|
||||||
|
// This package is independent of other types' and properties' implementations
|
||||||
|
// by having a Manager injected into it to act as a factory for the concrete
|
||||||
|
// implementations. The implementations have been generated into their own
|
||||||
|
// separate subpackages for each vocabulary.
|
||||||
|
//
|
||||||
|
// Strongly consider using the interfaces instead of this package.
|
||||||
|
package propertyalsoknownas
|
15
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas/gen_pkg.go
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package propertyalsoknownas
|
||||||
|
|
||||||
|
var mgr privateManager
|
||||||
|
|
||||||
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
|
// concrete implementations.
|
||||||
|
type privateManager interface{}
|
||||||
|
|
||||||
|
// SetManager sets the manager package-global variable. For internal use only, do
|
||||||
|
// not use as part of Application behavior. Must be called at golang init time.
|
||||||
|
func SetManager(m privateManager) {
|
||||||
|
mgr = m
|
||||||
|
}
|
|
@ -0,0 +1,509 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package propertyalsoknownas
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
anyuri "github.com/superseriousbusiness/activity/streams/values/anyURI"
|
||||||
|
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||||
|
"net/url"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ActivityStreamsAlsoKnownAsPropertyIterator is an iterator for a property. It is
|
||||||
|
// permitted to be a single nilable value type.
|
||||||
|
type ActivityStreamsAlsoKnownAsPropertyIterator struct {
|
||||||
|
xmlschemaAnyURIMember *url.URL
|
||||||
|
unknown interface{}
|
||||||
|
alias string
|
||||||
|
myIdx int
|
||||||
|
parent vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewActivityStreamsAlsoKnownAsPropertyIterator creates a new
|
||||||
|
// ActivityStreamsAlsoKnownAs property.
|
||||||
|
func NewActivityStreamsAlsoKnownAsPropertyIterator() *ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
return &ActivityStreamsAlsoKnownAsPropertyIterator{alias: ""}
|
||||||
|
}
|
||||||
|
|
||||||
|
// deserializeActivityStreamsAlsoKnownAsPropertyIterator creates an iterator from
|
||||||
|
// an element that has been unmarshalled from a text or binary format.
|
||||||
|
func deserializeActivityStreamsAlsoKnownAsPropertyIterator(i interface{}, aliasMap map[string]string) (*ActivityStreamsAlsoKnownAsPropertyIterator, error) {
|
||||||
|
alias := ""
|
||||||
|
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||||
|
alias = a
|
||||||
|
}
|
||||||
|
if v, err := anyuri.DeserializeAnyURI(i); err == nil {
|
||||||
|
this := &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: alias,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
return this, nil
|
||||||
|
}
|
||||||
|
this := &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: alias,
|
||||||
|
unknown: i,
|
||||||
|
}
|
||||||
|
return this, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get returns the value of this property. When IsXMLSchemaAnyURI returns false,
|
||||||
|
// Get will return any arbitrary value.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Get() *url.URL {
|
||||||
|
return this.xmlschemaAnyURIMember
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||||
|
// return any arbitrary value.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) GetIRI() *url.URL {
|
||||||
|
return this.xmlschemaAnyURIMember
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasAny returns true if the value or IRI is set.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) HasAny() bool {
|
||||||
|
return this.IsXMLSchemaAnyURI()
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsIRI returns true if this property is an IRI.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsIRI() bool {
|
||||||
|
return this.xmlschemaAnyURIMember != nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) IsXMLSchemaAnyURI() bool {
|
||||||
|
return this.xmlschemaAnyURIMember != nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||||
|
// property and the specific values that are set. The value in the map is the
|
||||||
|
// alias used to import the property's value or values.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) JSONLDContext() map[string]string {
|
||||||
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
var child map[string]string
|
||||||
|
|
||||||
|
/*
|
||||||
|
Since the literal maps in this function are determined at
|
||||||
|
code-generation time, this loop should not overwrite an existing key with a
|
||||||
|
new value.
|
||||||
|
*/
|
||||||
|
for k, v := range child {
|
||||||
|
m[k] = v
|
||||||
|
}
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value. This is
|
||||||
|
// a leaky API detail only for folks looking to replace the go-fed
|
||||||
|
// implementation. Applications should not use this method.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) KindIndex() int {
|
||||||
|
if this.IsXMLSchemaAnyURI() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
if this.IsIRI() {
|
||||||
|
return -2
|
||||||
|
}
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but stable
|
||||||
|
// comparison. Applications should not use this because it is only meant to
|
||||||
|
// help alternative implementations to go-fed to be able to normalize
|
||||||
|
// nonfunctional properties.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) LessThan(o vocab.ActivityStreamsAlsoKnownAsPropertyIterator) bool {
|
||||||
|
if this.IsIRI() {
|
||||||
|
// IRIs are always less than other values, none, or unknowns
|
||||||
|
return true
|
||||||
|
} else if o.IsIRI() {
|
||||||
|
// This other, none, or unknown value is always greater than IRIs
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// LessThan comparison for the single value or unknown value.
|
||||||
|
if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
|
||||||
|
// Both are unknowns.
|
||||||
|
return false
|
||||||
|
} else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
|
||||||
|
// Values are always greater than unknown values.
|
||||||
|
return false
|
||||||
|
} else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() {
|
||||||
|
// Unknowns are always less than known values.
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
// Actual comparison.
|
||||||
|
return anyuri.LessAnyURI(this.Get(), o.Get())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name returns the name of this property: "ActivityStreamsAlsoKnownAs".
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Name() string {
|
||||||
|
if len(this.alias) > 0 {
|
||||||
|
return this.alias + ":" + "ActivityStreamsAlsoKnownAs"
|
||||||
|
} else {
|
||||||
|
return "ActivityStreamsAlsoKnownAs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Next returns the next iterator, or nil if there is no next iterator.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Next() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
if this.myIdx+1 >= this.parent.Len() {
|
||||||
|
return nil
|
||||||
|
} else {
|
||||||
|
return this.parent.At(this.myIdx + 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Prev returns the previous iterator, or nil if there is no previous iterator.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) Prev() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
if this.myIdx-1 < 0 {
|
||||||
|
return nil
|
||||||
|
} else {
|
||||||
|
return this.parent.At(this.myIdx - 1)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will
|
||||||
|
// return true.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) Set(v *url.URL) {
|
||||||
|
this.clear()
|
||||||
|
this.xmlschemaAnyURIMember = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||||
|
// true.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) SetIRI(v *url.URL) {
|
||||||
|
this.clear()
|
||||||
|
this.Set(v)
|
||||||
|
}
|
||||||
|
|
||||||
|
// clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI
|
||||||
|
// afterwards will return false.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsPropertyIterator) clear() {
|
||||||
|
this.unknown = nil
|
||||||
|
this.xmlschemaAnyURIMember = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// serialize converts this into an interface representation suitable for
|
||||||
|
// marshalling into a text or binary format. Applications should not need this
|
||||||
|
// function as most typical use cases serialize types instead of individual
|
||||||
|
// properties. It is exposed for alternatives to go-fed implementations to use.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsPropertyIterator) serialize() (interface{}, error) {
|
||||||
|
if this.IsXMLSchemaAnyURI() {
|
||||||
|
return anyuri.SerializeAnyURI(this.Get())
|
||||||
|
}
|
||||||
|
return this.unknown, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// ActivityStreamsAlsoKnownAsProperty is the non-functional property
|
||||||
|
// "alsoKnownAs". It is permitted to have one or more values, and of different
|
||||||
|
// value types.
|
||||||
|
type ActivityStreamsAlsoKnownAsProperty struct {
|
||||||
|
properties []*ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
alias string
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeserializeAlsoKnownAsProperty creates a "alsoKnownAs" property from an
|
||||||
|
// interface representation that has been unmarshalled from a text or binary
|
||||||
|
// format.
|
||||||
|
func DeserializeAlsoKnownAsProperty(m map[string]interface{}, aliasMap map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error) {
|
||||||
|
alias := ""
|
||||||
|
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||||
|
alias = a
|
||||||
|
}
|
||||||
|
propName := "alsoKnownAs"
|
||||||
|
if len(alias) > 0 {
|
||||||
|
propName = fmt.Sprintf("%s:%s", alias, "alsoKnownAs")
|
||||||
|
}
|
||||||
|
i, ok := m[propName]
|
||||||
|
|
||||||
|
if ok {
|
||||||
|
this := &ActivityStreamsAlsoKnownAsProperty{
|
||||||
|
alias: alias,
|
||||||
|
properties: []*ActivityStreamsAlsoKnownAsPropertyIterator{},
|
||||||
|
}
|
||||||
|
if list, ok := i.([]interface{}); ok {
|
||||||
|
for _, iterator := range list {
|
||||||
|
if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(iterator, aliasMap); err != nil {
|
||||||
|
return this, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.properties = append(this.properties, p)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
if p, err := deserializeActivityStreamsAlsoKnownAsPropertyIterator(i, aliasMap); err != nil {
|
||||||
|
return this, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.properties = append(this.properties, p)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Set up the properties for iteration.
|
||||||
|
for idx, ele := range this.properties {
|
||||||
|
ele.parent = this
|
||||||
|
ele.myIdx = idx
|
||||||
|
}
|
||||||
|
return this, nil
|
||||||
|
}
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewActivityStreamsAlsoKnownAsProperty creates a new alsoKnownAs property.
|
||||||
|
func NewActivityStreamsAlsoKnownAsProperty() *ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return &ActivityStreamsAlsoKnownAsProperty{alias: ""}
|
||||||
|
}
|
||||||
|
|
||||||
|
// AppendIRI appends an IRI value to the back of a list of the property
|
||||||
|
// "alsoKnownAs"
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) AppendIRI(v *url.URL) {
|
||||||
|
this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: this.Len(),
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of the
|
||||||
|
// property "alsoKnownAs". Invalidates iterators that are traversing using
|
||||||
|
// Prev.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) AppendXMLSchemaAnyURI(v *url.URL) {
|
||||||
|
this.properties = append(this.properties, &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: this.Len(),
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
// At returns the property value for the specified index. Panics if the index is
|
||||||
|
// out of bounds.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) At(index int) vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
return this.properties[index]
|
||||||
|
}
|
||||||
|
|
||||||
|
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||||
|
// iterator's Next method and this property's End method to iterate from front
|
||||||
|
// to back through all values.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Begin() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
if this.Empty() {
|
||||||
|
return nil
|
||||||
|
} else {
|
||||||
|
return this.properties[0]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Empty returns returns true if there are no elements.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Empty() bool {
|
||||||
|
return this.Len() == 0
|
||||||
|
}
|
||||||
|
|
||||||
|
// End returns beyond-the-last iterator, which is nil. Can be used with the
|
||||||
|
// iterator's Next method and this property's Begin method to iterate from
|
||||||
|
// front to back through all values.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) End() vocab.ActivityStreamsAlsoKnownAsPropertyIterator {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Insert inserts an IRI value at the specified index for a property
|
||||||
|
// "alsoKnownAs". Existing elements at that index and higher are shifted back
|
||||||
|
// once. Invalidates all iterators.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) InsertIRI(idx int, v *url.URL) {
|
||||||
|
this.properties = append(this.properties, nil)
|
||||||
|
copy(this.properties[idx+1:], this.properties[idx:])
|
||||||
|
this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: idx,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
for i := idx; i < this.Len(); i++ {
|
||||||
|
(this.properties)[i].myIdx = i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for a
|
||||||
|
// property "alsoKnownAs". Existing elements at that index and higher are
|
||||||
|
// shifted back once. Invalidates all iterators.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) InsertXMLSchemaAnyURI(idx int, v *url.URL) {
|
||||||
|
this.properties = append(this.properties, nil)
|
||||||
|
copy(this.properties[idx+1:], this.properties[idx:])
|
||||||
|
this.properties[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: idx,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
for i := idx; i < this.Len(); i++ {
|
||||||
|
(this.properties)[i].myIdx = i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||||
|
// property and the specific values that are set. The value in the map is the
|
||||||
|
// alias used to import the property's value or values.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) JSONLDContext() map[string]string {
|
||||||
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
for _, elem := range this.properties {
|
||||||
|
child := elem.JSONLDContext()
|
||||||
|
/*
|
||||||
|
Since the literal maps in this function are determined at
|
||||||
|
code-generation time, this loop should not overwrite an existing key with a
|
||||||
|
new value.
|
||||||
|
*/
|
||||||
|
for k, v := range child {
|
||||||
|
m[k] = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value. This is
|
||||||
|
// a leaky API method specifically needed only for alternate implementations
|
||||||
|
// for go-fed. Applications should not use this method. Panics if the index is
|
||||||
|
// out of bounds.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) KindIndex(idx int) int {
|
||||||
|
return this.properties[idx].KindIndex()
|
||||||
|
}
|
||||||
|
|
||||||
|
// Len returns the number of values that exist for the "alsoKnownAs" property.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Len() (length int) {
|
||||||
|
return len(this.properties)
|
||||||
|
}
|
||||||
|
|
||||||
|
// Less computes whether another property is less than this one. Mixing types
|
||||||
|
// results in a consistent but arbitrary ordering
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Less(i, j int) bool {
|
||||||
|
idx1 := this.KindIndex(i)
|
||||||
|
idx2 := this.KindIndex(j)
|
||||||
|
if idx1 < idx2 {
|
||||||
|
return true
|
||||||
|
} else if idx1 == idx2 {
|
||||||
|
if idx1 == 0 {
|
||||||
|
lhs := this.properties[i].Get()
|
||||||
|
rhs := this.properties[j].Get()
|
||||||
|
return anyuri.LessAnyURI(lhs, rhs)
|
||||||
|
} else if idx1 == -2 {
|
||||||
|
lhs := this.properties[i].GetIRI()
|
||||||
|
rhs := this.properties[j].GetIRI()
|
||||||
|
return lhs.String() < rhs.String()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but stable
|
||||||
|
// comparison. Applications should not use this because it is only meant to
|
||||||
|
// help alternative implementations to go-fed to be able to normalize
|
||||||
|
// nonfunctional properties.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) LessThan(o vocab.ActivityStreamsAlsoKnownAsProperty) bool {
|
||||||
|
l1 := this.Len()
|
||||||
|
l2 := o.Len()
|
||||||
|
l := l1
|
||||||
|
if l2 < l1 {
|
||||||
|
l = l2
|
||||||
|
}
|
||||||
|
for i := 0; i < l; i++ {
|
||||||
|
if this.properties[i].LessThan(o.At(i)) {
|
||||||
|
return true
|
||||||
|
} else if o.At(i).LessThan(this.properties[i]) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return l1 < l2
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name returns the name of this property ("alsoKnownAs") with any alias.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Name() string {
|
||||||
|
if len(this.alias) > 0 {
|
||||||
|
return this.alias + ":" + "alsoKnownAs"
|
||||||
|
} else {
|
||||||
|
return "alsoKnownAs"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||||
|
// "alsoKnownAs".
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) PrependIRI(v *url.URL) {
|
||||||
|
this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: 0,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}}, this.properties...)
|
||||||
|
for i := 1; i < this.Len(); i++ {
|
||||||
|
(this.properties)[i].myIdx = i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list of the
|
||||||
|
// property "alsoKnownAs". Invalidates all iterators.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) PrependXMLSchemaAnyURI(v *url.URL) {
|
||||||
|
this.properties = append([]*ActivityStreamsAlsoKnownAsPropertyIterator{{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: 0,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}}, this.properties...)
|
||||||
|
for i := 1; i < this.Len(); i++ {
|
||||||
|
(this.properties)[i].myIdx = i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Remove deletes an element at the specified index from a list of the property
|
||||||
|
// "alsoKnownAs", regardless of its type. Panics if the index is out of
|
||||||
|
// bounds. Invalidates all iterators.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) Remove(idx int) {
|
||||||
|
(this.properties)[idx].parent = nil
|
||||||
|
copy((this.properties)[idx:], (this.properties)[idx+1:])
|
||||||
|
(this.properties)[len(this.properties)-1] = &ActivityStreamsAlsoKnownAsPropertyIterator{}
|
||||||
|
this.properties = (this.properties)[:len(this.properties)-1]
|
||||||
|
for i := idx; i < this.Len(); i++ {
|
||||||
|
(this.properties)[i].myIdx = i
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Serialize converts this into an interface representation suitable for
|
||||||
|
// marshalling into a text or binary format. Applications should not need this
|
||||||
|
// function as most typical use cases serialize types instead of individual
|
||||||
|
// properties. It is exposed for alternatives to go-fed implementations to use.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Serialize() (interface{}, error) {
|
||||||
|
s := make([]interface{}, 0, len(this.properties))
|
||||||
|
for _, iterator := range this.properties {
|
||||||
|
if b, err := iterator.serialize(); err != nil {
|
||||||
|
return s, err
|
||||||
|
} else {
|
||||||
|
s = append(s, b)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||||
|
if len(s) == 1 {
|
||||||
|
return s[0], nil
|
||||||
|
}
|
||||||
|
return s, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set sets a anyURI value to be at the specified index for the property
|
||||||
|
// "alsoKnownAs". Panics if the index is out of bounds. Invalidates all
|
||||||
|
// iterators.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) Set(idx int, v *url.URL) {
|
||||||
|
(this.properties)[idx].parent = nil
|
||||||
|
(this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: idx,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetIRI sets an IRI value to be at the specified index for the property
|
||||||
|
// "alsoKnownAs". Panics if the index is out of bounds.
|
||||||
|
func (this *ActivityStreamsAlsoKnownAsProperty) SetIRI(idx int, v *url.URL) {
|
||||||
|
(this.properties)[idx].parent = nil
|
||||||
|
(this.properties)[idx] = &ActivityStreamsAlsoKnownAsPropertyIterator{
|
||||||
|
alias: this.alias,
|
||||||
|
myIdx: idx,
|
||||||
|
parent: this,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Swap swaps the location of values at two indices for the "alsoKnownAs" property.
|
||||||
|
func (this ActivityStreamsAlsoKnownAsProperty) Swap(i, j int) {
|
||||||
|
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
|
||||||
|
}
|
17
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go
generated
vendored
Normal file
17
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_doc.go
generated
vendored
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
// Package propertymovedto contains the implementation for the movedTo property.
|
||||||
|
// All applications are strongly encouraged to use the interface instead of
|
||||||
|
// this concrete definition. The interfaces allow applications to consume only
|
||||||
|
// the types and properties needed and be independent of the go-fed
|
||||||
|
// implementation if another alternative implementation is created. This
|
||||||
|
// package is code-generated and subject to the same license as the go-fed
|
||||||
|
// tool used to generate it.
|
||||||
|
//
|
||||||
|
// This package is independent of other types' and properties' implementations
|
||||||
|
// by having a Manager injected into it to act as a factory for the concrete
|
||||||
|
// implementations. The implementations have been generated into their own
|
||||||
|
// separate subpackages for each vocabulary.
|
||||||
|
//
|
||||||
|
// Strongly consider using the interfaces instead of this package.
|
||||||
|
package propertymovedto
|
15
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go
generated
vendored
Normal file
15
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_pkg.go
generated
vendored
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package propertymovedto
|
||||||
|
|
||||||
|
var mgr privateManager
|
||||||
|
|
||||||
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
|
// concrete implementations.
|
||||||
|
type privateManager interface{}
|
||||||
|
|
||||||
|
// SetManager sets the manager package-global variable. For internal use only, do
|
||||||
|
// not use as part of Application behavior. Must be called at golang init time.
|
||||||
|
func SetManager(m privateManager) {
|
||||||
|
mgr = m
|
||||||
|
}
|
181
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go
generated
vendored
Normal file
181
vendor/github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto/gen_property_activitystreams_movedTo.go
generated
vendored
Normal file
|
@ -0,0 +1,181 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package propertymovedto
|
||||||
|
|
||||||
|
import (
|
||||||
|
"fmt"
|
||||||
|
anyuri "github.com/superseriousbusiness/activity/streams/values/anyURI"
|
||||||
|
vocab "github.com/superseriousbusiness/activity/streams/vocab"
|
||||||
|
"net/url"
|
||||||
|
)
|
||||||
|
|
||||||
|
// ActivityStreamsMovedToProperty is the functional property "movedTo". It is
|
||||||
|
// permitted to be a single nilable value type.
|
||||||
|
type ActivityStreamsMovedToProperty struct {
|
||||||
|
xmlschemaAnyURIMember *url.URL
|
||||||
|
unknown interface{}
|
||||||
|
alias string
|
||||||
|
}
|
||||||
|
|
||||||
|
// DeserializeMovedToProperty creates a "movedTo" property from an interface
|
||||||
|
// representation that has been unmarshalled from a text or binary format.
|
||||||
|
func DeserializeMovedToProperty(m map[string]interface{}, aliasMap map[string]string) (*ActivityStreamsMovedToProperty, error) {
|
||||||
|
alias := ""
|
||||||
|
if a, ok := aliasMap["https://www.w3.org/ns/activitystreams"]; ok {
|
||||||
|
alias = a
|
||||||
|
}
|
||||||
|
propName := "movedTo"
|
||||||
|
if len(alias) > 0 {
|
||||||
|
// Use alias both to find the property, and set within the property.
|
||||||
|
propName = fmt.Sprintf("%s:%s", alias, "movedTo")
|
||||||
|
}
|
||||||
|
i, ok := m[propName]
|
||||||
|
|
||||||
|
if ok {
|
||||||
|
if v, err := anyuri.DeserializeAnyURI(i); err == nil {
|
||||||
|
this := &ActivityStreamsMovedToProperty{
|
||||||
|
alias: alias,
|
||||||
|
xmlschemaAnyURIMember: v,
|
||||||
|
}
|
||||||
|
return this, nil
|
||||||
|
}
|
||||||
|
this := &ActivityStreamsMovedToProperty{
|
||||||
|
alias: alias,
|
||||||
|
unknown: i,
|
||||||
|
}
|
||||||
|
return this, nil
|
||||||
|
}
|
||||||
|
return nil, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewActivityStreamsMovedToProperty creates a new movedTo property.
|
||||||
|
func NewActivityStreamsMovedToProperty() *ActivityStreamsMovedToProperty {
|
||||||
|
return &ActivityStreamsMovedToProperty{alias: ""}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Clear ensures no value of this property is set. Calling IsXMLSchemaAnyURI
|
||||||
|
// afterwards will return false.
|
||||||
|
func (this *ActivityStreamsMovedToProperty) Clear() {
|
||||||
|
this.unknown = nil
|
||||||
|
this.xmlschemaAnyURIMember = nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Get returns the value of this property. When IsXMLSchemaAnyURI returns false,
|
||||||
|
// Get will return any arbitrary value.
|
||||||
|
func (this ActivityStreamsMovedToProperty) Get() *url.URL {
|
||||||
|
return this.xmlschemaAnyURIMember
|
||||||
|
}
|
||||||
|
|
||||||
|
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||||
|
// return any arbitrary value.
|
||||||
|
func (this ActivityStreamsMovedToProperty) GetIRI() *url.URL {
|
||||||
|
return this.xmlschemaAnyURIMember
|
||||||
|
}
|
||||||
|
|
||||||
|
// HasAny returns true if the value or IRI is set.
|
||||||
|
func (this ActivityStreamsMovedToProperty) HasAny() bool {
|
||||||
|
return this.IsXMLSchemaAnyURI()
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsIRI returns true if this property is an IRI.
|
||||||
|
func (this ActivityStreamsMovedToProperty) IsIRI() bool {
|
||||||
|
return this.xmlschemaAnyURIMember != nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||||
|
func (this ActivityStreamsMovedToProperty) IsXMLSchemaAnyURI() bool {
|
||||||
|
return this.xmlschemaAnyURIMember != nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||||
|
// property and the specific values that are set. The value in the map is the
|
||||||
|
// alias used to import the property's value or values.
|
||||||
|
func (this ActivityStreamsMovedToProperty) JSONLDContext() map[string]string {
|
||||||
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
var child map[string]string
|
||||||
|
|
||||||
|
/*
|
||||||
|
Since the literal maps in this function are determined at
|
||||||
|
code-generation time, this loop should not overwrite an existing key with a
|
||||||
|
new value.
|
||||||
|
*/
|
||||||
|
for k, v := range child {
|
||||||
|
m[k] = v
|
||||||
|
}
|
||||||
|
return m
|
||||||
|
}
|
||||||
|
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value. This is
|
||||||
|
// a leaky API detail only for folks looking to replace the go-fed
|
||||||
|
// implementation. Applications should not use this method.
|
||||||
|
func (this ActivityStreamsMovedToProperty) KindIndex() int {
|
||||||
|
if this.IsXMLSchemaAnyURI() {
|
||||||
|
return 0
|
||||||
|
}
|
||||||
|
if this.IsIRI() {
|
||||||
|
return -2
|
||||||
|
}
|
||||||
|
return -1
|
||||||
|
}
|
||||||
|
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but stable
|
||||||
|
// comparison. Applications should not use this because it is only meant to
|
||||||
|
// help alternative implementations to go-fed to be able to normalize
|
||||||
|
// nonfunctional properties.
|
||||||
|
func (this ActivityStreamsMovedToProperty) LessThan(o vocab.ActivityStreamsMovedToProperty) bool {
|
||||||
|
if this.IsIRI() {
|
||||||
|
// IRIs are always less than other values, none, or unknowns
|
||||||
|
return true
|
||||||
|
} else if o.IsIRI() {
|
||||||
|
// This other, none, or unknown value is always greater than IRIs
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
// LessThan comparison for the single value or unknown value.
|
||||||
|
if !this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
|
||||||
|
// Both are unknowns.
|
||||||
|
return false
|
||||||
|
} else if this.IsXMLSchemaAnyURI() && !o.IsXMLSchemaAnyURI() {
|
||||||
|
// Values are always greater than unknown values.
|
||||||
|
return false
|
||||||
|
} else if !this.IsXMLSchemaAnyURI() && o.IsXMLSchemaAnyURI() {
|
||||||
|
// Unknowns are always less than known values.
|
||||||
|
return true
|
||||||
|
} else {
|
||||||
|
// Actual comparison.
|
||||||
|
return anyuri.LessAnyURI(this.Get(), o.Get())
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Name returns the name of this property: "movedTo".
|
||||||
|
func (this ActivityStreamsMovedToProperty) Name() string {
|
||||||
|
if len(this.alias) > 0 {
|
||||||
|
return this.alias + ":" + "movedTo"
|
||||||
|
} else {
|
||||||
|
return "movedTo"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// Serialize converts this into an interface representation suitable for
|
||||||
|
// marshalling into a text or binary format. Applications should not need this
|
||||||
|
// function as most typical use cases serialize types instead of individual
|
||||||
|
// properties. It is exposed for alternatives to go-fed implementations to use.
|
||||||
|
func (this ActivityStreamsMovedToProperty) Serialize() (interface{}, error) {
|
||||||
|
if this.IsXMLSchemaAnyURI() {
|
||||||
|
return anyuri.SerializeAnyURI(this.Get())
|
||||||
|
}
|
||||||
|
return this.unknown, nil
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set sets the value of this property. Calling IsXMLSchemaAnyURI afterwards will
|
||||||
|
// return true.
|
||||||
|
func (this *ActivityStreamsMovedToProperty) Set(v *url.URL) {
|
||||||
|
this.Clear()
|
||||||
|
this.xmlschemaAnyURIMember = v
|
||||||
|
}
|
||||||
|
|
||||||
|
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||||
|
// true.
|
||||||
|
func (this *ActivityStreamsMovedToProperty) SetIRI(v *url.URL) {
|
||||||
|
this.Clear()
|
||||||
|
this.Set(v)
|
||||||
|
}
|
|
@ -11,6 +11,10 @@
|
||||||
// privateManager abstracts the code-generated manager that provides access to
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
// concrete implementations.
|
// concrete implementations.
|
||||||
type privateManager interface {
|
type privateManager interface {
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the
|
||||||
|
// deserialization method for the "ActivityStreamsAlsoKnownAsProperty"
|
||||||
|
// non-functional property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error)
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
@ -121,6 +125,10 @@ type privateManager interface {
|
||||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsMovedToProperty" non-functional
|
||||||
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error)
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsNameProperty" non-functional
|
// method for the "ActivityStreamsNameProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// "type": "Application"
|
// "type": "Application"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsApplication struct {
|
type ActivityStreamsApplication struct {
|
||||||
|
ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
||||||
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
||||||
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
||||||
|
@ -43,6 +44,7 @@ type ActivityStreamsApplication struct {
|
||||||
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
||||||
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
||||||
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
||||||
|
ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty
|
||||||
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
||||||
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
||||||
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
||||||
|
@ -135,6 +137,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
||||||
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
||||||
}
|
}
|
||||||
// Begin: Known property deserialization
|
// Begin: Known property deserialization
|
||||||
|
if p, err := mgr.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -270,6 +277,11 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
this.ActivityStreamsMediaType = p
|
this.ActivityStreamsMediaType = p
|
||||||
}
|
}
|
||||||
|
if p, err := mgr.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsMovedTo = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -370,7 +382,9 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
||||||
// Begin: Unknown deserialization
|
// Begin: Unknown deserialization
|
||||||
for k, v := range m {
|
for k, v := range m {
|
||||||
// Begin: Code that ensures a property name is unknown
|
// Begin: Code that ensures a property name is unknown
|
||||||
if k == "altitude" {
|
if k == "alsoKnownAs" {
|
||||||
|
continue
|
||||||
|
} else if k == "altitude" {
|
||||||
continue
|
continue
|
||||||
} else if k == "attachment" {
|
} else if k == "attachment" {
|
||||||
continue
|
continue
|
||||||
|
@ -426,6 +440,8 @@ func DeserializeApplication(m map[string]interface{}, aliasMap map[string]string
|
||||||
continue
|
continue
|
||||||
} else if k == "mediaType" {
|
} else if k == "mediaType" {
|
||||||
continue
|
continue
|
||||||
|
} else if k == "movedTo" {
|
||||||
|
continue
|
||||||
} else if k == "name" {
|
} else if k == "name" {
|
||||||
continue
|
continue
|
||||||
} else if k == "nameMap" {
|
} else if k == "nameMap" {
|
||||||
|
@ -499,6 +515,12 @@ func NewActivityStreamsApplication() *ActivityStreamsApplication {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
func (this ActivityStreamsApplication) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return this.ActivityStreamsAlsoKnownAs
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
func (this ActivityStreamsApplication) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
func (this ActivityStreamsApplication) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -642,6 +664,12 @@ func (this ActivityStreamsApplication) GetActivityStreamsMediaType() vocab.Activ
|
||||||
return this.ActivityStreamsMediaType
|
return this.ActivityStreamsMediaType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil
|
||||||
|
// otherwise.
|
||||||
|
func (this ActivityStreamsApplication) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return this.ActivityStreamsMovedTo
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
||||||
// otherwise.
|
// otherwise.
|
||||||
func (this ActivityStreamsApplication) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
func (this ActivityStreamsApplication) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
||||||
|
@ -795,6 +823,7 @@ func (this ActivityStreamsApplication) IsExtending(other vocab.Type) bool {
|
||||||
// alias used to import the type and its properties.
|
// alias used to import the type and its properties.
|
||||||
func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
||||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsAlsoKnownAs, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
||||||
|
@ -822,6 +851,7 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsMovedTo, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
||||||
|
@ -849,6 +879,20 @@ func (this ActivityStreamsApplication) JSONLDContext() map[string]string {
|
||||||
// determination.
|
// determination.
|
||||||
func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplication) bool {
|
func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplication) bool {
|
||||||
// Begin: Compare known properties
|
// Begin: Compare known properties
|
||||||
|
// Compare property "alsoKnownAs"
|
||||||
|
if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "altitude"
|
// Compare property "altitude"
|
||||||
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1227,6 +1271,20 @@ func (this ActivityStreamsApplication) LessThan(o vocab.ActivityStreamsApplicati
|
||||||
// Anything else is greater than nil
|
// Anything else is greater than nil
|
||||||
return false
|
return false
|
||||||
} // Else: Both are nil
|
} // Else: Both are nil
|
||||||
|
// Compare property "movedTo"
|
||||||
|
if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "name"
|
// Compare property "name"
|
||||||
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1516,6 +1574,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
|
||||||
}
|
}
|
||||||
m["type"] = typeName
|
m["type"] = typeName
|
||||||
// Begin: Serialize known properties
|
// Begin: Serialize known properties
|
||||||
|
// Maybe serialize property "alsoKnownAs"
|
||||||
|
if this.ActivityStreamsAlsoKnownAs != nil {
|
||||||
|
if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsAlsoKnownAs.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "altitude"
|
// Maybe serialize property "altitude"
|
||||||
if this.ActivityStreamsAltitude != nil {
|
if this.ActivityStreamsAltitude != nil {
|
||||||
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
||||||
|
@ -1732,6 +1798,14 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
|
||||||
m[this.ActivityStreamsMediaType.Name()] = i
|
m[this.ActivityStreamsMediaType.Name()] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Maybe serialize property "movedTo"
|
||||||
|
if this.ActivityStreamsMovedTo != nil {
|
||||||
|
if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsMovedTo.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "name"
|
// Maybe serialize property "name"
|
||||||
if this.ActivityStreamsName != nil {
|
if this.ActivityStreamsName != nil {
|
||||||
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
||||||
|
@ -1898,6 +1972,11 @@ func (this ActivityStreamsApplication) Serialize() (map[string]interface{}, erro
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
func (this *ActivityStreamsApplication) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
func (this *ActivityStreamsApplication) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
func (this *ActivityStreamsApplication) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
||||||
this.ActivityStreamsAltitude = i
|
this.ActivityStreamsAltitude = i
|
||||||
|
@ -2019,6 +2098,11 @@ func (this *ActivityStreamsApplication) SetActivityStreamsMediaType(i vocab.Acti
|
||||||
this.ActivityStreamsMediaType = i
|
this.ActivityStreamsMediaType = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
func (this *ActivityStreamsApplication) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) {
|
||||||
|
this.ActivityStreamsMovedTo = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
func (this *ActivityStreamsApplication) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
func (this *ActivityStreamsApplication) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
||||||
this.ActivityStreamsName = i
|
this.ActivityStreamsName = i
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
// privateManager abstracts the code-generated manager that provides access to
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
// concrete implementations.
|
// concrete implementations.
|
||||||
type privateManager interface {
|
type privateManager interface {
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the
|
||||||
|
// deserialization method for the "ActivityStreamsAlsoKnownAsProperty"
|
||||||
|
// non-functional property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error)
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
@ -121,6 +125,10 @@ type privateManager interface {
|
||||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsMovedToProperty" non-functional
|
||||||
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error)
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsNameProperty" non-functional
|
// method for the "ActivityStreamsNameProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// "type": "Group"
|
// "type": "Group"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsGroup struct {
|
type ActivityStreamsGroup struct {
|
||||||
|
ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
||||||
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
||||||
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
||||||
|
@ -43,6 +44,7 @@ type ActivityStreamsGroup struct {
|
||||||
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
||||||
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
||||||
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
||||||
|
ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty
|
||||||
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
||||||
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
||||||
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
||||||
|
@ -115,6 +117,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
||||||
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
||||||
}
|
}
|
||||||
// Begin: Known property deserialization
|
// Begin: Known property deserialization
|
||||||
|
if p, err := mgr.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -250,6 +257,11 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
this.ActivityStreamsMediaType = p
|
this.ActivityStreamsMediaType = p
|
||||||
}
|
}
|
||||||
|
if p, err := mgr.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsMovedTo = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -350,7 +362,9 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
||||||
// Begin: Unknown deserialization
|
// Begin: Unknown deserialization
|
||||||
for k, v := range m {
|
for k, v := range m {
|
||||||
// Begin: Code that ensures a property name is unknown
|
// Begin: Code that ensures a property name is unknown
|
||||||
if k == "altitude" {
|
if k == "alsoKnownAs" {
|
||||||
|
continue
|
||||||
|
} else if k == "altitude" {
|
||||||
continue
|
continue
|
||||||
} else if k == "attachment" {
|
} else if k == "attachment" {
|
||||||
continue
|
continue
|
||||||
|
@ -406,6 +420,8 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
|
||||||
continue
|
continue
|
||||||
} else if k == "mediaType" {
|
} else if k == "mediaType" {
|
||||||
continue
|
continue
|
||||||
|
} else if k == "movedTo" {
|
||||||
|
continue
|
||||||
} else if k == "name" {
|
} else if k == "name" {
|
||||||
continue
|
continue
|
||||||
} else if k == "nameMap" {
|
} else if k == "nameMap" {
|
||||||
|
@ -499,6 +515,12 @@ func NewActivityStreamsGroup() *ActivityStreamsGroup {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
func (this ActivityStreamsGroup) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return this.ActivityStreamsAlsoKnownAs
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
func (this ActivityStreamsGroup) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
func (this ActivityStreamsGroup) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -642,6 +664,12 @@ func (this ActivityStreamsGroup) GetActivityStreamsMediaType() vocab.ActivityStr
|
||||||
return this.ActivityStreamsMediaType
|
return this.ActivityStreamsMediaType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil
|
||||||
|
// otherwise.
|
||||||
|
func (this ActivityStreamsGroup) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return this.ActivityStreamsMovedTo
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
||||||
// otherwise.
|
// otherwise.
|
||||||
func (this ActivityStreamsGroup) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
func (this ActivityStreamsGroup) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
||||||
|
@ -795,6 +823,7 @@ func (this ActivityStreamsGroup) IsExtending(other vocab.Type) bool {
|
||||||
// alias used to import the type and its properties.
|
// alias used to import the type and its properties.
|
||||||
func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
||||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsAlsoKnownAs, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
||||||
|
@ -822,6 +851,7 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsMovedTo, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
||||||
|
@ -849,6 +879,20 @@ func (this ActivityStreamsGroup) JSONLDContext() map[string]string {
|
||||||
// determination.
|
// determination.
|
||||||
func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
|
func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
|
||||||
// Begin: Compare known properties
|
// Begin: Compare known properties
|
||||||
|
// Compare property "alsoKnownAs"
|
||||||
|
if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "altitude"
|
// Compare property "altitude"
|
||||||
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1227,6 +1271,20 @@ func (this ActivityStreamsGroup) LessThan(o vocab.ActivityStreamsGroup) bool {
|
||||||
// Anything else is greater than nil
|
// Anything else is greater than nil
|
||||||
return false
|
return false
|
||||||
} // Else: Both are nil
|
} // Else: Both are nil
|
||||||
|
// Compare property "movedTo"
|
||||||
|
if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "name"
|
// Compare property "name"
|
||||||
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1516,6 +1574,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
|
||||||
}
|
}
|
||||||
m["type"] = typeName
|
m["type"] = typeName
|
||||||
// Begin: Serialize known properties
|
// Begin: Serialize known properties
|
||||||
|
// Maybe serialize property "alsoKnownAs"
|
||||||
|
if this.ActivityStreamsAlsoKnownAs != nil {
|
||||||
|
if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsAlsoKnownAs.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "altitude"
|
// Maybe serialize property "altitude"
|
||||||
if this.ActivityStreamsAltitude != nil {
|
if this.ActivityStreamsAltitude != nil {
|
||||||
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
||||||
|
@ -1732,6 +1798,14 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
|
||||||
m[this.ActivityStreamsMediaType.Name()] = i
|
m[this.ActivityStreamsMediaType.Name()] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Maybe serialize property "movedTo"
|
||||||
|
if this.ActivityStreamsMovedTo != nil {
|
||||||
|
if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsMovedTo.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "name"
|
// Maybe serialize property "name"
|
||||||
if this.ActivityStreamsName != nil {
|
if this.ActivityStreamsName != nil {
|
||||||
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
||||||
|
@ -1898,6 +1972,11 @@ func (this ActivityStreamsGroup) Serialize() (map[string]interface{}, error) {
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
func (this *ActivityStreamsGroup) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
func (this *ActivityStreamsGroup) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
func (this *ActivityStreamsGroup) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
||||||
this.ActivityStreamsAltitude = i
|
this.ActivityStreamsAltitude = i
|
||||||
|
@ -2019,6 +2098,11 @@ func (this *ActivityStreamsGroup) SetActivityStreamsMediaType(i vocab.ActivitySt
|
||||||
this.ActivityStreamsMediaType = i
|
this.ActivityStreamsMediaType = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
func (this *ActivityStreamsGroup) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) {
|
||||||
|
this.ActivityStreamsMovedTo = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
func (this *ActivityStreamsGroup) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
func (this *ActivityStreamsGroup) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
||||||
this.ActivityStreamsName = i
|
this.ActivityStreamsName = i
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
// privateManager abstracts the code-generated manager that provides access to
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
// concrete implementations.
|
// concrete implementations.
|
||||||
type privateManager interface {
|
type privateManager interface {
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the
|
||||||
|
// deserialization method for the "ActivityStreamsAlsoKnownAsProperty"
|
||||||
|
// non-functional property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error)
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
@ -121,6 +125,10 @@ type privateManager interface {
|
||||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsMovedToProperty" non-functional
|
||||||
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error)
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsNameProperty" non-functional
|
// method for the "ActivityStreamsNameProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// "type": "Organization"
|
// "type": "Organization"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsOrganization struct {
|
type ActivityStreamsOrganization struct {
|
||||||
|
ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
||||||
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
||||||
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
||||||
|
@ -43,6 +44,7 @@ type ActivityStreamsOrganization struct {
|
||||||
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
||||||
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
||||||
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
||||||
|
ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty
|
||||||
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
||||||
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
||||||
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
||||||
|
@ -115,6 +117,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
||||||
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
||||||
}
|
}
|
||||||
// Begin: Known property deserialization
|
// Begin: Known property deserialization
|
||||||
|
if p, err := mgr.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -250,6 +257,11 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
this.ActivityStreamsMediaType = p
|
this.ActivityStreamsMediaType = p
|
||||||
}
|
}
|
||||||
|
if p, err := mgr.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsMovedTo = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -350,7 +362,9 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
||||||
// Begin: Unknown deserialization
|
// Begin: Unknown deserialization
|
||||||
for k, v := range m {
|
for k, v := range m {
|
||||||
// Begin: Code that ensures a property name is unknown
|
// Begin: Code that ensures a property name is unknown
|
||||||
if k == "altitude" {
|
if k == "alsoKnownAs" {
|
||||||
|
continue
|
||||||
|
} else if k == "altitude" {
|
||||||
continue
|
continue
|
||||||
} else if k == "attachment" {
|
} else if k == "attachment" {
|
||||||
continue
|
continue
|
||||||
|
@ -406,6 +420,8 @@ func DeserializeOrganization(m map[string]interface{}, aliasMap map[string]strin
|
||||||
continue
|
continue
|
||||||
} else if k == "mediaType" {
|
} else if k == "mediaType" {
|
||||||
continue
|
continue
|
||||||
|
} else if k == "movedTo" {
|
||||||
|
continue
|
||||||
} else if k == "name" {
|
} else if k == "name" {
|
||||||
continue
|
continue
|
||||||
} else if k == "nameMap" {
|
} else if k == "nameMap" {
|
||||||
|
@ -499,6 +515,12 @@ func OrganizationIsExtendedBy(other vocab.Type) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
func (this ActivityStreamsOrganization) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return this.ActivityStreamsAlsoKnownAs
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
func (this ActivityStreamsOrganization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
func (this ActivityStreamsOrganization) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -642,6 +664,12 @@ func (this ActivityStreamsOrganization) GetActivityStreamsMediaType() vocab.Acti
|
||||||
return this.ActivityStreamsMediaType
|
return this.ActivityStreamsMediaType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil
|
||||||
|
// otherwise.
|
||||||
|
func (this ActivityStreamsOrganization) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return this.ActivityStreamsMovedTo
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
||||||
// otherwise.
|
// otherwise.
|
||||||
func (this ActivityStreamsOrganization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
func (this ActivityStreamsOrganization) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
||||||
|
@ -795,6 +823,7 @@ func (this ActivityStreamsOrganization) IsExtending(other vocab.Type) bool {
|
||||||
// alias used to import the type and its properties.
|
// alias used to import the type and its properties.
|
||||||
func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
||||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsAlsoKnownAs, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
||||||
|
@ -822,6 +851,7 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsMovedTo, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
||||||
|
@ -849,6 +879,20 @@ func (this ActivityStreamsOrganization) JSONLDContext() map[string]string {
|
||||||
// determination.
|
// determination.
|
||||||
func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganization) bool {
|
func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganization) bool {
|
||||||
// Begin: Compare known properties
|
// Begin: Compare known properties
|
||||||
|
// Compare property "alsoKnownAs"
|
||||||
|
if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "altitude"
|
// Compare property "altitude"
|
||||||
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1227,6 +1271,20 @@ func (this ActivityStreamsOrganization) LessThan(o vocab.ActivityStreamsOrganiza
|
||||||
// Anything else is greater than nil
|
// Anything else is greater than nil
|
||||||
return false
|
return false
|
||||||
} // Else: Both are nil
|
} // Else: Both are nil
|
||||||
|
// Compare property "movedTo"
|
||||||
|
if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "name"
|
// Compare property "name"
|
||||||
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1516,6 +1574,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
|
||||||
}
|
}
|
||||||
m["type"] = typeName
|
m["type"] = typeName
|
||||||
// Begin: Serialize known properties
|
// Begin: Serialize known properties
|
||||||
|
// Maybe serialize property "alsoKnownAs"
|
||||||
|
if this.ActivityStreamsAlsoKnownAs != nil {
|
||||||
|
if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsAlsoKnownAs.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "altitude"
|
// Maybe serialize property "altitude"
|
||||||
if this.ActivityStreamsAltitude != nil {
|
if this.ActivityStreamsAltitude != nil {
|
||||||
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
||||||
|
@ -1732,6 +1798,14 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
|
||||||
m[this.ActivityStreamsMediaType.Name()] = i
|
m[this.ActivityStreamsMediaType.Name()] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Maybe serialize property "movedTo"
|
||||||
|
if this.ActivityStreamsMovedTo != nil {
|
||||||
|
if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsMovedTo.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "name"
|
// Maybe serialize property "name"
|
||||||
if this.ActivityStreamsName != nil {
|
if this.ActivityStreamsName != nil {
|
||||||
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
||||||
|
@ -1898,6 +1972,11 @@ func (this ActivityStreamsOrganization) Serialize() (map[string]interface{}, err
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
func (this *ActivityStreamsOrganization) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
func (this *ActivityStreamsOrganization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
func (this *ActivityStreamsOrganization) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
||||||
this.ActivityStreamsAltitude = i
|
this.ActivityStreamsAltitude = i
|
||||||
|
@ -2019,6 +2098,11 @@ func (this *ActivityStreamsOrganization) SetActivityStreamsMediaType(i vocab.Act
|
||||||
this.ActivityStreamsMediaType = i
|
this.ActivityStreamsMediaType = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
func (this *ActivityStreamsOrganization) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) {
|
||||||
|
this.ActivityStreamsMovedTo = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
func (this *ActivityStreamsOrganization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
func (this *ActivityStreamsOrganization) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
||||||
this.ActivityStreamsName = i
|
this.ActivityStreamsName = i
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
// privateManager abstracts the code-generated manager that provides access to
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
// concrete implementations.
|
// concrete implementations.
|
||||||
type privateManager interface {
|
type privateManager interface {
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the
|
||||||
|
// deserialization method for the "ActivityStreamsAlsoKnownAsProperty"
|
||||||
|
// non-functional property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error)
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
@ -121,6 +125,10 @@ type privateManager interface {
|
||||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsMovedToProperty" non-functional
|
||||||
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error)
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsNameProperty" non-functional
|
// method for the "ActivityStreamsNameProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// "type": "Person"
|
// "type": "Person"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsPerson struct {
|
type ActivityStreamsPerson struct {
|
||||||
|
ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
||||||
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
||||||
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
||||||
|
@ -43,6 +44,7 @@ type ActivityStreamsPerson struct {
|
||||||
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
||||||
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
||||||
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
||||||
|
ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty
|
||||||
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
||||||
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
||||||
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
||||||
|
@ -115,6 +117,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
||||||
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
||||||
}
|
}
|
||||||
// Begin: Known property deserialization
|
// Begin: Known property deserialization
|
||||||
|
if p, err := mgr.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -250,6 +257,11 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
this.ActivityStreamsMediaType = p
|
this.ActivityStreamsMediaType = p
|
||||||
}
|
}
|
||||||
|
if p, err := mgr.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsMovedTo = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -350,7 +362,9 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
||||||
// Begin: Unknown deserialization
|
// Begin: Unknown deserialization
|
||||||
for k, v := range m {
|
for k, v := range m {
|
||||||
// Begin: Code that ensures a property name is unknown
|
// Begin: Code that ensures a property name is unknown
|
||||||
if k == "altitude" {
|
if k == "alsoKnownAs" {
|
||||||
|
continue
|
||||||
|
} else if k == "altitude" {
|
||||||
continue
|
continue
|
||||||
} else if k == "attachment" {
|
} else if k == "attachment" {
|
||||||
continue
|
continue
|
||||||
|
@ -406,6 +420,8 @@ func DeserializePerson(m map[string]interface{}, aliasMap map[string]string) (*A
|
||||||
continue
|
continue
|
||||||
} else if k == "mediaType" {
|
} else if k == "mediaType" {
|
||||||
continue
|
continue
|
||||||
|
} else if k == "movedTo" {
|
||||||
|
continue
|
||||||
} else if k == "name" {
|
} else if k == "name" {
|
||||||
continue
|
continue
|
||||||
} else if k == "nameMap" {
|
} else if k == "nameMap" {
|
||||||
|
@ -499,6 +515,12 @@ func PersonIsExtendedBy(other vocab.Type) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
func (this ActivityStreamsPerson) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return this.ActivityStreamsAlsoKnownAs
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
func (this ActivityStreamsPerson) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
func (this ActivityStreamsPerson) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -642,6 +664,12 @@ func (this ActivityStreamsPerson) GetActivityStreamsMediaType() vocab.ActivitySt
|
||||||
return this.ActivityStreamsMediaType
|
return this.ActivityStreamsMediaType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil
|
||||||
|
// otherwise.
|
||||||
|
func (this ActivityStreamsPerson) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return this.ActivityStreamsMovedTo
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
||||||
// otherwise.
|
// otherwise.
|
||||||
func (this ActivityStreamsPerson) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
func (this ActivityStreamsPerson) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
||||||
|
@ -795,6 +823,7 @@ func (this ActivityStreamsPerson) IsExtending(other vocab.Type) bool {
|
||||||
// alias used to import the type and its properties.
|
// alias used to import the type and its properties.
|
||||||
func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
||||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsAlsoKnownAs, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
||||||
|
@ -822,6 +851,7 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsMovedTo, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
||||||
|
@ -849,6 +879,20 @@ func (this ActivityStreamsPerson) JSONLDContext() map[string]string {
|
||||||
// determination.
|
// determination.
|
||||||
func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
|
func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
|
||||||
// Begin: Compare known properties
|
// Begin: Compare known properties
|
||||||
|
// Compare property "alsoKnownAs"
|
||||||
|
if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "altitude"
|
// Compare property "altitude"
|
||||||
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1227,6 +1271,20 @@ func (this ActivityStreamsPerson) LessThan(o vocab.ActivityStreamsPerson) bool {
|
||||||
// Anything else is greater than nil
|
// Anything else is greater than nil
|
||||||
return false
|
return false
|
||||||
} // Else: Both are nil
|
} // Else: Both are nil
|
||||||
|
// Compare property "movedTo"
|
||||||
|
if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "name"
|
// Compare property "name"
|
||||||
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1516,6 +1574,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
|
||||||
}
|
}
|
||||||
m["type"] = typeName
|
m["type"] = typeName
|
||||||
// Begin: Serialize known properties
|
// Begin: Serialize known properties
|
||||||
|
// Maybe serialize property "alsoKnownAs"
|
||||||
|
if this.ActivityStreamsAlsoKnownAs != nil {
|
||||||
|
if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsAlsoKnownAs.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "altitude"
|
// Maybe serialize property "altitude"
|
||||||
if this.ActivityStreamsAltitude != nil {
|
if this.ActivityStreamsAltitude != nil {
|
||||||
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
||||||
|
@ -1732,6 +1798,14 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
|
||||||
m[this.ActivityStreamsMediaType.Name()] = i
|
m[this.ActivityStreamsMediaType.Name()] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Maybe serialize property "movedTo"
|
||||||
|
if this.ActivityStreamsMovedTo != nil {
|
||||||
|
if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsMovedTo.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "name"
|
// Maybe serialize property "name"
|
||||||
if this.ActivityStreamsName != nil {
|
if this.ActivityStreamsName != nil {
|
||||||
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
||||||
|
@ -1898,6 +1972,11 @@ func (this ActivityStreamsPerson) Serialize() (map[string]interface{}, error) {
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
func (this *ActivityStreamsPerson) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
func (this *ActivityStreamsPerson) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
func (this *ActivityStreamsPerson) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
||||||
this.ActivityStreamsAltitude = i
|
this.ActivityStreamsAltitude = i
|
||||||
|
@ -2019,6 +2098,11 @@ func (this *ActivityStreamsPerson) SetActivityStreamsMediaType(i vocab.ActivityS
|
||||||
this.ActivityStreamsMediaType = i
|
this.ActivityStreamsMediaType = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
func (this *ActivityStreamsPerson) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) {
|
||||||
|
this.ActivityStreamsMovedTo = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
func (this *ActivityStreamsPerson) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
func (this *ActivityStreamsPerson) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
||||||
this.ActivityStreamsName = i
|
this.ActivityStreamsName = i
|
||||||
|
|
|
@ -11,6 +11,10 @@
|
||||||
// privateManager abstracts the code-generated manager that provides access to
|
// privateManager abstracts the code-generated manager that provides access to
|
||||||
// concrete implementations.
|
// concrete implementations.
|
||||||
type privateManager interface {
|
type privateManager interface {
|
||||||
|
// DeserializeAlsoKnownAsPropertyActivityStreams returns the
|
||||||
|
// deserialization method for the "ActivityStreamsAlsoKnownAsProperty"
|
||||||
|
// non-functional property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeAlsoKnownAsPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAlsoKnownAsProperty, error)
|
||||||
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
// DeserializeAltitudePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
// method for the "ActivityStreamsAltitudeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
@ -121,6 +125,10 @@ type privateManager interface {
|
||||||
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
// method for the "ActivityStreamsMediaTypeProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
DeserializeMediaTypePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMediaTypeProperty, error)
|
||||||
|
// DeserializeMovedToPropertyActivityStreams returns the deserialization
|
||||||
|
// method for the "ActivityStreamsMovedToProperty" non-functional
|
||||||
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
DeserializeMovedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsMovedToProperty, error)
|
||||||
// DeserializeNamePropertyActivityStreams returns the deserialization
|
// DeserializeNamePropertyActivityStreams returns the deserialization
|
||||||
// method for the "ActivityStreamsNameProperty" non-functional
|
// method for the "ActivityStreamsNameProperty" non-functional
|
||||||
// property in the vocabulary "ActivityStreams"
|
// property in the vocabulary "ActivityStreams"
|
||||||
|
|
|
@ -16,6 +16,7 @@
|
||||||
// "type": "Service"
|
// "type": "Service"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsService struct {
|
type ActivityStreamsService struct {
|
||||||
|
ActivityStreamsAlsoKnownAs vocab.ActivityStreamsAlsoKnownAsProperty
|
||||||
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
ActivityStreamsAltitude vocab.ActivityStreamsAltitudeProperty
|
||||||
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
ActivityStreamsAttachment vocab.ActivityStreamsAttachmentProperty
|
||||||
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
ActivityStreamsAttributedTo vocab.ActivityStreamsAttributedToProperty
|
||||||
|
@ -43,6 +44,7 @@ type ActivityStreamsService struct {
|
||||||
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
ActivityStreamsLocation vocab.ActivityStreamsLocationProperty
|
||||||
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
ActivityStreamsManuallyApprovesFollowers vocab.ActivityStreamsManuallyApprovesFollowersProperty
|
||||||
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
ActivityStreamsMediaType vocab.ActivityStreamsMediaTypeProperty
|
||||||
|
ActivityStreamsMovedTo vocab.ActivityStreamsMovedToProperty
|
||||||
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
ActivityStreamsName vocab.ActivityStreamsNameProperty
|
||||||
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
ActivityStreamsObject vocab.ActivityStreamsObjectProperty
|
||||||
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
ActivityStreamsOutbox vocab.ActivityStreamsOutboxProperty
|
||||||
|
@ -115,6 +117,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
||||||
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
return nil, fmt.Errorf("\"type\" property is unrecognized type: %T", typeValue)
|
||||||
}
|
}
|
||||||
// Begin: Known property deserialization
|
// Begin: Known property deserialization
|
||||||
|
if p, err := mgr.DeserializeAlsoKnownAsPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeAltitudePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -250,6 +257,11 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
this.ActivityStreamsMediaType = p
|
this.ActivityStreamsMediaType = p
|
||||||
}
|
}
|
||||||
|
if p, err := mgr.DeserializeMovedToPropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if p != nil {
|
||||||
|
this.ActivityStreamsMovedTo = p
|
||||||
|
}
|
||||||
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
if p, err := mgr.DeserializeNamePropertyActivityStreams()(m, aliasMap); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
} else if p != nil {
|
} else if p != nil {
|
||||||
|
@ -350,7 +362,9 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
||||||
// Begin: Unknown deserialization
|
// Begin: Unknown deserialization
|
||||||
for k, v := range m {
|
for k, v := range m {
|
||||||
// Begin: Code that ensures a property name is unknown
|
// Begin: Code that ensures a property name is unknown
|
||||||
if k == "altitude" {
|
if k == "alsoKnownAs" {
|
||||||
|
continue
|
||||||
|
} else if k == "altitude" {
|
||||||
continue
|
continue
|
||||||
} else if k == "attachment" {
|
} else if k == "attachment" {
|
||||||
continue
|
continue
|
||||||
|
@ -406,6 +420,8 @@ func DeserializeService(m map[string]interface{}, aliasMap map[string]string) (*
|
||||||
continue
|
continue
|
||||||
} else if k == "mediaType" {
|
} else if k == "mediaType" {
|
||||||
continue
|
continue
|
||||||
|
} else if k == "movedTo" {
|
||||||
|
continue
|
||||||
} else if k == "name" {
|
} else if k == "name" {
|
||||||
continue
|
continue
|
||||||
} else if k == "nameMap" {
|
} else if k == "nameMap" {
|
||||||
|
@ -499,6 +515,12 @@ func ServiceIsExtendedBy(other vocab.Type) bool {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
func (this ActivityStreamsService) GetActivityStreamsAlsoKnownAs() vocab.ActivityStreamsAlsoKnownAsProperty {
|
||||||
|
return this.ActivityStreamsAlsoKnownAs
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
// GetActivityStreamsAltitude returns the "altitude" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
func (this ActivityStreamsService) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
func (this ActivityStreamsService) GetActivityStreamsAltitude() vocab.ActivityStreamsAltitudeProperty {
|
||||||
|
@ -642,6 +664,12 @@ func (this ActivityStreamsService) GetActivityStreamsMediaType() vocab.ActivityS
|
||||||
return this.ActivityStreamsMediaType
|
return this.ActivityStreamsMediaType
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists, and nil
|
||||||
|
// otherwise.
|
||||||
|
func (this ActivityStreamsService) GetActivityStreamsMovedTo() vocab.ActivityStreamsMovedToProperty {
|
||||||
|
return this.ActivityStreamsMovedTo
|
||||||
|
}
|
||||||
|
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
// GetActivityStreamsName returns the "name" property if it exists, and nil
|
||||||
// otherwise.
|
// otherwise.
|
||||||
func (this ActivityStreamsService) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
func (this ActivityStreamsService) GetActivityStreamsName() vocab.ActivityStreamsNameProperty {
|
||||||
|
@ -795,6 +823,7 @@ func (this ActivityStreamsService) IsExtending(other vocab.Type) bool {
|
||||||
// alias used to import the type and its properties.
|
// alias used to import the type and its properties.
|
||||||
func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
||||||
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
m := map[string]string{"https://www.w3.org/ns/activitystreams": this.alias}
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsAlsoKnownAs, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAltitude, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttachment, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsAttributedTo, m)
|
||||||
|
@ -822,6 +851,7 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsLocation, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsManuallyApprovesFollowers, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsMediaType, m)
|
||||||
|
m = this.helperJSONLDContext(this.ActivityStreamsMovedTo, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsName, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsObject, m)
|
||||||
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
m = this.helperJSONLDContext(this.ActivityStreamsOutbox, m)
|
||||||
|
@ -849,6 +879,20 @@ func (this ActivityStreamsService) JSONLDContext() map[string]string {
|
||||||
// determination.
|
// determination.
|
||||||
func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool {
|
func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool {
|
||||||
// Begin: Compare known properties
|
// Begin: Compare known properties
|
||||||
|
// Compare property "alsoKnownAs"
|
||||||
|
if lhs, rhs := this.ActivityStreamsAlsoKnownAs, o.GetActivityStreamsAlsoKnownAs(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "altitude"
|
// Compare property "altitude"
|
||||||
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsAltitude, o.GetActivityStreamsAltitude(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1227,6 +1271,20 @@ func (this ActivityStreamsService) LessThan(o vocab.ActivityStreamsService) bool
|
||||||
// Anything else is greater than nil
|
// Anything else is greater than nil
|
||||||
return false
|
return false
|
||||||
} // Else: Both are nil
|
} // Else: Both are nil
|
||||||
|
// Compare property "movedTo"
|
||||||
|
if lhs, rhs := this.ActivityStreamsMovedTo, o.GetActivityStreamsMovedTo(); lhs != nil && rhs != nil {
|
||||||
|
if lhs.LessThan(rhs) {
|
||||||
|
return true
|
||||||
|
} else if rhs.LessThan(lhs) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
} else if lhs == nil && rhs != nil {
|
||||||
|
// Nil is less than anything else
|
||||||
|
return true
|
||||||
|
} else if rhs != nil && rhs == nil {
|
||||||
|
// Anything else is greater than nil
|
||||||
|
return false
|
||||||
|
} // Else: Both are nil
|
||||||
// Compare property "name"
|
// Compare property "name"
|
||||||
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
if lhs, rhs := this.ActivityStreamsName, o.GetActivityStreamsName(); lhs != nil && rhs != nil {
|
||||||
if lhs.LessThan(rhs) {
|
if lhs.LessThan(rhs) {
|
||||||
|
@ -1516,6 +1574,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
|
||||||
}
|
}
|
||||||
m["type"] = typeName
|
m["type"] = typeName
|
||||||
// Begin: Serialize known properties
|
// Begin: Serialize known properties
|
||||||
|
// Maybe serialize property "alsoKnownAs"
|
||||||
|
if this.ActivityStreamsAlsoKnownAs != nil {
|
||||||
|
if i, err := this.ActivityStreamsAlsoKnownAs.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsAlsoKnownAs.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "altitude"
|
// Maybe serialize property "altitude"
|
||||||
if this.ActivityStreamsAltitude != nil {
|
if this.ActivityStreamsAltitude != nil {
|
||||||
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsAltitude.Serialize(); err != nil {
|
||||||
|
@ -1732,6 +1798,14 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
|
||||||
m[this.ActivityStreamsMediaType.Name()] = i
|
m[this.ActivityStreamsMediaType.Name()] = i
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// Maybe serialize property "movedTo"
|
||||||
|
if this.ActivityStreamsMovedTo != nil {
|
||||||
|
if i, err := this.ActivityStreamsMovedTo.Serialize(); err != nil {
|
||||||
|
return nil, err
|
||||||
|
} else if i != nil {
|
||||||
|
m[this.ActivityStreamsMovedTo.Name()] = i
|
||||||
|
}
|
||||||
|
}
|
||||||
// Maybe serialize property "name"
|
// Maybe serialize property "name"
|
||||||
if this.ActivityStreamsName != nil {
|
if this.ActivityStreamsName != nil {
|
||||||
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
if i, err := this.ActivityStreamsName.Serialize(); err != nil {
|
||||||
|
@ -1898,6 +1972,11 @@ func (this ActivityStreamsService) Serialize() (map[string]interface{}, error) {
|
||||||
return m, nil
|
return m, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
func (this *ActivityStreamsService) SetActivityStreamsAlsoKnownAs(i vocab.ActivityStreamsAlsoKnownAsProperty) {
|
||||||
|
this.ActivityStreamsAlsoKnownAs = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
func (this *ActivityStreamsService) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
func (this *ActivityStreamsService) SetActivityStreamsAltitude(i vocab.ActivityStreamsAltitudeProperty) {
|
||||||
this.ActivityStreamsAltitude = i
|
this.ActivityStreamsAltitude = i
|
||||||
|
@ -2019,6 +2098,11 @@ func (this *ActivityStreamsService) SetActivityStreamsMediaType(i vocab.Activity
|
||||||
this.ActivityStreamsMediaType = i
|
this.ActivityStreamsMediaType = i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
func (this *ActivityStreamsService) SetActivityStreamsMovedTo(i vocab.ActivityStreamsMovedToProperty) {
|
||||||
|
this.ActivityStreamsMovedTo = i
|
||||||
|
}
|
||||||
|
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
func (this *ActivityStreamsService) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
func (this *ActivityStreamsService) SetActivityStreamsName(i vocab.ActivityStreamsNameProperty) {
|
||||||
this.ActivityStreamsName = i
|
this.ActivityStreamsName = i
|
||||||
|
|
131
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go
generated
vendored
Normal file
131
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_alsoKnownAs_interface.go
generated
vendored
Normal file
|
@ -0,0 +1,131 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package vocab
|
||||||
|
|
||||||
|
import "net/url"
|
||||||
|
|
||||||
|
// ActivityStreamsAlsoKnownAsPropertyIterator represents a single value for the
|
||||||
|
// "alsoKnownAs" property.
|
||||||
|
type ActivityStreamsAlsoKnownAsPropertyIterator interface {
|
||||||
|
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
|
||||||
|
// false, Get will return any arbitrary value.
|
||||||
|
Get() *url.URL
|
||||||
|
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||||
|
// GetIRI will return any arbitrary value.
|
||||||
|
GetIRI() *url.URL
|
||||||
|
// HasAny returns true if the value or IRI is set.
|
||||||
|
HasAny() bool
|
||||||
|
// IsIRI returns true if this property is an IRI.
|
||||||
|
IsIRI() bool
|
||||||
|
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||||
|
IsXMLSchemaAnyURI() bool
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||||
|
// for this property and the specific values that are set. The value
|
||||||
|
// in the map is the alias used to import the property's value or
|
||||||
|
// values.
|
||||||
|
JSONLDContext() map[string]string
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||||
|
// This is a leaky API detail only for folks looking to replace the
|
||||||
|
// go-fed implementation. Applications should not use this method.
|
||||||
|
KindIndex() int
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but
|
||||||
|
// stable comparison. Applications should not use this because it is
|
||||||
|
// only meant to help alternative implementations to go-fed to be able
|
||||||
|
// to normalize nonfunctional properties.
|
||||||
|
LessThan(o ActivityStreamsAlsoKnownAsPropertyIterator) bool
|
||||||
|
// Name returns the name of this property: "ActivityStreamsAlsoKnownAs".
|
||||||
|
Name() string
|
||||||
|
// Next returns the next iterator, or nil if there is no next iterator.
|
||||||
|
Next() ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
// Prev returns the previous iterator, or nil if there is no previous
|
||||||
|
// iterator.
|
||||||
|
Prev() ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
|
||||||
|
// afterwards will return true.
|
||||||
|
Set(v *url.URL)
|
||||||
|
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||||
|
// return true.
|
||||||
|
SetIRI(v *url.URL)
|
||||||
|
}
|
||||||
|
|
||||||
|
// List of other URIs/AP IDs by which this actor is also known (eg., URIs of 'alt'
|
||||||
|
// account, previous account, new account, etc).
|
||||||
|
type ActivityStreamsAlsoKnownAsProperty interface {
|
||||||
|
// AppendIRI appends an IRI value to the back of a list of the property
|
||||||
|
// "alsoKnownAs"
|
||||||
|
AppendIRI(v *url.URL)
|
||||||
|
// AppendXMLSchemaAnyURI appends a anyURI value to the back of a list of
|
||||||
|
// the property "alsoKnownAs". Invalidates iterators that are
|
||||||
|
// traversing using Prev.
|
||||||
|
AppendXMLSchemaAnyURI(v *url.URL)
|
||||||
|
// At returns the property value for the specified index. Panics if the
|
||||||
|
// index is out of bounds.
|
||||||
|
At(index int) ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
// Begin returns the first iterator, or nil if empty. Can be used with the
|
||||||
|
// iterator's Next method and this property's End method to iterate
|
||||||
|
// from front to back through all values.
|
||||||
|
Begin() ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
// Empty returns returns true if there are no elements.
|
||||||
|
Empty() bool
|
||||||
|
// End returns beyond-the-last iterator, which is nil. Can be used with
|
||||||
|
// the iterator's Next method and this property's Begin method to
|
||||||
|
// iterate from front to back through all values.
|
||||||
|
End() ActivityStreamsAlsoKnownAsPropertyIterator
|
||||||
|
// Insert inserts an IRI value at the specified index for a property
|
||||||
|
// "alsoKnownAs". Existing elements at that index and higher are
|
||||||
|
// shifted back once. Invalidates all iterators.
|
||||||
|
InsertIRI(idx int, v *url.URL)
|
||||||
|
// InsertXMLSchemaAnyURI inserts a anyURI value at the specified index for
|
||||||
|
// a property "alsoKnownAs". Existing elements at that index and
|
||||||
|
// higher are shifted back once. Invalidates all iterators.
|
||||||
|
InsertXMLSchemaAnyURI(idx int, v *url.URL)
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||||
|
// for this property and the specific values that are set. The value
|
||||||
|
// in the map is the alias used to import the property's value or
|
||||||
|
// values.
|
||||||
|
JSONLDContext() map[string]string
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||||
|
// This is a leaky API method specifically needed only for alternate
|
||||||
|
// implementations for go-fed. Applications should not use this
|
||||||
|
// method. Panics if the index is out of bounds.
|
||||||
|
KindIndex(idx int) int
|
||||||
|
// Len returns the number of values that exist for the "alsoKnownAs"
|
||||||
|
// property.
|
||||||
|
Len() (length int)
|
||||||
|
// Less computes whether another property is less than this one. Mixing
|
||||||
|
// types results in a consistent but arbitrary ordering
|
||||||
|
Less(i, j int) bool
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but
|
||||||
|
// stable comparison. Applications should not use this because it is
|
||||||
|
// only meant to help alternative implementations to go-fed to be able
|
||||||
|
// to normalize nonfunctional properties.
|
||||||
|
LessThan(o ActivityStreamsAlsoKnownAsProperty) bool
|
||||||
|
// Name returns the name of this property ("alsoKnownAs") with any alias.
|
||||||
|
Name() string
|
||||||
|
// PrependIRI prepends an IRI value to the front of a list of the property
|
||||||
|
// "alsoKnownAs".
|
||||||
|
PrependIRI(v *url.URL)
|
||||||
|
// PrependXMLSchemaAnyURI prepends a anyURI value to the front of a list
|
||||||
|
// of the property "alsoKnownAs". Invalidates all iterators.
|
||||||
|
PrependXMLSchemaAnyURI(v *url.URL)
|
||||||
|
// Remove deletes an element at the specified index from a list of the
|
||||||
|
// property "alsoKnownAs", regardless of its type. Panics if the index
|
||||||
|
// is out of bounds. Invalidates all iterators.
|
||||||
|
Remove(idx int)
|
||||||
|
// Serialize converts this into an interface representation suitable for
|
||||||
|
// marshalling into a text or binary format. Applications should not
|
||||||
|
// need this function as most typical use cases serialize types
|
||||||
|
// instead of individual properties. It is exposed for alternatives to
|
||||||
|
// go-fed implementations to use.
|
||||||
|
Serialize() (interface{}, error)
|
||||||
|
// Set sets a anyURI value to be at the specified index for the property
|
||||||
|
// "alsoKnownAs". Panics if the index is out of bounds. Invalidates
|
||||||
|
// all iterators.
|
||||||
|
Set(idx int, v *url.URL)
|
||||||
|
// SetIRI sets an IRI value to be at the specified index for the property
|
||||||
|
// "alsoKnownAs". Panics if the index is out of bounds.
|
||||||
|
SetIRI(idx int, v *url.URL)
|
||||||
|
// Swap swaps the location of values at two indices for the "alsoKnownAs"
|
||||||
|
// property.
|
||||||
|
Swap(i, j int)
|
||||||
|
}
|
54
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go
generated
vendored
Normal file
54
vendor/github.com/superseriousbusiness/activity/streams/vocab/gen_property_activitystreams_movedTo_interface.go
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
// Code generated by astool. DO NOT EDIT.
|
||||||
|
|
||||||
|
package vocab
|
||||||
|
|
||||||
|
import "net/url"
|
||||||
|
|
||||||
|
// URI/ID to which this Actor has moved. A set value indicates that the Actor is
|
||||||
|
// now active at the target URI, and is no longer active on the Actor model on
|
||||||
|
// which this property is set.
|
||||||
|
type ActivityStreamsMovedToProperty interface {
|
||||||
|
// Clear ensures no value of this property is set. Calling
|
||||||
|
// IsXMLSchemaAnyURI afterwards will return false.
|
||||||
|
Clear()
|
||||||
|
// Get returns the value of this property. When IsXMLSchemaAnyURI returns
|
||||||
|
// false, Get will return any arbitrary value.
|
||||||
|
Get() *url.URL
|
||||||
|
// GetIRI returns the IRI of this property. When IsIRI returns false,
|
||||||
|
// GetIRI will return any arbitrary value.
|
||||||
|
GetIRI() *url.URL
|
||||||
|
// HasAny returns true if the value or IRI is set.
|
||||||
|
HasAny() bool
|
||||||
|
// IsIRI returns true if this property is an IRI.
|
||||||
|
IsIRI() bool
|
||||||
|
// IsXMLSchemaAnyURI returns true if this property is set and not an IRI.
|
||||||
|
IsXMLSchemaAnyURI() bool
|
||||||
|
// JSONLDContext returns the JSONLD URIs required in the context string
|
||||||
|
// for this property and the specific values that are set. The value
|
||||||
|
// in the map is the alias used to import the property's value or
|
||||||
|
// values.
|
||||||
|
JSONLDContext() map[string]string
|
||||||
|
// KindIndex computes an arbitrary value for indexing this kind of value.
|
||||||
|
// This is a leaky API detail only for folks looking to replace the
|
||||||
|
// go-fed implementation. Applications should not use this method.
|
||||||
|
KindIndex() int
|
||||||
|
// LessThan compares two instances of this property with an arbitrary but
|
||||||
|
// stable comparison. Applications should not use this because it is
|
||||||
|
// only meant to help alternative implementations to go-fed to be able
|
||||||
|
// to normalize nonfunctional properties.
|
||||||
|
LessThan(o ActivityStreamsMovedToProperty) bool
|
||||||
|
// Name returns the name of this property: "movedTo".
|
||||||
|
Name() string
|
||||||
|
// Serialize converts this into an interface representation suitable for
|
||||||
|
// marshalling into a text or binary format. Applications should not
|
||||||
|
// need this function as most typical use cases serialize types
|
||||||
|
// instead of individual properties. It is exposed for alternatives to
|
||||||
|
// go-fed implementations to use.
|
||||||
|
Serialize() (interface{}, error)
|
||||||
|
// Set sets the value of this property. Calling IsXMLSchemaAnyURI
|
||||||
|
// afterwards will return true.
|
||||||
|
Set(v *url.URL)
|
||||||
|
// SetIRI sets the value of this property. Calling IsIRI afterwards will
|
||||||
|
// return true.
|
||||||
|
SetIRI(v *url.URL)
|
||||||
|
}
|
|
@ -10,6 +10,9 @@
|
||||||
// "type": "Application"
|
// "type": "Application"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsApplication interface {
|
type ActivityStreamsApplication interface {
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it
|
||||||
|
// exists, and nil otherwise.
|
||||||
|
GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it
|
// GetActivityStreamsAltitude returns the "altitude" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
||||||
|
@ -83,6 +86,9 @@ type ActivityStreamsApplication interface {
|
||||||
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and
|
// GetActivityStreamsName returns the "name" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
GetActivityStreamsName() ActivityStreamsNameProperty
|
GetActivityStreamsName() ActivityStreamsNameProperty
|
||||||
|
@ -171,6 +177,8 @@ type ActivityStreamsApplication interface {
|
||||||
// Serialize converts this into an interface representation suitable for
|
// Serialize converts this into an interface representation suitable for
|
||||||
// marshalling into a text or binary format.
|
// marshalling into a text or binary format.
|
||||||
Serialize() (map[string]interface{}, error)
|
Serialize() (map[string]interface{}, error)
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty)
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
||||||
// SetActivityStreamsAttachment sets the "attachment" property.
|
// SetActivityStreamsAttachment sets the "attachment" property.
|
||||||
|
@ -220,6 +228,8 @@ type ActivityStreamsApplication interface {
|
||||||
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
||||||
// SetActivityStreamsMediaType sets the "mediaType" property.
|
// SetActivityStreamsMediaType sets the "mediaType" property.
|
||||||
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty)
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
||||||
// SetActivityStreamsObject sets the "object" property.
|
// SetActivityStreamsObject sets the "object" property.
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
// "type": "Group"
|
// "type": "Group"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsGroup interface {
|
type ActivityStreamsGroup interface {
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it
|
||||||
|
// exists, and nil otherwise.
|
||||||
|
GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it
|
// GetActivityStreamsAltitude returns the "altitude" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
||||||
|
@ -83,6 +86,9 @@ type ActivityStreamsGroup interface {
|
||||||
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and
|
// GetActivityStreamsName returns the "name" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
GetActivityStreamsName() ActivityStreamsNameProperty
|
GetActivityStreamsName() ActivityStreamsNameProperty
|
||||||
|
@ -170,6 +176,8 @@ type ActivityStreamsGroup interface {
|
||||||
// Serialize converts this into an interface representation suitable for
|
// Serialize converts this into an interface representation suitable for
|
||||||
// marshalling into a text or binary format.
|
// marshalling into a text or binary format.
|
||||||
Serialize() (map[string]interface{}, error)
|
Serialize() (map[string]interface{}, error)
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty)
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
||||||
// SetActivityStreamsAttachment sets the "attachment" property.
|
// SetActivityStreamsAttachment sets the "attachment" property.
|
||||||
|
@ -219,6 +227,8 @@ type ActivityStreamsGroup interface {
|
||||||
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
||||||
// SetActivityStreamsMediaType sets the "mediaType" property.
|
// SetActivityStreamsMediaType sets the "mediaType" property.
|
||||||
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty)
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
||||||
// SetActivityStreamsObject sets the "object" property.
|
// SetActivityStreamsObject sets the "object" property.
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
// "type": "Organization"
|
// "type": "Organization"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsOrganization interface {
|
type ActivityStreamsOrganization interface {
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it
|
||||||
|
// exists, and nil otherwise.
|
||||||
|
GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it
|
// GetActivityStreamsAltitude returns the "altitude" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
||||||
|
@ -83,6 +86,9 @@ type ActivityStreamsOrganization interface {
|
||||||
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and
|
// GetActivityStreamsName returns the "name" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
GetActivityStreamsName() ActivityStreamsNameProperty
|
GetActivityStreamsName() ActivityStreamsNameProperty
|
||||||
|
@ -171,6 +177,8 @@ type ActivityStreamsOrganization interface {
|
||||||
// Serialize converts this into an interface representation suitable for
|
// Serialize converts this into an interface representation suitable for
|
||||||
// marshalling into a text or binary format.
|
// marshalling into a text or binary format.
|
||||||
Serialize() (map[string]interface{}, error)
|
Serialize() (map[string]interface{}, error)
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty)
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
||||||
// SetActivityStreamsAttachment sets the "attachment" property.
|
// SetActivityStreamsAttachment sets the "attachment" property.
|
||||||
|
@ -220,6 +228,8 @@ type ActivityStreamsOrganization interface {
|
||||||
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
||||||
// SetActivityStreamsMediaType sets the "mediaType" property.
|
// SetActivityStreamsMediaType sets the "mediaType" property.
|
||||||
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty)
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
||||||
// SetActivityStreamsObject sets the "object" property.
|
// SetActivityStreamsObject sets the "object" property.
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
// "type": "Person"
|
// "type": "Person"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsPerson interface {
|
type ActivityStreamsPerson interface {
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it
|
||||||
|
// exists, and nil otherwise.
|
||||||
|
GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it
|
// GetActivityStreamsAltitude returns the "altitude" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
||||||
|
@ -83,6 +86,9 @@ type ActivityStreamsPerson interface {
|
||||||
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and
|
// GetActivityStreamsName returns the "name" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
GetActivityStreamsName() ActivityStreamsNameProperty
|
GetActivityStreamsName() ActivityStreamsNameProperty
|
||||||
|
@ -170,6 +176,8 @@ type ActivityStreamsPerson interface {
|
||||||
// Serialize converts this into an interface representation suitable for
|
// Serialize converts this into an interface representation suitable for
|
||||||
// marshalling into a text or binary format.
|
// marshalling into a text or binary format.
|
||||||
Serialize() (map[string]interface{}, error)
|
Serialize() (map[string]interface{}, error)
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty)
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
||||||
// SetActivityStreamsAttachment sets the "attachment" property.
|
// SetActivityStreamsAttachment sets the "attachment" property.
|
||||||
|
@ -219,6 +227,8 @@ type ActivityStreamsPerson interface {
|
||||||
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
||||||
// SetActivityStreamsMediaType sets the "mediaType" property.
|
// SetActivityStreamsMediaType sets the "mediaType" property.
|
||||||
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty)
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
||||||
// SetActivityStreamsObject sets the "object" property.
|
// SetActivityStreamsObject sets the "object" property.
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
// "type": "Service"
|
// "type": "Service"
|
||||||
// }
|
// }
|
||||||
type ActivityStreamsService interface {
|
type ActivityStreamsService interface {
|
||||||
|
// GetActivityStreamsAlsoKnownAs returns the "alsoKnownAs" property if it
|
||||||
|
// exists, and nil otherwise.
|
||||||
|
GetActivityStreamsAlsoKnownAs() ActivityStreamsAlsoKnownAsProperty
|
||||||
// GetActivityStreamsAltitude returns the "altitude" property if it
|
// GetActivityStreamsAltitude returns the "altitude" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
|
||||||
|
@ -83,6 +86,9 @@ type ActivityStreamsService interface {
|
||||||
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
// GetActivityStreamsMediaType returns the "mediaType" property if it
|
||||||
// exists, and nil otherwise.
|
// exists, and nil otherwise.
|
||||||
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
|
||||||
|
// GetActivityStreamsMovedTo returns the "movedTo" property if it exists,
|
||||||
|
// and nil otherwise.
|
||||||
|
GetActivityStreamsMovedTo() ActivityStreamsMovedToProperty
|
||||||
// GetActivityStreamsName returns the "name" property if it exists, and
|
// GetActivityStreamsName returns the "name" property if it exists, and
|
||||||
// nil otherwise.
|
// nil otherwise.
|
||||||
GetActivityStreamsName() ActivityStreamsNameProperty
|
GetActivityStreamsName() ActivityStreamsNameProperty
|
||||||
|
@ -171,6 +177,8 @@ type ActivityStreamsService interface {
|
||||||
// Serialize converts this into an interface representation suitable for
|
// Serialize converts this into an interface representation suitable for
|
||||||
// marshalling into a text or binary format.
|
// marshalling into a text or binary format.
|
||||||
Serialize() (map[string]interface{}, error)
|
Serialize() (map[string]interface{}, error)
|
||||||
|
// SetActivityStreamsAlsoKnownAs sets the "alsoKnownAs" property.
|
||||||
|
SetActivityStreamsAlsoKnownAs(i ActivityStreamsAlsoKnownAsProperty)
|
||||||
// SetActivityStreamsAltitude sets the "altitude" property.
|
// SetActivityStreamsAltitude sets the "altitude" property.
|
||||||
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
|
||||||
// SetActivityStreamsAttachment sets the "attachment" property.
|
// SetActivityStreamsAttachment sets the "attachment" property.
|
||||||
|
@ -220,6 +228,8 @@ type ActivityStreamsService interface {
|
||||||
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
SetActivityStreamsManuallyApprovesFollowers(i ActivityStreamsManuallyApprovesFollowersProperty)
|
||||||
// SetActivityStreamsMediaType sets the "mediaType" property.
|
// SetActivityStreamsMediaType sets the "mediaType" property.
|
||||||
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
|
||||||
|
// SetActivityStreamsMovedTo sets the "movedTo" property.
|
||||||
|
SetActivityStreamsMovedTo(i ActivityStreamsMovedToProperty)
|
||||||
// SetActivityStreamsName sets the "name" property.
|
// SetActivityStreamsName sets the "name" property.
|
||||||
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
SetActivityStreamsName(i ActivityStreamsNameProperty)
|
||||||
// SetActivityStreamsObject sets the "object" property.
|
// SetActivityStreamsObject sets the "object" property.
|
||||||
|
|
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
|
@ -507,12 +507,13 @@ github.com/stretchr/testify/suite
|
||||||
# github.com/subosito/gotenv v1.6.0
|
# github.com/subosito/gotenv v1.6.0
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/subosito/gotenv
|
github.com/subosito/gotenv
|
||||||
# github.com/superseriousbusiness/activity v1.4.0-gts
|
# github.com/superseriousbusiness/activity v1.6.0-gts
|
||||||
## explicit; go 1.18
|
## explicit; go 1.18
|
||||||
github.com/superseriousbusiness/activity/pub
|
github.com/superseriousbusiness/activity/pub
|
||||||
github.com/superseriousbusiness/activity/streams
|
github.com/superseriousbusiness/activity/streams
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_accuracy
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_actor
|
||||||
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_alsoknownas
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_altitude
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_anyof
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_attachment
|
||||||
|
@ -552,6 +553,7 @@ github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_l
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_longitude
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_manuallyapprovesfollowers
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_mediatype
|
||||||
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_movedto
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_name
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_next
|
||||||
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object
|
github.com/superseriousbusiness/activity/streams/impl/activitystreams/property_object
|
||||||
|
|
Loading…
Reference in a new issue