Make hashtag as a AS stream

このコミットが含まれているのは:
Gabe Kangas 2021-09-08 15:53:27 -07:00
コミット e46ee45ec0
96個のファイルの変更1115行の追加1764行の削除

ファイルの表示

@ -84,8 +84,8 @@
],
"subClassOf": {
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Object",
"name": "as:Object"
"url": "https://www.w3.org/ns/activitystreams#Link",
"name": "as:Link"
},
"disjointWith": [],
"name": "Hashtag",

ファイルの表示

@ -13,6 +13,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsCurrentProperty struct {
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
unknown interface{}
@ -63,6 +64,12 @@ func DeserializeCurrentProperty(m map[string]interface{}, aliasMap map[string]st
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsCurrentProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsCurrentProperty{
activitystreamsMentionMember: v,
@ -96,6 +103,7 @@ func NewActivityStreamsCurrentProperty() *ActivityStreamsCurrentProperty {
func (this *ActivityStreamsCurrentProperty) Clear() {
this.activitystreamsCollectionPageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
this.unknown = nil
@ -136,6 +144,12 @@ func (this ActivityStreamsCurrentProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsCurrentProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsCurrentProperty) GetType() vocab.Type {
@ -145,6 +159,9 @@ func (this ActivityStreamsCurrentProperty) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -159,6 +176,7 @@ func (this ActivityStreamsCurrentProperty) GetType() vocab.Type {
func (this ActivityStreamsCurrentProperty) HasAny() bool {
return this.IsActivityStreamsCollectionPage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollectionPage() ||
this.iri != nil
@ -200,6 +218,13 @@ func (this ActivityStreamsCurrentProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsCurrentProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -210,6 +235,8 @@ func (this ActivityStreamsCurrentProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -236,12 +263,15 @@ func (this ActivityStreamsCurrentProperty) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsMention() {
return 3
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 4
}
if this.IsIRI() {
return -2
}
@ -263,6 +293,8 @@ func (this ActivityStreamsCurrentProperty) LessThan(o vocab.ActivityStreamsCurre
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -291,6 +323,8 @@ func (this ActivityStreamsCurrentProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -335,6 +369,13 @@ func (this *ActivityStreamsCurrentProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsCurrentProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsCurrentProperty) SetType(t vocab.Type) error {
@ -346,6 +387,10 @@ func (this *ActivityStreamsCurrentProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -88,9 +88,6 @@ type privateManager interface {
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)

ファイルの表示

@ -35,7 +35,6 @@ type ActivityStreamsDescribesProperty struct {
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
activitystreamsGroupMember vocab.ActivityStreamsGroup
tootHashtagMember vocab.TootHashtag
tootIdentityProofMember vocab.TootIdentityProof
activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
activitystreamsImageMember vocab.ActivityStreamsImage
@ -228,12 +227,6 @@ func DeserializeDescribesProperty(m map[string]interface{}, aliasMap map[string]
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsDescribesProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
this := &ActivityStreamsDescribesProperty{
alias: alias,
@ -472,7 +465,6 @@ func (this *ActivityStreamsDescribesProperty) Clear() {
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
this.activitystreamsGroupMember = nil
this.tootHashtagMember = nil
this.tootIdentityProofMember = nil
this.activitystreamsIgnoreMember = nil
this.activitystreamsImageMember = nil
@ -886,12 +878,6 @@ func (this ActivityStreamsDescribesProperty) GetTootEmoji() vocab.TootEmoji {
return this.tootEmojiMember
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsDescribesProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return an
// arbitrary value.
@ -965,9 +951,6 @@ func (this ActivityStreamsDescribesProperty) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
@ -1094,7 +1077,6 @@ func (this ActivityStreamsDescribesProperty) HasAny() bool {
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootHashtag() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
@ -1512,13 +1494,6 @@ func (this ActivityStreamsDescribesProperty) IsTootEmoji() bool {
return this.tootEmojiMember != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsDescribesProperty) IsTootHashtag() bool {
return this.tootHashtagMember != nil
}
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -1574,8 +1549,6 @@ func (this ActivityStreamsDescribesProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsFollow().JSONLDContext()
} else if this.IsActivityStreamsGroup() {
child = this.GetActivityStreamsGroup().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsTootIdentityProof() {
child = this.GetTootIdentityProof().JSONLDContext()
} else if this.IsActivityStreamsIgnore() {
@ -1721,107 +1694,104 @@ func (this ActivityStreamsDescribesProperty) KindIndex() int {
if this.IsActivityStreamsGroup() {
return 20
}
if this.IsTootHashtag() {
if this.IsTootIdentityProof() {
return 21
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsIgnore() {
return 22
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsImage() {
return 23
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIntransitiveActivity() {
return 24
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsInvite() {
return 25
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsJoin() {
return 26
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsLeave() {
return 27
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsLike() {
return 28
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsListen() {
return 29
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsMove() {
return 30
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsNote() {
return 31
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsOffer() {
return 32
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsOrderedCollection() {
return 33
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 34
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrganization() {
return 35
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsPage() {
return 36
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsPerson() {
return 37
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPlace() {
return 38
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsProfile() {
return 39
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsQuestion() {
return 40
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsRead() {
return 41
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsReject() {
return 42
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRelationship() {
return 43
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRemove() {
return 44
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsService() {
return 45
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsTentativeAccept() {
return 46
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsTentativeReject() {
return 47
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTombstone() {
return 48
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTravel() {
return 49
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsUndo() {
return 50
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsUpdate() {
return 51
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsVideo() {
return 52
}
if this.IsActivityStreamsVideo() {
return 53
}
if this.IsActivityStreamsView() {
return 54
return 53
}
if this.IsIRI() {
return -2
@ -1882,8 +1852,6 @@ func (this ActivityStreamsDescribesProperty) LessThan(o vocab.ActivityStreamsDes
return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
} else if this.IsActivityStreamsIgnore() {
@ -2012,8 +1980,6 @@ func (this ActivityStreamsDescribesProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsFollow().Serialize()
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().Serialize()
} else if this.IsActivityStreamsIgnore() {
@ -2463,13 +2429,6 @@ func (this *ActivityStreamsDescribesProperty) SetTootEmoji(v vocab.TootEmoji) {
this.tootEmojiMember = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsDescribesProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
func (this *ActivityStreamsDescribesProperty) SetTootIdentityProof(v vocab.TootIdentityProof) {
@ -2564,10 +2523,6 @@ func (this *ActivityStreamsDescribesProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsGroup(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.TootIdentityProof); ok {
this.SetTootIdentityProof(v)
return nil

ファイルの表示

@ -13,6 +13,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsFirstProperty struct {
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
unknown interface{}
@ -63,6 +64,12 @@ func DeserializeFirstProperty(m map[string]interface{}, aliasMap map[string]stri
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsFirstProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsFirstProperty{
activitystreamsMentionMember: v,
@ -96,6 +103,7 @@ func NewActivityStreamsFirstProperty() *ActivityStreamsFirstProperty {
func (this *ActivityStreamsFirstProperty) Clear() {
this.activitystreamsCollectionPageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
this.unknown = nil
@ -136,6 +144,12 @@ func (this ActivityStreamsFirstProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsFirstProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsFirstProperty) GetType() vocab.Type {
@ -145,6 +159,9 @@ func (this ActivityStreamsFirstProperty) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -159,6 +176,7 @@ func (this ActivityStreamsFirstProperty) GetType() vocab.Type {
func (this ActivityStreamsFirstProperty) HasAny() bool {
return this.IsActivityStreamsCollectionPage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollectionPage() ||
this.iri != nil
@ -200,6 +218,13 @@ func (this ActivityStreamsFirstProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsFirstProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -210,6 +235,8 @@ func (this ActivityStreamsFirstProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -236,12 +263,15 @@ func (this ActivityStreamsFirstProperty) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsMention() {
return 3
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 4
}
if this.IsIRI() {
return -2
}
@ -263,6 +293,8 @@ func (this ActivityStreamsFirstProperty) LessThan(o vocab.ActivityStreamsFirstPr
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -291,6 +323,8 @@ func (this ActivityStreamsFirstProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -335,6 +369,13 @@ func (this *ActivityStreamsFirstProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsFirstProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsFirstProperty) SetType(t vocab.Type) error {
@ -346,6 +387,10 @@ func (this *ActivityStreamsFirstProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -88,9 +88,6 @@ type privateManager interface {
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)

ファイルの表示

@ -38,7 +38,6 @@ type ActivityStreamsFormerTypePropertyIterator struct {
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
activitystreamsGroupMember vocab.ActivityStreamsGroup
tootHashtagMember vocab.TootHashtag
tootIdentityProofMember vocab.TootIdentityProof
activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
activitystreamsImageMember vocab.ActivityStreamsImage
@ -231,12 +230,6 @@ func deserializeActivityStreamsFormerTypePropertyIterator(i interface{}, aliasMa
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsFormerTypePropertyIterator{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
this := &ActivityStreamsFormerTypePropertyIterator{
alias: alias,
@ -828,12 +821,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetTootEmoji() vocab.TootE
return this.tootEmojiMember
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsFormerTypePropertyIterator) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return an
// arbitrary value.
@ -907,9 +894,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
@ -1043,7 +1027,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) HasAny() bool {
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootHashtag() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
@ -1461,13 +1444,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) IsTootEmoji() bool {
return this.tootEmojiMember != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsFormerTypePropertyIterator) IsTootHashtag() bool {
return this.tootHashtagMember != nil
}
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -1530,8 +1506,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) JSONLDContext() map[string
child = this.GetActivityStreamsFollow().JSONLDContext()
} else if this.IsActivityStreamsGroup() {
child = this.GetActivityStreamsGroup().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsTootIdentityProof() {
child = this.GetTootIdentityProof().JSONLDContext()
} else if this.IsActivityStreamsIgnore() {
@ -1680,107 +1654,104 @@ func (this ActivityStreamsFormerTypePropertyIterator) KindIndex() int {
if this.IsActivityStreamsGroup() {
return 21
}
if this.IsTootHashtag() {
if this.IsTootIdentityProof() {
return 22
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsIgnore() {
return 23
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsImage() {
return 24
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIntransitiveActivity() {
return 25
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsInvite() {
return 26
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsJoin() {
return 27
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsLeave() {
return 28
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsLike() {
return 29
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsListen() {
return 30
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsMove() {
return 31
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsNote() {
return 32
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsOffer() {
return 33
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsOrderedCollection() {
return 34
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 35
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrganization() {
return 36
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsPage() {
return 37
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsPerson() {
return 38
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPlace() {
return 39
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsProfile() {
return 40
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsQuestion() {
return 41
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsRead() {
return 42
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsReject() {
return 43
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRelationship() {
return 44
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRemove() {
return 45
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsService() {
return 46
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsTentativeAccept() {
return 47
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsTentativeReject() {
return 48
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTombstone() {
return 49
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTravel() {
return 50
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsUndo() {
return 51
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsUpdate() {
return 52
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsVideo() {
return 53
}
if this.IsActivityStreamsVideo() {
return 54
}
if this.IsActivityStreamsView() {
return 55
return 54
}
if this.IsIRI() {
return -2
@ -1843,8 +1814,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) LessThan(o vocab.ActivityS
return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
} else if this.IsActivityStreamsIgnore() {
@ -2321,13 +2290,6 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetTootEmoji(v vocab.Toot
this.tootEmojiMember = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsFormerTypePropertyIterator) SetTootHashtag(v vocab.TootHashtag) {
this.clear()
this.tootHashtagMember = v
}
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
func (this *ActivityStreamsFormerTypePropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
@ -2422,10 +2384,6 @@ func (this *ActivityStreamsFormerTypePropertyIterator) SetType(t vocab.Type) err
this.SetActivityStreamsGroup(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.TootIdentityProof); ok {
this.SetTootIdentityProof(v)
return nil
@ -2595,7 +2553,6 @@ func (this *ActivityStreamsFormerTypePropertyIterator) clear() {
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
this.activitystreamsGroupMember = nil
this.tootHashtagMember = nil
this.tootIdentityProofMember = nil
this.activitystreamsIgnoreMember = nil
this.activitystreamsImageMember = nil
@ -2682,8 +2639,6 @@ func (this ActivityStreamsFormerTypePropertyIterator) serialize() (interface{},
return this.GetActivityStreamsFollow().Serialize()
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().Serialize()
} else if this.IsActivityStreamsIgnore() {
@ -3424,17 +3379,6 @@ func (this *ActivityStreamsFormerTypeProperty) AppendTootEmoji(v vocab.TootEmoji
})
}
// AppendTootHashtag appends a Hashtag value to the back of a list of the property
// "formerType". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsFormerTypeProperty) AppendTootHashtag(v vocab.TootHashtag) {
this.properties = append(this.properties, &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
tootHashtagMember: v,
})
}
// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
// the property "formerType". Invalidates iterators that are traversing using
// Prev.
@ -4423,23 +4367,6 @@ func (this *ActivityStreamsFormerTypeProperty) InsertTootEmoji(idx int, v vocab.
}
}
// InsertTootHashtag inserts a Hashtag value at the specified index for a property
// "formerType". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) InsertTootHashtag(idx int, v vocab.TootHashtag) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertTootIdentityProof inserts a IdentityProof value at the specified index
// for a property "formerType". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
@ -4625,138 +4552,134 @@ func (this ActivityStreamsFormerTypeProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 55 {
} else if idx1 == 54 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5557,20 +5480,6 @@ func (this *ActivityStreamsFormerTypeProperty) PrependTootEmoji(v vocab.TootEmoj
}
}
// PrependTootHashtag prepends a Hashtag value to the front of a list of the
// property "formerType". Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) PrependTootHashtag(v vocab.TootHashtag) {
this.properties = append([]*ActivityStreamsFormerTypePropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
tootHashtagMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
// of the property "formerType". Invalidates all iterators.
func (this *ActivityStreamsFormerTypeProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
@ -6353,19 +6262,6 @@ func (this *ActivityStreamsFormerTypeProperty) SetTootEmoji(idx int, v vocab.Too
}
}
// SetTootHashtag sets a Hashtag value to be at the specified index for the
// property "formerType". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsFormerTypeProperty) SetTootHashtag(idx int, v vocab.TootHashtag) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsFormerTypePropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
}
// SetTootIdentityProof sets a IdentityProof value to be at the specified index
// for the property "formerType". Panics if the index is out of bounds.
// Invalidates all iterators.

ファイルの表示

@ -9,6 +9,9 @@ var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsIconPropertyIterator struct {
activitystreamsImageMember vocab.ActivityStreamsImage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
unknown interface{}
iri *url.URL
@ -62,6 +63,12 @@ func deserializeActivityStreamsIconPropertyIterator(i interface{}, aliasMap map[
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsIconPropertyIterator{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsIconPropertyIterator{
activitystreamsMentionMember: v,
@ -104,6 +111,12 @@ func (this ActivityStreamsIconPropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsIconPropertyIterator) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsIconPropertyIterator) GetType() vocab.Type {
@ -113,6 +126,9 @@ func (this ActivityStreamsIconPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -124,6 +140,7 @@ func (this ActivityStreamsIconPropertyIterator) GetType() vocab.Type {
func (this ActivityStreamsIconPropertyIterator) HasAny() bool {
return this.IsActivityStreamsImage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.iri != nil
}
@ -155,6 +172,13 @@ func (this ActivityStreamsIconPropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsIconPropertyIterator) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -165,6 +189,8 @@ func (this ActivityStreamsIconPropertyIterator) JSONLDContext() map[string]strin
child = this.GetActivityStreamsImage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
}
@ -189,9 +215,12 @@ func (this ActivityStreamsIconPropertyIterator) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsMention() {
return 3
}
if this.IsIRI() {
return -2
}
@ -213,6 +242,8 @@ func (this ActivityStreamsIconPropertyIterator) LessThan(o vocab.ActivityStreams
return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsIRI() {
@ -275,6 +306,13 @@ func (this *ActivityStreamsIconPropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsIconPropertyIterator) SetTootHashtag(v vocab.TootHashtag) {
this.clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsIconPropertyIterator) SetType(t vocab.Type) error {
@ -286,6 +324,10 @@ func (this *ActivityStreamsIconPropertyIterator) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil
@ -299,6 +341,7 @@ func (this *ActivityStreamsIconPropertyIterator) SetType(t vocab.Type) error {
func (this *ActivityStreamsIconPropertyIterator) clear() {
this.activitystreamsImageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.unknown = nil
this.iri = nil
@ -313,6 +356,8 @@ func (this ActivityStreamsIconPropertyIterator) serialize() (interface{}, error)
return this.GetActivityStreamsImage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsIRI() {
@ -419,6 +464,17 @@ func (this *ActivityStreamsIconProperty) AppendIRI(v *url.URL) {
})
}
// AppendTootHashtag appends a Hashtag value to the back of a list of the property
// "icon". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsIconProperty) AppendTootHashtag(v vocab.TootHashtag) {
this.properties = append(this.properties, &ActivityStreamsIconPropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
tootHashtagMember: v,
})
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "icon". Invalidates iterators that are traversing using Prev.
// Returns an error if the type is not a valid one to set for this property.
@ -532,6 +588,23 @@ func (this *ActivityStreamsIconProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertTootHashtag inserts a Hashtag value at the specified index for a property
// "icon". Existing elements at that index and higher are shifted back once.
// Invalidates all iterators.
func (this *ActivityStreamsIconProperty) InsertTootHashtag(idx int, v vocab.TootHashtag) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsIconPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "icon". Invalidates all iterators. Returns an error if the type is
// not a valid one to set for this property.
@ -602,6 +675,10 @@ func (this ActivityStreamsIconProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsLink()
return lhs.LessThan(rhs)
} else if idx1 == 2 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 3 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
@ -699,6 +776,20 @@ func (this *ActivityStreamsIconProperty) PrependIRI(v *url.URL) {
}
}
// PrependTootHashtag prepends a Hashtag value to the front of a list of the
// property "icon". Invalidates all iterators.
func (this *ActivityStreamsIconProperty) PrependTootHashtag(v vocab.TootHashtag) {
this.properties = append([]*ActivityStreamsIconPropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
tootHashtagMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "icon". Invalidates all iterators. Returns an error if the type is
// not a valid one to set for this property.
@ -802,6 +893,19 @@ func (this *ActivityStreamsIconProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetTootHashtag sets a Hashtag value to be at the specified index for the
// property "icon". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsIconProperty) SetTootHashtag(idx int, v vocab.TootHashtag) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsIconPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
}
// SetType sets an arbitrary type value to the specified index of the property
// "icon". Invalidates all iterators. Returns an error if the type is not a
// valid one to set for this property. Panics if the index is out of bounds.

ファイルの表示

@ -9,6 +9,9 @@ var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeImageActivityStreams returns the deserialization method for
// the "ActivityStreamsImage" non-functional property in the
// vocabulary "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsImagePropertyIterator struct {
activitystreamsImageMember vocab.ActivityStreamsImage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
unknown interface{}
iri *url.URL
@ -62,6 +63,12 @@ func deserializeActivityStreamsImagePropertyIterator(i interface{}, aliasMap map
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsImagePropertyIterator{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsImagePropertyIterator{
activitystreamsMentionMember: v,
@ -104,6 +111,12 @@ func (this ActivityStreamsImagePropertyIterator) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsImagePropertyIterator) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsImagePropertyIterator) GetType() vocab.Type {
@ -113,6 +126,9 @@ func (this ActivityStreamsImagePropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -124,6 +140,7 @@ func (this ActivityStreamsImagePropertyIterator) GetType() vocab.Type {
func (this ActivityStreamsImagePropertyIterator) HasAny() bool {
return this.IsActivityStreamsImage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.iri != nil
}
@ -155,6 +172,13 @@ func (this ActivityStreamsImagePropertyIterator) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsImagePropertyIterator) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -165,6 +189,8 @@ func (this ActivityStreamsImagePropertyIterator) JSONLDContext() map[string]stri
child = this.GetActivityStreamsImage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
}
@ -189,9 +215,12 @@ func (this ActivityStreamsImagePropertyIterator) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsMention() {
return 3
}
if this.IsIRI() {
return -2
}
@ -213,6 +242,8 @@ func (this ActivityStreamsImagePropertyIterator) LessThan(o vocab.ActivityStream
return this.GetActivityStreamsImage().LessThan(o.GetActivityStreamsImage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsIRI() {
@ -275,6 +306,13 @@ func (this *ActivityStreamsImagePropertyIterator) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsImagePropertyIterator) SetTootHashtag(v vocab.TootHashtag) {
this.clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsImagePropertyIterator) SetType(t vocab.Type) error {
@ -286,6 +324,10 @@ func (this *ActivityStreamsImagePropertyIterator) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil
@ -299,6 +341,7 @@ func (this *ActivityStreamsImagePropertyIterator) SetType(t vocab.Type) error {
func (this *ActivityStreamsImagePropertyIterator) clear() {
this.activitystreamsImageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.unknown = nil
this.iri = nil
@ -313,6 +356,8 @@ func (this ActivityStreamsImagePropertyIterator) serialize() (interface{}, error
return this.GetActivityStreamsImage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsIRI() {
@ -419,6 +464,17 @@ func (this *ActivityStreamsImageProperty) AppendIRI(v *url.URL) {
})
}
// AppendTootHashtag appends a Hashtag value to the back of a list of the property
// "image". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsImageProperty) AppendTootHashtag(v vocab.TootHashtag) {
this.properties = append(this.properties, &ActivityStreamsImagePropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
tootHashtagMember: v,
})
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "image". Invalidates iterators that are traversing using Prev.
// Returns an error if the type is not a valid one to set for this property.
@ -532,6 +588,23 @@ func (this *ActivityStreamsImageProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertTootHashtag inserts a Hashtag value at the specified index for a property
// "image". Existing elements at that index and higher are shifted back once.
// Invalidates all iterators.
func (this *ActivityStreamsImageProperty) InsertTootHashtag(idx int, v vocab.TootHashtag) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsImagePropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "image". Invalidates all iterators. Returns an error if the type
// is not a valid one to set for this property.
@ -602,6 +675,10 @@ func (this ActivityStreamsImageProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsLink()
return lhs.LessThan(rhs)
} else if idx1 == 2 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 3 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
@ -699,6 +776,20 @@ func (this *ActivityStreamsImageProperty) PrependIRI(v *url.URL) {
}
}
// PrependTootHashtag prepends a Hashtag value to the front of a list of the
// property "image". Invalidates all iterators.
func (this *ActivityStreamsImageProperty) PrependTootHashtag(v vocab.TootHashtag) {
this.properties = append([]*ActivityStreamsImagePropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
tootHashtagMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "image". Invalidates all iterators. Returns an error if the type
// is not a valid one to set for this property.
@ -802,6 +893,19 @@ func (this *ActivityStreamsImageProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetTootHashtag sets a Hashtag value to be at the specified index for the
// property "image". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsImageProperty) SetTootHashtag(idx int, v vocab.TootHashtag) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsImagePropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
}
// SetType sets an arbitrary type value to the specified index of the property
// "image". Invalidates all iterators. Returns an error if the type is not a
// valid one to set for this property. Panics if the index is out of bounds.

ファイルの表示

@ -13,6 +13,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsLastProperty struct {
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
unknown interface{}
@ -63,6 +64,12 @@ func DeserializeLastProperty(m map[string]interface{}, aliasMap map[string]strin
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsLastProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsLastProperty{
activitystreamsMentionMember: v,
@ -96,6 +103,7 @@ func NewActivityStreamsLastProperty() *ActivityStreamsLastProperty {
func (this *ActivityStreamsLastProperty) Clear() {
this.activitystreamsCollectionPageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
this.unknown = nil
@ -136,6 +144,12 @@ func (this ActivityStreamsLastProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsLastProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsLastProperty) GetType() vocab.Type {
@ -145,6 +159,9 @@ func (this ActivityStreamsLastProperty) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -159,6 +176,7 @@ func (this ActivityStreamsLastProperty) GetType() vocab.Type {
func (this ActivityStreamsLastProperty) HasAny() bool {
return this.IsActivityStreamsCollectionPage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollectionPage() ||
this.iri != nil
@ -200,6 +218,13 @@ func (this ActivityStreamsLastProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsLastProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -210,6 +235,8 @@ func (this ActivityStreamsLastProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -236,12 +263,15 @@ func (this ActivityStreamsLastProperty) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsMention() {
return 3
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 4
}
if this.IsIRI() {
return -2
}
@ -263,6 +293,8 @@ func (this ActivityStreamsLastProperty) LessThan(o vocab.ActivityStreamsLastProp
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -291,6 +323,8 @@ func (this ActivityStreamsLastProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -335,6 +369,13 @@ func (this *ActivityStreamsLastProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsLastProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsLastProperty) SetType(t vocab.Type) error {
@ -346,6 +387,10 @@ func (this *ActivityStreamsLastProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -13,6 +13,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsNextProperty struct {
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
unknown interface{}
@ -63,6 +64,12 @@ func DeserializeNextProperty(m map[string]interface{}, aliasMap map[string]strin
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsNextProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsNextProperty{
activitystreamsMentionMember: v,
@ -96,6 +103,7 @@ func NewActivityStreamsNextProperty() *ActivityStreamsNextProperty {
func (this *ActivityStreamsNextProperty) Clear() {
this.activitystreamsCollectionPageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
this.unknown = nil
@ -136,6 +144,12 @@ func (this ActivityStreamsNextProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsNextProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsNextProperty) GetType() vocab.Type {
@ -145,6 +159,9 @@ func (this ActivityStreamsNextProperty) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -159,6 +176,7 @@ func (this ActivityStreamsNextProperty) GetType() vocab.Type {
func (this ActivityStreamsNextProperty) HasAny() bool {
return this.IsActivityStreamsCollectionPage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollectionPage() ||
this.iri != nil
@ -200,6 +218,13 @@ func (this ActivityStreamsNextProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsNextProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -210,6 +235,8 @@ func (this ActivityStreamsNextProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -236,12 +263,15 @@ func (this ActivityStreamsNextProperty) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsMention() {
return 3
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 4
}
if this.IsIRI() {
return -2
}
@ -263,6 +293,8 @@ func (this ActivityStreamsNextProperty) LessThan(o vocab.ActivityStreamsNextProp
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -291,6 +323,8 @@ func (this ActivityStreamsNextProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -335,6 +369,13 @@ func (this *ActivityStreamsNextProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsNextProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsNextProperty) SetType(t vocab.Type) error {
@ -346,6 +387,10 @@ func (this *ActivityStreamsNextProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -17,6 +17,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -17,6 +17,7 @@ type ActivityStreamsPartOfProperty struct {
activitystreamsLinkMember vocab.ActivityStreamsLink
activitystreamsCollectionMember vocab.ActivityStreamsCollection
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionMember vocab.ActivityStreamsOrderedCollection
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
@ -71,6 +72,12 @@ func DeserializePartOfProperty(m map[string]interface{}, aliasMap map[string]str
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsPartOfProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsPartOfProperty{
activitystreamsMentionMember: v,
@ -111,6 +118,7 @@ func (this *ActivityStreamsPartOfProperty) Clear() {
this.activitystreamsLinkMember = nil
this.activitystreamsCollectionMember = nil
this.activitystreamsCollectionPageMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
@ -166,6 +174,12 @@ func (this ActivityStreamsPartOfProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsPartOfProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsPartOfProperty) GetType() vocab.Type {
@ -178,6 +192,9 @@ func (this ActivityStreamsPartOfProperty) GetType() vocab.Type {
if this.IsActivityStreamsCollectionPage() {
return this.GetActivityStreamsCollectionPage()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -196,6 +213,7 @@ func (this ActivityStreamsPartOfProperty) HasAny() bool {
return this.IsActivityStreamsLink() ||
this.IsActivityStreamsCollection() ||
this.IsActivityStreamsCollectionPage() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollection() ||
this.IsActivityStreamsOrderedCollectionPage() ||
@ -253,6 +271,13 @@ func (this ActivityStreamsPartOfProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsPartOfProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -265,6 +290,8 @@ func (this ActivityStreamsPartOfProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollection().JSONLDContext()
} else if this.IsActivityStreamsCollectionPage() {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollection() {
@ -296,15 +323,18 @@ func (this ActivityStreamsPartOfProperty) KindIndex() int {
if this.IsActivityStreamsCollectionPage() {
return 2
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 3
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsMention() {
return 4
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrderedCollection() {
return 5
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 6
}
if this.IsIRI() {
return -2
}
@ -328,6 +358,8 @@ func (this ActivityStreamsPartOfProperty) LessThan(o vocab.ActivityStreamsPartOf
return this.GetActivityStreamsCollection().LessThan(o.GetActivityStreamsCollection())
} else if this.IsActivityStreamsCollectionPage() {
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollection() {
@ -360,6 +392,8 @@ func (this ActivityStreamsPartOfProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollection().Serialize()
} else if this.IsActivityStreamsCollectionPage() {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollection() {
@ -420,6 +454,13 @@ func (this *ActivityStreamsPartOfProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsPartOfProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsPartOfProperty) SetType(t vocab.Type) error {
@ -435,6 +476,10 @@ func (this *ActivityStreamsPartOfProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsCollectionPage(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -13,6 +13,9 @@ type privateManager interface {
// method for the "ActivityStreamsCollectionPage" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCollectionPage, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -16,6 +16,7 @@ import (
type ActivityStreamsPrevProperty struct {
activitystreamsCollectionPageMember vocab.ActivityStreamsCollectionPage
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
activitystreamsOrderedCollectionPageMember vocab.ActivityStreamsOrderedCollectionPage
unknown interface{}
@ -63,6 +64,12 @@ func DeserializePrevProperty(m map[string]interface{}, aliasMap map[string]strin
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsPrevProperty{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsPrevProperty{
activitystreamsMentionMember: v,
@ -96,6 +103,7 @@ func NewActivityStreamsPrevProperty() *ActivityStreamsPrevProperty {
func (this *ActivityStreamsPrevProperty) Clear() {
this.activitystreamsCollectionPageMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.activitystreamsOrderedCollectionPageMember = nil
this.unknown = nil
@ -136,6 +144,12 @@ func (this ActivityStreamsPrevProperty) GetIRI() *url.URL {
return this.iri
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsPrevProperty) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsPrevProperty) GetType() vocab.Type {
@ -145,6 +159,9 @@ func (this ActivityStreamsPrevProperty) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -159,6 +176,7 @@ func (this ActivityStreamsPrevProperty) GetType() vocab.Type {
func (this ActivityStreamsPrevProperty) HasAny() bool {
return this.IsActivityStreamsCollectionPage() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention() ||
this.IsActivityStreamsOrderedCollectionPage() ||
this.iri != nil
@ -200,6 +218,13 @@ func (this ActivityStreamsPrevProperty) IsIRI() bool {
return this.iri != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsPrevProperty) IsTootHashtag() bool {
return this.tootHashtagMember != 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.
@ -210,6 +235,8 @@ func (this ActivityStreamsPrevProperty) JSONLDContext() map[string]string {
child = this.GetActivityStreamsCollectionPage().JSONLDContext()
} else if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -236,12 +263,15 @@ func (this ActivityStreamsPrevProperty) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsMention() {
return 3
}
if this.IsActivityStreamsOrderedCollectionPage() {
return 4
}
if this.IsIRI() {
return -2
}
@ -263,6 +293,8 @@ func (this ActivityStreamsPrevProperty) LessThan(o vocab.ActivityStreamsPrevProp
return this.GetActivityStreamsCollectionPage().LessThan(o.GetActivityStreamsCollectionPage())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -291,6 +323,8 @@ func (this ActivityStreamsPrevProperty) Serialize() (interface{}, error) {
return this.GetActivityStreamsCollectionPage().Serialize()
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
} else if this.IsActivityStreamsOrderedCollectionPage() {
@ -335,6 +369,13 @@ func (this *ActivityStreamsPrevProperty) SetIRI(v *url.URL) {
this.iri = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsPrevProperty) SetTootHashtag(v vocab.TootHashtag) {
this.Clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsPrevProperty) SetType(t vocab.Type) error {
@ -346,6 +387,10 @@ func (this *ActivityStreamsPrevProperty) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil

ファイルの表示

@ -88,9 +88,6 @@ type privateManager interface {
// the "ActivityStreamsGroup" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGroup, error)
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeIdentityProofToot returns the deserialization method for the
// "TootIdentityProof" non-functional property in the vocabulary "Toot"
DeserializeIdentityProofToot() func(map[string]interface{}, map[string]string) (vocab.TootIdentityProof, error)

ファイルの表示

@ -35,7 +35,6 @@ type ActivityStreamsRelationshipPropertyIterator struct {
activitystreamsFlagMember vocab.ActivityStreamsFlag
activitystreamsFollowMember vocab.ActivityStreamsFollow
activitystreamsGroupMember vocab.ActivityStreamsGroup
tootHashtagMember vocab.TootHashtag
tootIdentityProofMember vocab.TootIdentityProof
activitystreamsIgnoreMember vocab.ActivityStreamsIgnore
activitystreamsImageMember vocab.ActivityStreamsImage
@ -228,12 +227,6 @@ func deserializeActivityStreamsRelationshipPropertyIterator(i interface{}, alias
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsRelationshipPropertyIterator{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeIdentityProofToot()(m, aliasMap); err == nil {
this := &ActivityStreamsRelationshipPropertyIterator{
alias: alias,
@ -817,12 +810,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetTootEmoji() vocab.Too
return this.tootEmojiMember
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsRelationshipPropertyIterator) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return an
// arbitrary value.
@ -896,9 +883,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsTootIdentityProof() {
return this.GetTootIdentityProof()
}
@ -1025,7 +1009,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) HasAny() bool {
this.IsActivityStreamsFlag() ||
this.IsActivityStreamsFollow() ||
this.IsActivityStreamsGroup() ||
this.IsTootHashtag() ||
this.IsTootIdentityProof() ||
this.IsActivityStreamsIgnore() ||
this.IsActivityStreamsImage() ||
@ -1443,13 +1426,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) IsTootEmoji() bool {
return this.tootEmojiMember != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsRelationshipPropertyIterator) IsTootHashtag() bool {
return this.tootHashtagMember != nil
}
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -1505,8 +1481,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) JSONLDContext() map[stri
child = this.GetActivityStreamsFollow().JSONLDContext()
} else if this.IsActivityStreamsGroup() {
child = this.GetActivityStreamsGroup().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsTootIdentityProof() {
child = this.GetTootIdentityProof().JSONLDContext()
} else if this.IsActivityStreamsIgnore() {
@ -1652,107 +1626,104 @@ func (this ActivityStreamsRelationshipPropertyIterator) KindIndex() int {
if this.IsActivityStreamsGroup() {
return 20
}
if this.IsTootHashtag() {
if this.IsTootIdentityProof() {
return 21
}
if this.IsTootIdentityProof() {
if this.IsActivityStreamsIgnore() {
return 22
}
if this.IsActivityStreamsIgnore() {
if this.IsActivityStreamsImage() {
return 23
}
if this.IsActivityStreamsImage() {
if this.IsActivityStreamsIntransitiveActivity() {
return 24
}
if this.IsActivityStreamsIntransitiveActivity() {
if this.IsActivityStreamsInvite() {
return 25
}
if this.IsActivityStreamsInvite() {
if this.IsActivityStreamsJoin() {
return 26
}
if this.IsActivityStreamsJoin() {
if this.IsActivityStreamsLeave() {
return 27
}
if this.IsActivityStreamsLeave() {
if this.IsActivityStreamsLike() {
return 28
}
if this.IsActivityStreamsLike() {
if this.IsActivityStreamsListen() {
return 29
}
if this.IsActivityStreamsListen() {
if this.IsActivityStreamsMove() {
return 30
}
if this.IsActivityStreamsMove() {
if this.IsActivityStreamsNote() {
return 31
}
if this.IsActivityStreamsNote() {
if this.IsActivityStreamsOffer() {
return 32
}
if this.IsActivityStreamsOffer() {
if this.IsActivityStreamsOrderedCollection() {
return 33
}
if this.IsActivityStreamsOrderedCollection() {
if this.IsActivityStreamsOrderedCollectionPage() {
return 34
}
if this.IsActivityStreamsOrderedCollectionPage() {
if this.IsActivityStreamsOrganization() {
return 35
}
if this.IsActivityStreamsOrganization() {
if this.IsActivityStreamsPage() {
return 36
}
if this.IsActivityStreamsPage() {
if this.IsActivityStreamsPerson() {
return 37
}
if this.IsActivityStreamsPerson() {
if this.IsActivityStreamsPlace() {
return 38
}
if this.IsActivityStreamsPlace() {
if this.IsActivityStreamsProfile() {
return 39
}
if this.IsActivityStreamsProfile() {
if this.IsActivityStreamsQuestion() {
return 40
}
if this.IsActivityStreamsQuestion() {
if this.IsActivityStreamsRead() {
return 41
}
if this.IsActivityStreamsRead() {
if this.IsActivityStreamsReject() {
return 42
}
if this.IsActivityStreamsReject() {
if this.IsActivityStreamsRelationship() {
return 43
}
if this.IsActivityStreamsRelationship() {
if this.IsActivityStreamsRemove() {
return 44
}
if this.IsActivityStreamsRemove() {
if this.IsActivityStreamsService() {
return 45
}
if this.IsActivityStreamsService() {
if this.IsActivityStreamsTentativeAccept() {
return 46
}
if this.IsActivityStreamsTentativeAccept() {
if this.IsActivityStreamsTentativeReject() {
return 47
}
if this.IsActivityStreamsTentativeReject() {
if this.IsActivityStreamsTombstone() {
return 48
}
if this.IsActivityStreamsTombstone() {
if this.IsActivityStreamsTravel() {
return 49
}
if this.IsActivityStreamsTravel() {
if this.IsActivityStreamsUndo() {
return 50
}
if this.IsActivityStreamsUndo() {
if this.IsActivityStreamsUpdate() {
return 51
}
if this.IsActivityStreamsUpdate() {
if this.IsActivityStreamsVideo() {
return 52
}
if this.IsActivityStreamsVideo() {
return 53
}
if this.IsActivityStreamsView() {
return 54
return 53
}
if this.IsIRI() {
return -2
@ -1813,8 +1784,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) LessThan(o vocab.Activit
return this.GetActivityStreamsFollow().LessThan(o.GetActivityStreamsFollow())
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().LessThan(o.GetActivityStreamsGroup())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().LessThan(o.GetTootIdentityProof())
} else if this.IsActivityStreamsIgnore() {
@ -2291,13 +2260,6 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetTootEmoji(v vocab.To
this.tootEmojiMember = v
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsRelationshipPropertyIterator) SetTootHashtag(v vocab.TootHashtag) {
this.clear()
this.tootHashtagMember = v
}
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
func (this *ActivityStreamsRelationshipPropertyIterator) SetTootIdentityProof(v vocab.TootIdentityProof) {
@ -2392,10 +2354,6 @@ func (this *ActivityStreamsRelationshipPropertyIterator) SetType(t vocab.Type) e
this.SetActivityStreamsGroup(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.TootIdentityProof); ok {
this.SetTootIdentityProof(v)
return nil
@ -2556,7 +2514,6 @@ func (this *ActivityStreamsRelationshipPropertyIterator) clear() {
this.activitystreamsFlagMember = nil
this.activitystreamsFollowMember = nil
this.activitystreamsGroupMember = nil
this.tootHashtagMember = nil
this.tootIdentityProofMember = nil
this.activitystreamsIgnoreMember = nil
this.activitystreamsImageMember = nil
@ -2641,8 +2598,6 @@ func (this ActivityStreamsRelationshipPropertyIterator) serialize() (interface{}
return this.GetActivityStreamsFollow().Serialize()
} else if this.IsActivityStreamsGroup() {
return this.GetActivityStreamsGroup().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsTootIdentityProof() {
return this.GetTootIdentityProof().Serialize()
} else if this.IsActivityStreamsIgnore() {
@ -3418,17 +3373,6 @@ func (this *ActivityStreamsRelationshipProperty) AppendTootEmoji(v vocab.TootEmo
})
}
// AppendTootHashtag appends a Hashtag value to the back of a list of the property
// "relationship". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsRelationshipProperty) AppendTootHashtag(v vocab.TootHashtag) {
this.properties = append(this.properties, &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
tootHashtagMember: v,
})
}
// AppendTootIdentityProof appends a IdentityProof value to the back of a list of
// the property "relationship". Invalidates iterators that are traversing
// using Prev.
@ -4406,23 +4350,6 @@ func (this *ActivityStreamsRelationshipProperty) InsertTootEmoji(idx int, v voca
}
}
// InsertTootHashtag inserts a Hashtag value at the specified index for a property
// "relationship". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) InsertTootHashtag(idx int, v vocab.TootHashtag) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// InsertTootIdentityProof inserts a IdentityProof value at the specified index
// for a property "relationship". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
@ -4586,138 +4513,134 @@ func (this ActivityStreamsRelationshipProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsGroup()
return lhs.LessThan(rhs)
} else if idx1 == 21 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 22 {
lhs := this.properties[i].GetTootIdentityProof()
rhs := this.properties[j].GetTootIdentityProof()
return lhs.LessThan(rhs)
} else if idx1 == 23 {
} else if idx1 == 22 {
lhs := this.properties[i].GetActivityStreamsIgnore()
rhs := this.properties[j].GetActivityStreamsIgnore()
return lhs.LessThan(rhs)
} else if idx1 == 24 {
} else if idx1 == 23 {
lhs := this.properties[i].GetActivityStreamsImage()
rhs := this.properties[j].GetActivityStreamsImage()
return lhs.LessThan(rhs)
} else if idx1 == 25 {
} else if idx1 == 24 {
lhs := this.properties[i].GetActivityStreamsIntransitiveActivity()
rhs := this.properties[j].GetActivityStreamsIntransitiveActivity()
return lhs.LessThan(rhs)
} else if idx1 == 26 {
} else if idx1 == 25 {
lhs := this.properties[i].GetActivityStreamsInvite()
rhs := this.properties[j].GetActivityStreamsInvite()
return lhs.LessThan(rhs)
} else if idx1 == 27 {
} else if idx1 == 26 {
lhs := this.properties[i].GetActivityStreamsJoin()
rhs := this.properties[j].GetActivityStreamsJoin()
return lhs.LessThan(rhs)
} else if idx1 == 28 {
} else if idx1 == 27 {
lhs := this.properties[i].GetActivityStreamsLeave()
rhs := this.properties[j].GetActivityStreamsLeave()
return lhs.LessThan(rhs)
} else if idx1 == 29 {
} else if idx1 == 28 {
lhs := this.properties[i].GetActivityStreamsLike()
rhs := this.properties[j].GetActivityStreamsLike()
return lhs.LessThan(rhs)
} else if idx1 == 30 {
} else if idx1 == 29 {
lhs := this.properties[i].GetActivityStreamsListen()
rhs := this.properties[j].GetActivityStreamsListen()
return lhs.LessThan(rhs)
} else if idx1 == 31 {
} else if idx1 == 30 {
lhs := this.properties[i].GetActivityStreamsMove()
rhs := this.properties[j].GetActivityStreamsMove()
return lhs.LessThan(rhs)
} else if idx1 == 32 {
} else if idx1 == 31 {
lhs := this.properties[i].GetActivityStreamsNote()
rhs := this.properties[j].GetActivityStreamsNote()
return lhs.LessThan(rhs)
} else if idx1 == 33 {
} else if idx1 == 32 {
lhs := this.properties[i].GetActivityStreamsOffer()
rhs := this.properties[j].GetActivityStreamsOffer()
return lhs.LessThan(rhs)
} else if idx1 == 34 {
} else if idx1 == 33 {
lhs := this.properties[i].GetActivityStreamsOrderedCollection()
rhs := this.properties[j].GetActivityStreamsOrderedCollection()
return lhs.LessThan(rhs)
} else if idx1 == 35 {
} else if idx1 == 34 {
lhs := this.properties[i].GetActivityStreamsOrderedCollectionPage()
rhs := this.properties[j].GetActivityStreamsOrderedCollectionPage()
return lhs.LessThan(rhs)
} else if idx1 == 36 {
} else if idx1 == 35 {
lhs := this.properties[i].GetActivityStreamsOrganization()
rhs := this.properties[j].GetActivityStreamsOrganization()
return lhs.LessThan(rhs)
} else if idx1 == 37 {
} else if idx1 == 36 {
lhs := this.properties[i].GetActivityStreamsPage()
rhs := this.properties[j].GetActivityStreamsPage()
return lhs.LessThan(rhs)
} else if idx1 == 38 {
} else if idx1 == 37 {
lhs := this.properties[i].GetActivityStreamsPerson()
rhs := this.properties[j].GetActivityStreamsPerson()
return lhs.LessThan(rhs)
} else if idx1 == 39 {
} else if idx1 == 38 {
lhs := this.properties[i].GetActivityStreamsPlace()
rhs := this.properties[j].GetActivityStreamsPlace()
return lhs.LessThan(rhs)
} else if idx1 == 40 {
} else if idx1 == 39 {
lhs := this.properties[i].GetActivityStreamsProfile()
rhs := this.properties[j].GetActivityStreamsProfile()
return lhs.LessThan(rhs)
} else if idx1 == 41 {
} else if idx1 == 40 {
lhs := this.properties[i].GetActivityStreamsQuestion()
rhs := this.properties[j].GetActivityStreamsQuestion()
return lhs.LessThan(rhs)
} else if idx1 == 42 {
} else if idx1 == 41 {
lhs := this.properties[i].GetActivityStreamsRead()
rhs := this.properties[j].GetActivityStreamsRead()
return lhs.LessThan(rhs)
} else if idx1 == 43 {
} else if idx1 == 42 {
lhs := this.properties[i].GetActivityStreamsReject()
rhs := this.properties[j].GetActivityStreamsReject()
return lhs.LessThan(rhs)
} else if idx1 == 44 {
} else if idx1 == 43 {
lhs := this.properties[i].GetActivityStreamsRelationship()
rhs := this.properties[j].GetActivityStreamsRelationship()
return lhs.LessThan(rhs)
} else if idx1 == 45 {
} else if idx1 == 44 {
lhs := this.properties[i].GetActivityStreamsRemove()
rhs := this.properties[j].GetActivityStreamsRemove()
return lhs.LessThan(rhs)
} else if idx1 == 46 {
} else if idx1 == 45 {
lhs := this.properties[i].GetActivityStreamsService()
rhs := this.properties[j].GetActivityStreamsService()
return lhs.LessThan(rhs)
} else if idx1 == 47 {
} else if idx1 == 46 {
lhs := this.properties[i].GetActivityStreamsTentativeAccept()
rhs := this.properties[j].GetActivityStreamsTentativeAccept()
return lhs.LessThan(rhs)
} else if idx1 == 48 {
} else if idx1 == 47 {
lhs := this.properties[i].GetActivityStreamsTentativeReject()
rhs := this.properties[j].GetActivityStreamsTentativeReject()
return lhs.LessThan(rhs)
} else if idx1 == 49 {
} else if idx1 == 48 {
lhs := this.properties[i].GetActivityStreamsTombstone()
rhs := this.properties[j].GetActivityStreamsTombstone()
return lhs.LessThan(rhs)
} else if idx1 == 50 {
} else if idx1 == 49 {
lhs := this.properties[i].GetActivityStreamsTravel()
rhs := this.properties[j].GetActivityStreamsTravel()
return lhs.LessThan(rhs)
} else if idx1 == 51 {
} else if idx1 == 50 {
lhs := this.properties[i].GetActivityStreamsUndo()
rhs := this.properties[j].GetActivityStreamsUndo()
return lhs.LessThan(rhs)
} else if idx1 == 52 {
} else if idx1 == 51 {
lhs := this.properties[i].GetActivityStreamsUpdate()
rhs := this.properties[j].GetActivityStreamsUpdate()
return lhs.LessThan(rhs)
} else if idx1 == 53 {
} else if idx1 == 52 {
lhs := this.properties[i].GetActivityStreamsVideo()
rhs := this.properties[j].GetActivityStreamsVideo()
return lhs.LessThan(rhs)
} else if idx1 == 54 {
} else if idx1 == 53 {
lhs := this.properties[i].GetActivityStreamsView()
rhs := this.properties[j].GetActivityStreamsView()
return lhs.LessThan(rhs)
@ -5519,20 +5442,6 @@ func (this *ActivityStreamsRelationshipProperty) PrependTootEmoji(v vocab.TootEm
}
}
// PrependTootHashtag prepends a Hashtag value to the front of a list of the
// property "relationship". Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) PrependTootHashtag(v vocab.TootHashtag) {
this.properties = append([]*ActivityStreamsRelationshipPropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
tootHashtagMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependTootIdentityProof prepends a IdentityProof value to the front of a list
// of the property "relationship". Invalidates all iterators.
func (this *ActivityStreamsRelationshipProperty) PrependTootIdentityProof(v vocab.TootIdentityProof) {
@ -6300,19 +6209,6 @@ func (this *ActivityStreamsRelationshipProperty) SetTootEmoji(idx int, v vocab.T
}
}
// SetTootHashtag sets a Hashtag value to be at the specified index for the
// property "relationship". Panics if the index is out of bounds. Invalidates
// all iterators.
func (this *ActivityStreamsRelationshipProperty) SetTootHashtag(idx int, v vocab.TootHashtag) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsRelationshipPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
}
// SetTootIdentityProof sets a IdentityProof value to be at the specified index
// for the property "relationship". Panics if the index is out of bounds.
// Invalidates all iterators.

ファイルの表示

@ -9,6 +9,9 @@ var mgr privateManager
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeHashtagToot returns the deserialization method for the
// "TootHashtag" non-functional property in the vocabulary "Toot"
DeserializeHashtagToot() func(map[string]interface{}, map[string]string) (vocab.TootHashtag, error)
// DeserializeLinkActivityStreams returns the deserialization method for
// the "ActivityStreamsLink" non-functional property in the vocabulary
// "ActivityStreams"

ファイルの表示

@ -17,6 +17,7 @@ import (
type ActivityStreamsUrlPropertyIterator struct {
xmlschemaAnyURIMember *url.URL
activitystreamsLinkMember vocab.ActivityStreamsLink
tootHashtagMember vocab.TootHashtag
activitystreamsMentionMember vocab.ActivityStreamsMention
unknown interface{}
alias string
@ -43,6 +44,12 @@ func deserializeActivityStreamsUrlPropertyIterator(i interface{}, aliasMap map[s
alias: alias,
}
return this, nil
} else if v, err := mgr.DeserializeHashtagToot()(m, aliasMap); err == nil {
this := &ActivityStreamsUrlPropertyIterator{
alias: alias,
tootHashtagMember: v,
}
return this, nil
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
this := &ActivityStreamsUrlPropertyIterator{
activitystreamsMentionMember: v,
@ -85,12 +92,21 @@ func (this ActivityStreamsUrlPropertyIterator) GetIRI() *url.URL {
return this.xmlschemaAnyURIMember
}
// GetTootHashtag returns the value of this property. When IsTootHashtag returns
// false, GetTootHashtag will return an arbitrary value.
func (this ActivityStreamsUrlPropertyIterator) GetTootHashtag() vocab.TootHashtag {
return this.tootHashtagMember
}
// GetType returns the value in this property as a Type. Returns nil if the value
// is not an ActivityStreams type, such as an IRI or another value.
func (this ActivityStreamsUrlPropertyIterator) GetType() vocab.Type {
if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink()
}
if this.IsTootHashtag() {
return this.GetTootHashtag()
}
if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention()
}
@ -108,6 +124,7 @@ func (this ActivityStreamsUrlPropertyIterator) GetXMLSchemaAnyURI() *url.URL {
func (this ActivityStreamsUrlPropertyIterator) HasAny() bool {
return this.IsXMLSchemaAnyURI() ||
this.IsActivityStreamsLink() ||
this.IsTootHashtag() ||
this.IsActivityStreamsMention()
}
@ -131,6 +148,13 @@ func (this ActivityStreamsUrlPropertyIterator) IsIRI() bool {
return this.xmlschemaAnyURIMember != nil
}
// IsTootHashtag returns true if this property has a type of "Hashtag". When true,
// use the GetTootHashtag and SetTootHashtag methods to access and set this
// property.
func (this ActivityStreamsUrlPropertyIterator) IsTootHashtag() bool {
return this.tootHashtagMember != nil
}
// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI". When
// true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI methods to access
// and set this property.
@ -146,6 +170,8 @@ func (this ActivityStreamsUrlPropertyIterator) JSONLDContext() map[string]string
var child map[string]string
if this.IsActivityStreamsLink() {
child = this.GetActivityStreamsLink().JSONLDContext()
} else if this.IsTootHashtag() {
child = this.GetTootHashtag().JSONLDContext()
} else if this.IsActivityStreamsMention() {
child = this.GetActivityStreamsMention().JSONLDContext()
}
@ -170,9 +196,12 @@ func (this ActivityStreamsUrlPropertyIterator) KindIndex() int {
if this.IsActivityStreamsLink() {
return 1
}
if this.IsActivityStreamsMention() {
if this.IsTootHashtag() {
return 2
}
if this.IsActivityStreamsMention() {
return 3
}
if this.IsIRI() {
return -2
}
@ -194,6 +223,8 @@ func (this ActivityStreamsUrlPropertyIterator) LessThan(o vocab.ActivityStreamsU
return anyuri.LessAnyURI(this.GetXMLSchemaAnyURI(), o.GetXMLSchemaAnyURI())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().LessThan(o.GetActivityStreamsLink())
} else if this.IsTootHashtag() {
return this.GetTootHashtag().LessThan(o.GetTootHashtag())
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().LessThan(o.GetActivityStreamsMention())
}
@ -247,6 +278,13 @@ func (this *ActivityStreamsUrlPropertyIterator) SetIRI(v *url.URL) {
this.SetXMLSchemaAnyURI(v)
}
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
func (this *ActivityStreamsUrlPropertyIterator) SetTootHashtag(v vocab.TootHashtag) {
this.clear()
this.tootHashtagMember = v
}
// SetType attempts to set the property for the arbitrary type. Returns an error
// if it is not a valid type to set on this property.
func (this *ActivityStreamsUrlPropertyIterator) SetType(t vocab.Type) error {
@ -254,6 +292,10 @@ func (this *ActivityStreamsUrlPropertyIterator) SetType(t vocab.Type) error {
this.SetActivityStreamsLink(v)
return nil
}
if v, ok := t.(vocab.TootHashtag); ok {
this.SetTootHashtag(v)
return nil
}
if v, ok := t.(vocab.ActivityStreamsMention); ok {
this.SetActivityStreamsMention(v)
return nil
@ -274,6 +316,7 @@ func (this *ActivityStreamsUrlPropertyIterator) SetXMLSchemaAnyURI(v *url.URL) {
func (this *ActivityStreamsUrlPropertyIterator) clear() {
this.xmlschemaAnyURIMember = nil
this.activitystreamsLinkMember = nil
this.tootHashtagMember = nil
this.activitystreamsMentionMember = nil
this.unknown = nil
}
@ -287,6 +330,8 @@ func (this ActivityStreamsUrlPropertyIterator) serialize() (interface{}, error)
return anyuri.SerializeAnyURI(this.GetXMLSchemaAnyURI())
} else if this.IsActivityStreamsLink() {
return this.GetActivityStreamsLink().Serialize()
} else if this.IsTootHashtag() {
return this.GetTootHashtag().Serialize()
} else if this.IsActivityStreamsMention() {
return this.GetActivityStreamsMention().Serialize()
}
@ -380,6 +425,17 @@ func (this *ActivityStreamsUrlProperty) AppendIRI(v *url.URL) {
})
}
// AppendTootHashtag appends a Hashtag value to the back of a list of the property
// "url". Invalidates iterators that are traversing using Prev.
func (this *ActivityStreamsUrlProperty) AppendTootHashtag(v vocab.TootHashtag) {
this.properties = append(this.properties, &ActivityStreamsUrlPropertyIterator{
alias: this.alias,
myIdx: this.Len(),
parent: this,
tootHashtagMember: v,
})
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "url". Invalidates iterators that are traversing using Prev.
// Returns an error if the type is not a valid one to set for this property.
@ -487,6 +543,23 @@ func (this *ActivityStreamsUrlProperty) InsertIRI(idx int, v *url.URL) {
}
}
// InsertTootHashtag inserts a Hashtag value at the specified index for a property
// "url". Existing elements at that index and higher are shifted back once.
// Invalidates all iterators.
func (this *ActivityStreamsUrlProperty) InsertTootHashtag(idx int, v vocab.TootHashtag) {
this.properties = append(this.properties, nil)
copy(this.properties[idx+1:], this.properties[idx:])
this.properties[idx] = &ActivityStreamsUrlPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
for i := idx; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "url". Invalidates all iterators. Returns an error if the type is
// not a valid one to set for this property.
@ -574,6 +647,10 @@ func (this ActivityStreamsUrlProperty) Less(i, j int) bool {
rhs := this.properties[j].GetActivityStreamsLink()
return lhs.LessThan(rhs)
} else if idx1 == 2 {
lhs := this.properties[i].GetTootHashtag()
rhs := this.properties[j].GetTootHashtag()
return lhs.LessThan(rhs)
} else if idx1 == 3 {
lhs := this.properties[i].GetActivityStreamsMention()
rhs := this.properties[j].GetActivityStreamsMention()
return lhs.LessThan(rhs)
@ -657,6 +734,20 @@ func (this *ActivityStreamsUrlProperty) PrependIRI(v *url.URL) {
}
}
// PrependTootHashtag prepends a Hashtag value to the front of a list of the
// property "url". Invalidates all iterators.
func (this *ActivityStreamsUrlProperty) PrependTootHashtag(v vocab.TootHashtag) {
this.properties = append([]*ActivityStreamsUrlPropertyIterator{{
alias: this.alias,
myIdx: 0,
parent: this,
tootHashtagMember: v,
}}, this.properties...)
for i := 1; i < this.Len(); i++ {
(this.properties)[i].myIdx = i
}
}
// PrependType prepends an arbitrary type value to the front of a list of the
// property "url". Invalidates all iterators. Returns an error if the type is
// not a valid one to set for this property.
@ -761,6 +852,19 @@ func (this *ActivityStreamsUrlProperty) SetIRI(idx int, v *url.URL) {
}
}
// SetTootHashtag sets a Hashtag value to be at the specified index for the
// property "url". Panics if the index is out of bounds. Invalidates all
// iterators.
func (this *ActivityStreamsUrlProperty) SetTootHashtag(idx int, v vocab.TootHashtag) {
(this.properties)[idx].parent = nil
(this.properties)[idx] = &ActivityStreamsUrlPropertyIterator{
alias: this.alias,
myIdx: idx,
parent: this,
tootHashtagMember: v,
}
}
// SetType sets an arbitrary type value to the specified index of the property
// "url". Invalidates all iterators. Returns an error if the type is not a
// valid one to set for this property. Panics if the index is out of bounds.

ファイルの表示

@ -93,7 +93,7 @@ type ActivityStreamsAccept struct {
// AcceptIsDisjointWith returns true if the other provided type is disjoint with
// the Accept type.
func AcceptIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsActivity struct {
// ActivityIsDisjointWith returns true if the other provided type is disjoint with
// the Activity type.
func ActivityIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -105,7 +105,7 @@ func ActivityStreamsAddExtends(other vocab.Type) bool {
// AddIsDisjointWith returns true if the other provided type is disjoint with the
// Add type.
func AddIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -87,7 +87,7 @@ func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
// AnnounceIsDisjointWith returns true if the other provided type is disjoint with
// the Announce type.
func AnnounceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -79,7 +79,7 @@ func ActivityStreamsApplicationExtends(other vocab.Type) bool {
// ApplicationIsDisjointWith returns true if the other provided type is disjoint
// with the Application type.
func ApplicationIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -86,7 +86,7 @@ func ActivityStreamsArriveExtends(other vocab.Type) bool {
// ArriveIsDisjointWith returns true if the other provided type is disjoint with
// the Arrive type.
func ArriveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -71,7 +71,7 @@ func ActivityStreamsArticleExtends(other vocab.Type) bool {
// ArticleIsDisjointWith returns true if the other provided type is disjoint with
// the Article type.
func ArticleIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -74,7 +74,7 @@ func ActivityStreamsAudioExtends(other vocab.Type) bool {
// AudioIsDisjointWith returns true if the other provided type is disjoint with
// the Audio type.
func AudioIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -78,7 +78,7 @@ func ActivityStreamsBlockExtends(other vocab.Type) bool {
// BlockIsDisjointWith returns true if the other provided type is disjoint with
// the Block type.
func BlockIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -86,7 +86,7 @@ func ActivityStreamsCollectionExtends(other vocab.Type) bool {
// CollectionIsDisjointWith returns true if the other provided type is disjoint
// with the Collection type.
func CollectionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -90,7 +90,7 @@ func ActivityStreamsCollectionPageExtends(other vocab.Type) bool {
// CollectionPageIsDisjointWith returns true if the other provided type is
// disjoint with the CollectionPage type.
func CollectionPageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -82,7 +82,7 @@ func ActivityStreamsCreateExtends(other vocab.Type) bool {
// CreateIsDisjointWith returns true if the other provided type is disjoint with
// the Create type.
func CreateIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -83,7 +83,7 @@ func ActivityStreamsDeleteExtends(other vocab.Type) bool {
// DeleteIsDisjointWith returns true if the other provided type is disjoint with
// the Delete type.
func DeleteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -398,7 +398,7 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
// DislikeIsDisjointWith returns true if the other provided type is disjoint with
// the Dislike type.
func DislikeIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -365,7 +365,7 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
// DocumentIsDisjointWith returns true if the other provided type is disjoint with
// the Document type.
func DocumentIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -358,7 +358,7 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
// EventIsDisjointWith returns true if the other provided type is disjoint with
// the Event type.
func EventIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -403,7 +403,7 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
// FlagIsDisjointWith returns true if the other provided type is disjoint with the
// Flag type.
func FlagIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -407,7 +407,7 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
// FollowIsDisjointWith returns true if the other provided type is disjoint with
// the Follow type.
func FollowIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -446,7 +446,7 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
// GroupIsDisjointWith returns true if the other provided type is disjoint with
// the Group type.
func GroupIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -402,7 +402,7 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
// IgnoreIsDisjointWith returns true if the other provided type is disjoint with
// the Ignore type.
func IgnoreIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -392,7 +392,7 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
// ImageIsDisjointWith returns true if the other provided type is disjoint with
// the Image type.
func ImageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -398,7 +398,7 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
// IntransitiveActivityIsDisjointWith returns true if the other provided type is
// disjoint with the IntransitiveActivity type.
func IntransitiveActivityIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -415,7 +415,7 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
// InviteIsDisjointWith returns true if the other provided type is disjoint with
// the Invite type.
func InviteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -414,7 +414,7 @@ func IsOrExtendsJoin(other vocab.Type) bool {
// JoinIsDisjointWith returns true if the other provided type is disjoint with the
// Join type.
func JoinIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -428,7 +428,7 @@ func IsOrExtendsLeave(other vocab.Type) bool {
// LeaveIsDisjointWith returns true if the other provided type is disjoint with
// the Leave type.
func LeaveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -411,7 +411,7 @@ func IsOrExtendsLike(other vocab.Type) bool {
// LikeIsDisjointWith returns true if the other provided type is disjoint with the
// Like type.
func LikeIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

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

ファイルの表示

@ -410,7 +410,7 @@ func IsOrExtendsListen(other vocab.Type) bool {
// ListenIsDisjointWith returns true if the other provided type is disjoint with
// the Listen type.
func ListenIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

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

ファイルの表示

@ -419,7 +419,7 @@ func IsOrExtendsMove(other vocab.Type) bool {
// MoveIsDisjointWith returns true if the other provided type is disjoint with the
// Move type.
func MoveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -378,7 +378,7 @@ func NewActivityStreamsNote() *ActivityStreamsNote {
// NoteIsDisjointWith returns true if the other provided type is disjoint with the
// Note type.
func NoteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -375,7 +375,7 @@ func NewActivityStreamsObject() *ActivityStreamsObject {
// ObjectIsDisjointWith returns true if the other provided type is disjoint with
// the Object type.
func ObjectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true
@ -388,7 +388,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool {
// Object type. Note that it returns false if the types are the same; see the
// "IsOrExtendsObject" variant instead.
func ObjectIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "Hashtag", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Emoji", "Event", "Flag", "Follow", "Group", "IdentityProof", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
for _, ext := range extensions {
if ext == other.GetTypeName() {
return true

ファイルの表示

@ -429,7 +429,7 @@ func NewActivityStreamsOffer() *ActivityStreamsOffer {
// OfferIsDisjointWith returns true if the other provided type is disjoint with
// the Offer type.
func OfferIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -428,7 +428,7 @@ func NewActivityStreamsOrderedCollection() *ActivityStreamsOrderedCollection {
// OrderedCollectionIsDisjointWith returns true if the other provided type is
// disjoint with the OrderedCollection type.
func OrderedCollectionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -462,7 +462,7 @@ func NewActivityStreamsOrderedCollectionPage() *ActivityStreamsOrderedCollection
// OrderedCollectionPageIsDisjointWith returns true if the other provided type is
// disjoint with the OrderedCollectionPage type.
func OrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -466,7 +466,7 @@ func NewActivityStreamsOrganization() *ActivityStreamsOrganization {
// OrganizationIsDisjointWith returns true if the other provided type is disjoint
// with the Organization type.
func OrganizationIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -385,7 +385,7 @@ func NewActivityStreamsPage() *ActivityStreamsPage {
// PageIsDisjointWith returns true if the other provided type is disjoint with the
// Page type.
func PageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -466,7 +466,7 @@ func NewActivityStreamsPerson() *ActivityStreamsPerson {
// PersonIsDisjointWith returns true if the other provided type is disjoint with
// the Person type.
func PersonIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -427,7 +427,7 @@ func NewActivityStreamsPlace() *ActivityStreamsPlace {
// PlaceIsDisjointWith returns true if the other provided type is disjoint with
// the Place type.
func PlaceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -390,7 +390,7 @@ func NewActivityStreamsProfile() *ActivityStreamsProfile {
// ProfileIsDisjointWith returns true if the other provided type is disjoint with
// the Profile type.
func ProfileIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -462,7 +462,7 @@ func NewActivityStreamsQuestion() *ActivityStreamsQuestion {
// QuestionIsDisjointWith returns true if the other provided type is disjoint with
// the Question type.
func QuestionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -421,7 +421,7 @@ func NewActivityStreamsRead() *ActivityStreamsRead {
// ReadIsDisjointWith returns true if the other provided type is disjoint with the
// Read type.
func ReadIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -429,7 +429,7 @@ func NewActivityStreamsReject() *ActivityStreamsReject {
// RejectIsDisjointWith returns true if the other provided type is disjoint with
// the Reject type.
func RejectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -403,7 +403,7 @@ func NewActivityStreamsRelationship() *ActivityStreamsRelationship {
// RelationshipIsDisjointWith returns true if the other provided type is disjoint
// with the Relationship type.
func RelationshipIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -444,7 +444,7 @@ func NewActivityStreamsRemove() *ActivityStreamsRemove {
// RemoveIsDisjointWith returns true if the other provided type is disjoint with
// the Remove type.
func RemoveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -466,7 +466,7 @@ func NewActivityStreamsService() *ActivityStreamsService {
// ServiceIsDisjointWith returns true if the other provided type is disjoint with
// the Service type.
func ServiceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -428,7 +428,7 @@ func NewActivityStreamsTentativeAccept() *ActivityStreamsTentativeAccept {
// TentativeAcceptIsDisjointWith returns true if the other provided type is
// disjoint with the TentativeAccept type.
func TentativeAcceptIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -428,7 +428,7 @@ func NewActivityStreamsTentativeReject() *ActivityStreamsTentativeReject {
// TentativeRejectIsDisjointWith returns true if the other provided type is
// disjoint with the TentativeReject type.
func TentativeRejectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -411,7 +411,7 @@ func NewActivityStreamsTombstone() *ActivityStreamsTombstone {
// TombstoneIsDisjointWith returns true if the other provided type is disjoint
// with the Tombstone type.
func TombstoneIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -422,7 +422,7 @@ func NewActivityStreamsTravel() *ActivityStreamsTravel {
// TravelIsDisjointWith returns true if the other provided type is disjoint with
// the Travel type.
func TravelIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -427,7 +427,7 @@ func NewActivityStreamsUndo() *ActivityStreamsUndo {
// UndoIsDisjointWith returns true if the other provided type is disjoint with the
// Undo type.
func UndoIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -424,7 +424,7 @@ func NewActivityStreamsUpdate() *ActivityStreamsUpdate {
// UpdateIsDisjointWith returns true if the other provided type is disjoint with
// the Update type.
func UpdateIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -386,7 +386,7 @@ func NewActivityStreamsVideo() *ActivityStreamsVideo {
// VideoIsDisjointWith returns true if the other provided type is disjoint with
// the Video type.
func VideoIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -424,7 +424,7 @@ func NewActivityStreamsView() *ActivityStreamsView {
// ViewIsDisjointWith returns true if the other provided type is disjoint with the
// View type.
func ViewIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -356,7 +356,7 @@ func DeserializeEmoji(m map[string]interface{}, aliasMap map[string]string) (*To
// EmojiIsDisjointWith returns true if the other provided type is disjoint with
// the Emoji type.
func EmojiIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -11,79 +11,27 @@ var typePropertyConstructor func() vocab.JSONLDTypeProperty
// privateManager abstracts the code-generated manager that provides access to
// concrete implementations.
type privateManager interface {
// DeserializeAltitudePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsAltitudeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAltitudePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAltitudeProperty, error)
// DeserializeAttachmentPropertyActivityStreams returns the
// deserialization method for the "ActivityStreamsAttachmentProperty"
// non-functional property in the vocabulary "ActivityStreams"
DeserializeAttachmentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttachmentProperty, error)
// DeserializeAttributedToPropertyActivityStreams returns the
// deserialization method for the
// "ActivityStreamsAttributedToProperty" non-functional property in
// the vocabulary "ActivityStreams"
DeserializeAttributedToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAttributedToProperty, error)
// DeserializeAudiencePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsAudienceProperty" non-functional
// DeserializeHeightPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsHeightProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeAudiencePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsAudienceProperty, error)
// DeserializeBccPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsBccProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeBccPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBccProperty, error)
// DeserializeBtoPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsBtoProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeBtoPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsBtoProperty, error)
// DeserializeCcPropertyActivityStreams returns the deserialization method
// for the "ActivityStreamsCcProperty" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeCcPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsCcProperty, error)
// DeserializeContentPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsContentProperty" non-functional
DeserializeHeightPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHeightProperty, error)
// DeserializeHrefPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsHrefProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeContentPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContentProperty, error)
// DeserializeContextPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsContextProperty" non-functional
DeserializeHrefPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHrefProperty, error)
// DeserializeHreflangPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsHreflangProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeContextPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsContextProperty, error)
// DeserializeDurationPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsDurationProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeDurationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsDurationProperty, error)
// DeserializeEndTimePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsEndTimeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeEndTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsEndTimeProperty, error)
// DeserializeGeneratorPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsGeneratorProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeGeneratorPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsGeneratorProperty, error)
// DeserializeIconPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsIconProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeIconPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsIconProperty, error)
DeserializeHreflangPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsHreflangProperty, error)
// DeserializeIdPropertyJSONLD returns the deserialization method for the
// "JSONLDIdProperty" non-functional property in the vocabulary
// "JSONLD"
DeserializeIdPropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDIdProperty, error)
// DeserializeImagePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsImageProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeImagePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsImageProperty, error)
// DeserializeInReplyToPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsInReplyToProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeInReplyToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsInReplyToProperty, error)
// DeserializeLikesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLikesProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeLikesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLikesProperty, error)
// DeserializeLocationPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsLocationProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeLocationPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsLocationProperty, error)
// DeserializeMediaTypePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsMediaTypeProperty" non-functional
// property in the vocabulary "ActivityStreams"
@ -92,58 +40,26 @@ type privateManager interface {
// method for the "ActivityStreamsNameProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeNamePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsNameProperty, error)
// DeserializeObjectPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsObjectProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeObjectPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsObjectProperty, error)
// DeserializePreviewPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsPreviewProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializePreviewPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPreviewProperty, error)
// DeserializePublishedPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsPublishedProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializePublishedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsPublishedProperty, error)
// DeserializeRepliesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsRepliesProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeRepliesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRepliesProperty, error)
// DeserializeSharesPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsSharesProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeSharesPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSharesProperty, error)
// DeserializeSourcePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsSourceProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeSourcePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSourceProperty, error)
// DeserializeStartTimePropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsStartTimeProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeStartTimePropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsStartTimeProperty, error)
// DeserializeRelPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsRelProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeRelPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsRelProperty, error)
// DeserializeSummaryPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsSummaryProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeSummaryPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsSummaryProperty, error)
// DeserializeTagPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsTagProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeTagPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsTagProperty, error)
// DeserializeToPropertyActivityStreams returns the deserialization method
// for the "ActivityStreamsToProperty" non-functional property in the
// vocabulary "ActivityStreams"
DeserializeToPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsToProperty, error)
// DeserializeTypePropertyJSONLD returns the deserialization method for
// the "JSONLDTypeProperty" non-functional property in the vocabulary
// "JSONLD"
DeserializeTypePropertyJSONLD() func(map[string]interface{}, map[string]string) (vocab.JSONLDTypeProperty, error)
// DeserializeUpdatedPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsUpdatedProperty" non-functional
// DeserializeWidthPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsWidthProperty" non-functional
// property in the vocabulary "ActivityStreams"
DeserializeUpdatedPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUpdatedProperty, error)
// DeserializeUrlPropertyActivityStreams returns the deserialization
// method for the "ActivityStreamsUrlProperty" non-functional property
// in the vocabulary "ActivityStreams"
DeserializeUrlPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsUrlProperty, error)
DeserializeWidthPropertyActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityStreamsWidthProperty, error)
}
// jsonldContexter is a private interface to determine the JSON-LD contexts and

ファイル差分が大きすぎるため省略します 差分を読み込み

ファイルの表示

@ -356,7 +356,7 @@ func DeserializeIdentityProof(m map[string]interface{}, aliasMap map[string]stri
// IdentityProofIsDisjointWith returns true if the other provided type is disjoint
// with the IdentityProof type.
func IdentityProofIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
disjointWith := []string{"Hashtag", "Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetTypeName() {
return true

ファイルの表示

@ -60,6 +60,9 @@ type ActivityStreamsCurrentProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -89,6 +92,10 @@ type ActivityStreamsCurrentProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -127,6 +134,9 @@ type ActivityStreamsCurrentProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -237,9 +237,6 @@ type ActivityStreamsDescribesProperty interface {
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
@ -481,10 +478,6 @@ type ActivityStreamsDescribesProperty interface {
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -675,9 +668,6 @@ type ActivityStreamsDescribesProperty interface {
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)

ファイルの表示

@ -50,6 +50,9 @@ type ActivityStreamsFirstProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -79,6 +82,10 @@ type ActivityStreamsFirstProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -117,6 +124,9 @@ type ActivityStreamsFirstProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -223,9 +223,6 @@ type ActivityStreamsFormerTypePropertyIterator interface {
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
@ -471,10 +468,6 @@ type ActivityStreamsFormerTypePropertyIterator interface {
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -668,9 +661,6 @@ type ActivityStreamsFormerTypePropertyIterator interface {
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)
@ -908,10 +898,6 @@ type ActivityStreamsFormerTypeProperty interface {
// property "formerType". Invalidates iterators that are traversing
// using Prev.
AppendTootEmoji(v TootEmoji)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "formerType". Invalidates iterators that are traversing
// using Prev.
AppendTootHashtag(v TootHashtag)
// AppendTootIdentityProof appends a IdentityProof value to the back of a
// list of the property "formerType". Invalidates iterators that are
// traversing using Prev.
@ -1165,10 +1151,6 @@ type ActivityStreamsFormerTypeProperty interface {
// property "formerType". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertTootEmoji(idx int, v TootEmoji)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "formerType". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// InsertTootIdentityProof inserts a IdentityProof value at the specified
// index for a property "formerType". Existing elements at that index
// and higher are shifted back once. Invalidates all iterators.
@ -1376,9 +1358,6 @@ type ActivityStreamsFormerTypeProperty interface {
// PrependTootEmoji prepends a Emoji value to the front of a list of the
// property "formerType". Invalidates all iterators.
PrependTootEmoji(v TootEmoji)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "formerType". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependTootIdentityProof prepends a IdentityProof value to the front of
// a list of the property "formerType". Invalidates all iterators.
PrependTootIdentityProof(v TootIdentityProof)
@ -1614,10 +1593,6 @@ type ActivityStreamsFormerTypeProperty interface {
// property "formerType". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootEmoji(idx int, v TootEmoji)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "formerType". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetTootIdentityProof sets a IdentityProof value to be at the specified
// index for the property "formerType". Panics if the index is out of
// bounds. Invalidates all iterators.

ファイルの表示

@ -22,6 +22,9 @@ type ActivityStreamsIconPropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -43,6 +46,10 @@ type ActivityStreamsIconPropertyIterator interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -76,6 +83,9 @@ type ActivityStreamsIconPropertyIterator interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error
@ -137,6 +147,10 @@ type ActivityStreamsIconProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "icon"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "icon". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
@ -171,6 +185,10 @@ type ActivityStreamsIconProperty interface {
// "icon". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "icon". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
@ -209,6 +227,9 @@ type ActivityStreamsIconProperty interface {
// PrependIRI prepends an IRI value to the front of a list of the property
// "icon".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "icon". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "icon". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
@ -238,6 +259,10 @@ type ActivityStreamsIconProperty interface {
// SetIRI sets an IRI value to be at the specified index for the property
// "icon". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "icon". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "icon". Invalidates all iterators. Returns an error if the
// type is not a valid one to set for this property. Panics if the

ファイルの表示

@ -22,6 +22,9 @@ type ActivityStreamsImagePropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -43,6 +46,10 @@ type ActivityStreamsImagePropertyIterator interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -76,6 +83,9 @@ type ActivityStreamsImagePropertyIterator interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error
@ -130,6 +140,10 @@ type ActivityStreamsImageProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "image"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "image". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates iterators that are traversing
// using Prev. Returns an error if the type is not a valid one to set
@ -164,6 +178,10 @@ type ActivityStreamsImageProperty interface {
// "image". Existing elements at that index and higher are shifted
// back once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "image". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
@ -202,6 +220,9 @@ type ActivityStreamsImageProperty interface {
// PrependIRI prepends an IRI value to the front of a list of the property
// "image".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "image". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "image". Invalidates all iterators. Returns an error
// if the type is not a valid one to set for this property.
@ -231,6 +252,10 @@ type ActivityStreamsImageProperty interface {
// SetIRI sets an IRI value to be at the specified index for the property
// "image". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "image". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "image". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property. Panics if the

ファイルの表示

@ -49,6 +49,9 @@ type ActivityStreamsLastProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -78,6 +81,10 @@ type ActivityStreamsLastProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -116,6 +123,9 @@ type ActivityStreamsLastProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -57,6 +57,9 @@ type ActivityStreamsNextProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -86,6 +89,10 @@ type ActivityStreamsNextProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -124,6 +131,9 @@ type ActivityStreamsNextProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -55,6 +55,9 @@ type ActivityStreamsPartOfProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -95,6 +98,10 @@ type ActivityStreamsPartOfProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -139,6 +146,9 @@ type ActivityStreamsPartOfProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -57,6 +57,9 @@ type ActivityStreamsPrevProperty interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -86,6 +89,10 @@ type ActivityStreamsPrevProperty interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() 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
@ -124,6 +131,9 @@ type ActivityStreamsPrevProperty interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error

ファイルの表示

@ -223,9 +223,6 @@ type ActivityStreamsRelationshipPropertyIterator interface {
// GetTootEmoji returns the value of this property. When IsTootEmoji
// returns false, GetTootEmoji will return an arbitrary value.
GetTootEmoji() TootEmoji
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetTootIdentityProof returns the value of this property. When
// IsTootIdentityProof returns false, GetTootIdentityProof will return
// an arbitrary value.
@ -467,10 +464,6 @@ type ActivityStreamsRelationshipPropertyIterator interface {
// true, use the GetTootEmoji and SetTootEmoji methods to access and
// set this property.
IsTootEmoji() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsTootIdentityProof returns true if this property has a type of
// "IdentityProof". When true, use the GetTootIdentityProof and
// SetTootIdentityProof methods to access and set this property.
@ -660,9 +653,6 @@ type ActivityStreamsRelationshipPropertyIterator interface {
// SetTootEmoji sets the value of this property. Calling IsTootEmoji
// afterwards returns true.
SetTootEmoji(v TootEmoji)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetTootIdentityProof sets the value of this property. Calling
// IsTootIdentityProof afterwards returns true.
SetTootIdentityProof(v TootIdentityProof)
@ -906,10 +896,6 @@ type ActivityStreamsRelationshipProperty interface {
// property "relationship". Invalidates iterators that are traversing
// using Prev.
AppendTootEmoji(v TootEmoji)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "relationship". Invalidates iterators that are traversing
// using Prev.
AppendTootHashtag(v TootHashtag)
// AppendTootIdentityProof appends a IdentityProof value to the back of a
// list of the property "relationship". Invalidates iterators that are
// traversing using Prev.
@ -1159,10 +1145,6 @@ type ActivityStreamsRelationshipProperty interface {
// property "relationship". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertTootEmoji(idx int, v TootEmoji)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "relationship". Existing elements at that index and higher
// are shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// InsertTootIdentityProof inserts a IdentityProof value at the specified
// index for a property "relationship". Existing elements at that
// index and higher are shifted back once. Invalidates all iterators.
@ -1366,9 +1348,6 @@ type ActivityStreamsRelationshipProperty interface {
// PrependTootEmoji prepends a Emoji value to the front of a list of the
// property "relationship". Invalidates all iterators.
PrependTootEmoji(v TootEmoji)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "relationship". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependTootIdentityProof prepends a IdentityProof value to the front of
// a list of the property "relationship". Invalidates all iterators.
PrependTootIdentityProof(v TootIdentityProof)
@ -1601,10 +1580,6 @@ type ActivityStreamsRelationshipProperty interface {
// property "relationship". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootEmoji(idx int, v TootEmoji)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "relationship". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetTootIdentityProof sets a IdentityProof value to be at the specified
// index for the property "relationship". Panics if the index is out
// of bounds. Invalidates all iterators.

ファイルの表示

@ -18,6 +18,9 @@ type ActivityStreamsUrlPropertyIterator interface {
// GetIRI returns the IRI of this property. When IsIRI returns false,
// GetIRI will return an arbitrary value.
GetIRI() *url.URL
// GetTootHashtag returns the value of this property. When IsTootHashtag
// returns false, GetTootHashtag will return an arbitrary value.
GetTootHashtag() TootHashtag
// GetType returns the value in this property as a Type. Returns nil if
// the value is not an ActivityStreams type, such as an IRI or another
// value.
@ -39,6 +42,10 @@ type ActivityStreamsUrlPropertyIterator interface {
// IsIRI returns true if this property is an IRI. When true, use GetIRI
// and SetIRI to access and set this property
IsIRI() bool
// IsTootHashtag returns true if this property has a type of "Hashtag".
// When true, use the GetTootHashtag and SetTootHashtag methods to
// access and set this property.
IsTootHashtag() bool
// IsXMLSchemaAnyURI returns true if this property has a type of "anyURI".
// When true, use the GetXMLSchemaAnyURI and SetXMLSchemaAnyURI
// methods to access and set this property.
@ -73,6 +80,9 @@ type ActivityStreamsUrlPropertyIterator interface {
// SetIRI sets the value of this property. Calling IsIRI afterwards
// returns true.
SetIRI(v *url.URL)
// SetTootHashtag sets the value of this property. Calling IsTootHashtag
// afterwards returns true.
SetTootHashtag(v TootHashtag)
// SetType attempts to set the property for the arbitrary type. Returns an
// error if it is not a valid type to set on this property.
SetType(t Type) error
@ -129,6 +139,10 @@ type ActivityStreamsUrlProperty interface {
// AppendIRI appends an IRI value to the back of a list of the property
// "url"
AppendIRI(v *url.URL)
// AppendTootHashtag appends a Hashtag value to the back of a list of the
// property "url". Invalidates iterators that are traversing using
// Prev.
AppendTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates iterators that are traversing using
// Prev. Returns an error if the type is not a valid one to set for
@ -163,6 +177,10 @@ type ActivityStreamsUrlProperty interface {
// "url". Existing elements at that index and higher are shifted back
// once. Invalidates all iterators.
InsertIRI(idx int, v *url.URL)
// InsertTootHashtag inserts a Hashtag value at the specified index for a
// property "url". Existing elements at that index and higher are
// shifted back once. Invalidates all iterators.
InsertTootHashtag(idx int, v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
@ -202,6 +220,9 @@ type ActivityStreamsUrlProperty interface {
// PrependIRI prepends an IRI value to the front of a list of the property
// "url".
PrependIRI(v *url.URL)
// PrependTootHashtag prepends a Hashtag value to the front of a list of
// the property "url". Invalidates all iterators.
PrependTootHashtag(v TootHashtag)
// PrependType prepends an arbitrary type value to the front of a list of
// the property "url". Invalidates all iterators. Returns an error if
// the type is not a valid one to set for this property.
@ -230,6 +251,10 @@ type ActivityStreamsUrlProperty interface {
// SetIRI sets an IRI value to be at the specified index for the property
// "url". Panics if the index is out of bounds.
SetIRI(idx int, v *url.URL)
// SetTootHashtag sets a Hashtag value to be at the specified index for
// the property "url". Panics if the index is out of bounds.
// Invalidates all iterators.
SetTootHashtag(idx int, v TootHashtag)
// SetType sets an arbitrary type value to the specified index of the
// property "url". Invalidates all iterators. Returns an error if the
// type is not a valid one to set for this property. Panics if the

ファイルの表示

@ -17,99 +17,36 @@ package vocab
// "type": "Note"
// }
type TootHashtag interface {
// GetActivityStreamsAltitude returns the "altitude" property if it
// exists, and nil otherwise.
GetActivityStreamsAltitude() ActivityStreamsAltitudeProperty
// GetActivityStreamsAttachment returns the "attachment" property if it
// exists, and nil otherwise.
GetActivityStreamsAttachment() ActivityStreamsAttachmentProperty
// GetActivityStreamsAttributedTo returns the "attributedTo" property if
// it exists, and nil otherwise.
GetActivityStreamsAttributedTo() ActivityStreamsAttributedToProperty
// GetActivityStreamsAudience returns the "audience" property if it
// exists, and nil otherwise.
GetActivityStreamsAudience() ActivityStreamsAudienceProperty
// GetActivityStreamsBcc returns the "bcc" property if it exists, and nil
// otherwise.
GetActivityStreamsBcc() ActivityStreamsBccProperty
// GetActivityStreamsBto returns the "bto" property if it exists, and nil
// otherwise.
GetActivityStreamsBto() ActivityStreamsBtoProperty
// GetActivityStreamsCc returns the "cc" property if it exists, and nil
// otherwise.
GetActivityStreamsCc() ActivityStreamsCcProperty
// GetActivityStreamsContent returns the "content" property if it exists,
// GetActivityStreamsHeight returns the "height" property if it exists,
// and nil otherwise.
GetActivityStreamsContent() ActivityStreamsContentProperty
// GetActivityStreamsContext returns the "context" property if it exists,
// and nil otherwise.
GetActivityStreamsContext() ActivityStreamsContextProperty
// GetActivityStreamsDuration returns the "duration" property if it
// exists, and nil otherwise.
GetActivityStreamsDuration() ActivityStreamsDurationProperty
// GetActivityStreamsEndTime returns the "endTime" property if it exists,
// and nil otherwise.
GetActivityStreamsEndTime() ActivityStreamsEndTimeProperty
// GetActivityStreamsGenerator returns the "generator" property if it
// exists, and nil otherwise.
GetActivityStreamsGenerator() ActivityStreamsGeneratorProperty
// GetActivityStreamsIcon returns the "icon" property if it exists, and
GetActivityStreamsHeight() ActivityStreamsHeightProperty
// GetActivityStreamsHref returns the "href" property if it exists, and
// nil otherwise.
GetActivityStreamsIcon() ActivityStreamsIconProperty
// GetActivityStreamsImage returns the "image" property if it exists, and
// nil otherwise.
GetActivityStreamsImage() ActivityStreamsImageProperty
// GetActivityStreamsInReplyTo returns the "inReplyTo" property if it
GetActivityStreamsHref() ActivityStreamsHrefProperty
// GetActivityStreamsHreflang returns the "hreflang" property if it
// exists, and nil otherwise.
GetActivityStreamsInReplyTo() ActivityStreamsInReplyToProperty
// GetActivityStreamsLikes returns the "likes" property if it exists, and
// nil otherwise.
GetActivityStreamsLikes() ActivityStreamsLikesProperty
// GetActivityStreamsLocation returns the "location" property if it
// exists, and nil otherwise.
GetActivityStreamsLocation() ActivityStreamsLocationProperty
GetActivityStreamsHreflang() ActivityStreamsHreflangProperty
// GetActivityStreamsMediaType returns the "mediaType" property if it
// exists, and nil otherwise.
GetActivityStreamsMediaType() ActivityStreamsMediaTypeProperty
// GetActivityStreamsName returns the "name" property if it exists, and
// nil otherwise.
GetActivityStreamsName() ActivityStreamsNameProperty
// GetActivityStreamsObject returns the "object" property if it exists,
// and nil otherwise.
GetActivityStreamsObject() ActivityStreamsObjectProperty
// GetActivityStreamsPreview returns the "preview" property if it exists,
// and nil otherwise.
GetActivityStreamsPreview() ActivityStreamsPreviewProperty
// GetActivityStreamsPublished returns the "published" property if it
// exists, and nil otherwise.
GetActivityStreamsPublished() ActivityStreamsPublishedProperty
// GetActivityStreamsReplies returns the "replies" property if it exists,
// and nil otherwise.
GetActivityStreamsReplies() ActivityStreamsRepliesProperty
// GetActivityStreamsShares returns the "shares" property if it exists,
// and nil otherwise.
GetActivityStreamsShares() ActivityStreamsSharesProperty
// GetActivityStreamsSource returns the "source" property if it exists,
// and nil otherwise.
GetActivityStreamsSource() ActivityStreamsSourceProperty
// GetActivityStreamsStartTime returns the "startTime" property if it
// exists, and nil otherwise.
GetActivityStreamsStartTime() ActivityStreamsStartTimeProperty
// GetActivityStreamsRel returns the "rel" property if it exists, and nil
// otherwise.
GetActivityStreamsRel() ActivityStreamsRelProperty
// GetActivityStreamsSummary returns the "summary" property if it exists,
// and nil otherwise.
GetActivityStreamsSummary() ActivityStreamsSummaryProperty
// GetActivityStreamsTag returns the "tag" property if it exists, and nil
// otherwise.
GetActivityStreamsTag() ActivityStreamsTagProperty
// GetActivityStreamsTo returns the "to" property if it exists, and nil
// otherwise.
GetActivityStreamsTo() ActivityStreamsToProperty
// GetActivityStreamsUpdated returns the "updated" property if it exists,
// and nil otherwise.
GetActivityStreamsUpdated() ActivityStreamsUpdatedProperty
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetActivityStreamsWidth returns the "width" property if it exists, and
// nil otherwise.
GetActivityStreamsWidth() ActivityStreamsWidthProperty
// GetJSONLDId returns the "id" property if it exists, and nil otherwise.
GetJSONLDId() JSONLDIdProperty
// GetJSONLDType returns the "type" property if it exists, and nil
@ -138,68 +75,26 @@ type TootHashtag interface {
// Serialize converts this into an interface representation suitable for
// marshalling into a text or binary format.
Serialize() (map[string]interface{}, error)
// SetActivityStreamsAltitude sets the "altitude" property.
SetActivityStreamsAltitude(i ActivityStreamsAltitudeProperty)
// SetActivityStreamsAttachment sets the "attachment" property.
SetActivityStreamsAttachment(i ActivityStreamsAttachmentProperty)
// SetActivityStreamsAttributedTo sets the "attributedTo" property.
SetActivityStreamsAttributedTo(i ActivityStreamsAttributedToProperty)
// SetActivityStreamsAudience sets the "audience" property.
SetActivityStreamsAudience(i ActivityStreamsAudienceProperty)
// SetActivityStreamsBcc sets the "bcc" property.
SetActivityStreamsBcc(i ActivityStreamsBccProperty)
// SetActivityStreamsBto sets the "bto" property.
SetActivityStreamsBto(i ActivityStreamsBtoProperty)
// SetActivityStreamsCc sets the "cc" property.
SetActivityStreamsCc(i ActivityStreamsCcProperty)
// SetActivityStreamsContent sets the "content" property.
SetActivityStreamsContent(i ActivityStreamsContentProperty)
// SetActivityStreamsContext sets the "context" property.
SetActivityStreamsContext(i ActivityStreamsContextProperty)
// SetActivityStreamsDuration sets the "duration" property.
SetActivityStreamsDuration(i ActivityStreamsDurationProperty)
// SetActivityStreamsEndTime sets the "endTime" property.
SetActivityStreamsEndTime(i ActivityStreamsEndTimeProperty)
// SetActivityStreamsGenerator sets the "generator" property.
SetActivityStreamsGenerator(i ActivityStreamsGeneratorProperty)
// SetActivityStreamsIcon sets the "icon" property.
SetActivityStreamsIcon(i ActivityStreamsIconProperty)
// SetActivityStreamsImage sets the "image" property.
SetActivityStreamsImage(i ActivityStreamsImageProperty)
// SetActivityStreamsInReplyTo sets the "inReplyTo" property.
SetActivityStreamsInReplyTo(i ActivityStreamsInReplyToProperty)
// SetActivityStreamsLikes sets the "likes" property.
SetActivityStreamsLikes(i ActivityStreamsLikesProperty)
// SetActivityStreamsLocation sets the "location" property.
SetActivityStreamsLocation(i ActivityStreamsLocationProperty)
// SetActivityStreamsHeight sets the "height" property.
SetActivityStreamsHeight(i ActivityStreamsHeightProperty)
// SetActivityStreamsHref sets the "href" property.
SetActivityStreamsHref(i ActivityStreamsHrefProperty)
// SetActivityStreamsHreflang sets the "hreflang" property.
SetActivityStreamsHreflang(i ActivityStreamsHreflangProperty)
// SetActivityStreamsMediaType sets the "mediaType" property.
SetActivityStreamsMediaType(i ActivityStreamsMediaTypeProperty)
// SetActivityStreamsName sets the "name" property.
SetActivityStreamsName(i ActivityStreamsNameProperty)
// SetActivityStreamsObject sets the "object" property.
SetActivityStreamsObject(i ActivityStreamsObjectProperty)
// SetActivityStreamsPreview sets the "preview" property.
SetActivityStreamsPreview(i ActivityStreamsPreviewProperty)
// SetActivityStreamsPublished sets the "published" property.
SetActivityStreamsPublished(i ActivityStreamsPublishedProperty)
// SetActivityStreamsReplies sets the "replies" property.
SetActivityStreamsReplies(i ActivityStreamsRepliesProperty)
// SetActivityStreamsShares sets the "shares" property.
SetActivityStreamsShares(i ActivityStreamsSharesProperty)
// SetActivityStreamsSource sets the "source" property.
SetActivityStreamsSource(i ActivityStreamsSourceProperty)
// SetActivityStreamsStartTime sets the "startTime" property.
SetActivityStreamsStartTime(i ActivityStreamsStartTimeProperty)
// SetActivityStreamsRel sets the "rel" property.
SetActivityStreamsRel(i ActivityStreamsRelProperty)
// SetActivityStreamsSummary sets the "summary" property.
SetActivityStreamsSummary(i ActivityStreamsSummaryProperty)
// SetActivityStreamsTag sets the "tag" property.
SetActivityStreamsTag(i ActivityStreamsTagProperty)
// SetActivityStreamsTo sets the "to" property.
SetActivityStreamsTo(i ActivityStreamsToProperty)
// SetActivityStreamsUpdated sets the "updated" property.
SetActivityStreamsUpdated(i ActivityStreamsUpdatedProperty)
// SetActivityStreamsUrl sets the "url" property.
SetActivityStreamsUrl(i ActivityStreamsUrlProperty)
// SetActivityStreamsWidth sets the "width" property.
SetActivityStreamsWidth(i ActivityStreamsWidthProperty)
// SetJSONLDId sets the "id" property.
SetJSONLDId(i JSONLDIdProperty)
// SetJSONLDType sets the "type" property.