Change GetName to GetTypeName

このコミットが含まれているのは:
Cory Slep 2019-02-15 22:11:48 +01:00
コミット 1227ec9a5a
117個のファイルの変更451行の追加451行の削除

ファイルの表示

@ -182,6 +182,7 @@ func (p *FunctionalPropertyGenerator) funcs() []*codegen.Method {
),
).Line()
}
// GetType
methods = append(methods,
codegen.NewCommentedValueMethod(
p.GetPrivatePackage().Path(),

ファイルの表示

@ -18,7 +18,7 @@ const (
extendingMethod = "IsExtending"
extendsMethod = "Extends"
disjointWithMethod = "IsDisjointWith"
typeNameMethod = "GetName"
typeNameMethod = "GetTypeName"
vocabURIMethod = "VocabularyURI"
serializeMethodName = "Serialize"
deserializeFnName = "Deserialize"

ファイルの表示

@ -9,8 +9,6 @@ import (
"net/http"
)
// TODO: Rename GetType and GetName
// baseActor must satisfy the Actor interface.
var _ Actor = &baseActor{}

ファイルの表示

@ -9,7 +9,8 @@ import (
// IsAnActivityType returns true if the ActivityStreams value is an Activity or
// extends from the Activity type.
func IsAnActivityType(value vocab.Type) bool {
return value.GetName() == "Activity" || streams.ActivityStreamsActivityIsExtendedBy(value)
// TODO: Generate these strings as exported constants.
return value.GetTypeName() == "Activity" || streams.ActivityStreamsActivityIsExtendedBy(value)
}
// toAsType converts a generic map[string]interface{} into a known Type.

ファイルの表示

@ -748,7 +748,7 @@ func toTombstone(obj vocab.Type, id *url.URL, now time.Time) vocab.ActivityStrea
former := streams.NewActivityStreamsFormerTypeProperty()
tomb.SetActivityStreamsFormerType(former)
// Populate Former Type
former.AppendXMLSchemaString(obj.GetName())
former.AppendXMLSchemaString(obj.GetTypeName())
// Copy over the published property if it existed
if pubber, ok := obj.(publisheder); ok {
if pub := pubber.GetActivityStreamsPublished(); pub != nil {

ファイルの表示

@ -23,8 +23,8 @@ var errCannotTypeAssertPredicate error = errors.New("predicate cannot be type as
// ActivityStreamsInterface represents any ActivityStream value code-generated by
// go-fed or compatible with the generated interfaces.
type ActivityStreamsInterface interface {
// GetName returns the ActiivtyStreams value's type.
GetName() string
// GetTypeName returns the ActiivtyStreams value's type.
GetTypeName() string
// VocabularyURI returns the vocabulary's URI as a string.
VocabularyURI() string
}

ファイルの表示

@ -154,7 +154,7 @@ func NewTypePredicatedResolver(delegate Resolver, predicate interface{}) (*TypeP
func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsInterface) (bool, error) {
var predicatePasses bool
var err error
if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Accept" {
if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Accept" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAccept) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsAccept); ok {
predicatePasses, err = fn(ctx, v)
@ -165,7 +165,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Activity" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Activity" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsActivity) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsActivity); ok {
predicatePasses, err = fn(ctx, v)
@ -176,7 +176,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Add" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Add" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAdd) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsAdd); ok {
predicatePasses, err = fn(ctx, v)
@ -187,7 +187,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Announce" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Announce" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAnnounce) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsAnnounce); ok {
predicatePasses, err = fn(ctx, v)
@ -198,7 +198,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Application" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Application" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsApplication) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsApplication); ok {
predicatePasses, err = fn(ctx, v)
@ -209,7 +209,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Arrive" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Arrive" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArrive) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsArrive); ok {
predicatePasses, err = fn(ctx, v)
@ -220,7 +220,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Article" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Article" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsArticle) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsArticle); ok {
predicatePasses, err = fn(ctx, v)
@ -231,7 +231,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Audio" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Audio" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsAudio) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsAudio); ok {
predicatePasses, err = fn(ctx, v)
@ -242,7 +242,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Block" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Block" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsBlock) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsBlock); ok {
predicatePasses, err = fn(ctx, v)
@ -253,7 +253,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Collection" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Collection" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollection) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsCollection); ok {
predicatePasses, err = fn(ctx, v)
@ -264,7 +264,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "CollectionPage" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "CollectionPage" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCollectionPage) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok {
predicatePasses, err = fn(ctx, v)
@ -275,7 +275,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Create" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Create" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsCreate) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsCreate); ok {
predicatePasses, err = fn(ctx, v)
@ -286,7 +286,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Delete" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Delete" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDelete) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsDelete); ok {
predicatePasses, err = fn(ctx, v)
@ -297,7 +297,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Dislike" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Dislike" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDislike) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsDislike); ok {
predicatePasses, err = fn(ctx, v)
@ -308,7 +308,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Document" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Document" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsDocument) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsDocument); ok {
predicatePasses, err = fn(ctx, v)
@ -319,7 +319,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Event" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Event" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsEvent) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsEvent); ok {
predicatePasses, err = fn(ctx, v)
@ -330,7 +330,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Flag" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Flag" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFlag) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsFlag); ok {
predicatePasses, err = fn(ctx, v)
@ -341,7 +341,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Follow" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Follow" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsFollow) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsFollow); ok {
predicatePasses, err = fn(ctx, v)
@ -352,7 +352,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Group" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Group" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsGroup) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsGroup); ok {
predicatePasses, err = fn(ctx, v)
@ -363,7 +363,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Ignore" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Ignore" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIgnore) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsIgnore); ok {
predicatePasses, err = fn(ctx, v)
@ -374,7 +374,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Image" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Image" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsImage) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsImage); ok {
predicatePasses, err = fn(ctx, v)
@ -385,7 +385,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "IntransitiveActivity" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "IntransitiveActivity" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok {
predicatePasses, err = fn(ctx, v)
@ -396,7 +396,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Invite" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Invite" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsInvite) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsInvite); ok {
predicatePasses, err = fn(ctx, v)
@ -407,7 +407,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Join" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Join" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsJoin) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsJoin); ok {
predicatePasses, err = fn(ctx, v)
@ -418,7 +418,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Leave" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Leave" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLeave) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsLeave); ok {
predicatePasses, err = fn(ctx, v)
@ -429,7 +429,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Like" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Like" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLike) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsLike); ok {
predicatePasses, err = fn(ctx, v)
@ -440,7 +440,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Link" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Link" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsLink) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsLink); ok {
predicatePasses, err = fn(ctx, v)
@ -451,7 +451,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Listen" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Listen" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsListen) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsListen); ok {
predicatePasses, err = fn(ctx, v)
@ -462,7 +462,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Mention" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Mention" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMention) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsMention); ok {
predicatePasses, err = fn(ctx, v)
@ -473,7 +473,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Move" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Move" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsMove) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsMove); ok {
predicatePasses, err = fn(ctx, v)
@ -484,7 +484,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Note" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Note" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsNote) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsNote); ok {
predicatePasses, err = fn(ctx, v)
@ -495,7 +495,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Object" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Object" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsObject) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsObject); ok {
predicatePasses, err = fn(ctx, v)
@ -506,7 +506,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Offer" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Offer" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOffer) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsOffer); ok {
predicatePasses, err = fn(ctx, v)
@ -517,7 +517,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "OrderedCollection" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "OrderedCollection" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollection) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok {
predicatePasses, err = fn(ctx, v)
@ -528,7 +528,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "OrderedCollectionPage" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "OrderedCollectionPage" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok {
predicatePasses, err = fn(ctx, v)
@ -539,7 +539,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Organization" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Organization" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsOrganization) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsOrganization); ok {
predicatePasses, err = fn(ctx, v)
@ -550,7 +550,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Page" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Page" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPage) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsPage); ok {
predicatePasses, err = fn(ctx, v)
@ -561,7 +561,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Person" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Person" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPerson) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsPerson); ok {
predicatePasses, err = fn(ctx, v)
@ -572,7 +572,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Place" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Place" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsPlace) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsPlace); ok {
predicatePasses, err = fn(ctx, v)
@ -583,7 +583,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Profile" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Profile" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsProfile) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsProfile); ok {
predicatePasses, err = fn(ctx, v)
@ -594,7 +594,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Question" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Question" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsQuestion) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsQuestion); ok {
predicatePasses, err = fn(ctx, v)
@ -605,7 +605,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Read" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Read" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRead) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsRead); ok {
predicatePasses, err = fn(ctx, v)
@ -616,7 +616,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Reject" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Reject" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsReject) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsReject); ok {
predicatePasses, err = fn(ctx, v)
@ -627,7 +627,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Relationship" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Relationship" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRelationship) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsRelationship); ok {
predicatePasses, err = fn(ctx, v)
@ -638,7 +638,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Remove" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Remove" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsRemove) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsRemove); ok {
predicatePasses, err = fn(ctx, v)
@ -649,7 +649,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Service" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Service" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsService) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsService); ok {
predicatePasses, err = fn(ctx, v)
@ -660,7 +660,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "TentativeAccept" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "TentativeAccept" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeAccept) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok {
predicatePasses, err = fn(ctx, v)
@ -671,7 +671,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "TentativeReject" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "TentativeReject" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTentativeReject) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok {
predicatePasses, err = fn(ctx, v)
@ -682,7 +682,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Tombstone" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Tombstone" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTombstone) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsTombstone); ok {
predicatePasses, err = fn(ctx, v)
@ -693,7 +693,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Travel" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Travel" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsTravel) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsTravel); ok {
predicatePasses, err = fn(ctx, v)
@ -704,7 +704,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Undo" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Undo" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUndo) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsUndo); ok {
predicatePasses, err = fn(ctx, v)
@ -715,7 +715,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Update" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Update" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsUpdate) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsUpdate); ok {
predicatePasses, err = fn(ctx, v)
@ -726,7 +726,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Video" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Video" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsVideo) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsVideo); ok {
predicatePasses, err = fn(ctx, v)
@ -737,7 +737,7 @@ func (this TypePredicatedResolver) Apply(ctx context.Context, o ActivityStreamsI
} else {
return false, ErrPredicateUnmatched
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "View" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "View" {
if fn, ok := this.predicate.(func(context.Context, vocab.ActivityStreamsView) (bool, error)); ok {
if v, ok := o.(vocab.ActivityStreamsView); ok {
predicatePasses, err = fn(ctx, v)

ファイルの表示

@ -149,7 +149,7 @@ func NewTypeResolver(callbacks ...interface{}) (*TypeResolver, error) {
// passed in is not go-fed compatible.
func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error {
for _, i := range this.callbacks {
if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Accept" {
if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Accept" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAccept) error); ok {
if v, ok := o.(vocab.ActivityStreamsAccept); ok {
return fn(ctx, v)
@ -158,7 +158,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Activity" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Activity" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsActivity) error); ok {
if v, ok := o.(vocab.ActivityStreamsActivity); ok {
return fn(ctx, v)
@ -167,7 +167,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Add" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Add" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAdd) error); ok {
if v, ok := o.(vocab.ActivityStreamsAdd); ok {
return fn(ctx, v)
@ -176,7 +176,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Announce" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Announce" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAnnounce) error); ok {
if v, ok := o.(vocab.ActivityStreamsAnnounce); ok {
return fn(ctx, v)
@ -185,7 +185,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Application" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Application" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsApplication) error); ok {
if v, ok := o.(vocab.ActivityStreamsApplication); ok {
return fn(ctx, v)
@ -194,7 +194,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Arrive" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Arrive" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArrive) error); ok {
if v, ok := o.(vocab.ActivityStreamsArrive); ok {
return fn(ctx, v)
@ -203,7 +203,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Article" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Article" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsArticle) error); ok {
if v, ok := o.(vocab.ActivityStreamsArticle); ok {
return fn(ctx, v)
@ -212,7 +212,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Audio" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Audio" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsAudio) error); ok {
if v, ok := o.(vocab.ActivityStreamsAudio); ok {
return fn(ctx, v)
@ -221,7 +221,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Block" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Block" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsBlock) error); ok {
if v, ok := o.(vocab.ActivityStreamsBlock); ok {
return fn(ctx, v)
@ -230,7 +230,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Collection" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Collection" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollection) error); ok {
if v, ok := o.(vocab.ActivityStreamsCollection); ok {
return fn(ctx, v)
@ -239,7 +239,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "CollectionPage" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "CollectionPage" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCollectionPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsCollectionPage); ok {
return fn(ctx, v)
@ -248,7 +248,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Create" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Create" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsCreate) error); ok {
if v, ok := o.(vocab.ActivityStreamsCreate); ok {
return fn(ctx, v)
@ -257,7 +257,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Delete" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Delete" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDelete) error); ok {
if v, ok := o.(vocab.ActivityStreamsDelete); ok {
return fn(ctx, v)
@ -266,7 +266,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Dislike" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Dislike" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDislike) error); ok {
if v, ok := o.(vocab.ActivityStreamsDislike); ok {
return fn(ctx, v)
@ -275,7 +275,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Document" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Document" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsDocument) error); ok {
if v, ok := o.(vocab.ActivityStreamsDocument); ok {
return fn(ctx, v)
@ -284,7 +284,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Event" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Event" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsEvent) error); ok {
if v, ok := o.(vocab.ActivityStreamsEvent); ok {
return fn(ctx, v)
@ -293,7 +293,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Flag" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Flag" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFlag) error); ok {
if v, ok := o.(vocab.ActivityStreamsFlag); ok {
return fn(ctx, v)
@ -302,7 +302,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Follow" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Follow" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsFollow) error); ok {
if v, ok := o.(vocab.ActivityStreamsFollow); ok {
return fn(ctx, v)
@ -311,7 +311,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Group" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Group" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsGroup) error); ok {
if v, ok := o.(vocab.ActivityStreamsGroup); ok {
return fn(ctx, v)
@ -320,7 +320,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Ignore" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Ignore" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIgnore) error); ok {
if v, ok := o.(vocab.ActivityStreamsIgnore); ok {
return fn(ctx, v)
@ -329,7 +329,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Image" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Image" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsImage) error); ok {
if v, ok := o.(vocab.ActivityStreamsImage); ok {
return fn(ctx, v)
@ -338,7 +338,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "IntransitiveActivity" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "IntransitiveActivity" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsIntransitiveActivity) error); ok {
if v, ok := o.(vocab.ActivityStreamsIntransitiveActivity); ok {
return fn(ctx, v)
@ -347,7 +347,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Invite" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Invite" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsInvite) error); ok {
if v, ok := o.(vocab.ActivityStreamsInvite); ok {
return fn(ctx, v)
@ -356,7 +356,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Join" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Join" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsJoin) error); ok {
if v, ok := o.(vocab.ActivityStreamsJoin); ok {
return fn(ctx, v)
@ -365,7 +365,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Leave" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Leave" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLeave) error); ok {
if v, ok := o.(vocab.ActivityStreamsLeave); ok {
return fn(ctx, v)
@ -374,7 +374,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Like" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Like" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLike) error); ok {
if v, ok := o.(vocab.ActivityStreamsLike); ok {
return fn(ctx, v)
@ -383,7 +383,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Link" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Link" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsLink) error); ok {
if v, ok := o.(vocab.ActivityStreamsLink); ok {
return fn(ctx, v)
@ -392,7 +392,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Listen" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Listen" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsListen) error); ok {
if v, ok := o.(vocab.ActivityStreamsListen); ok {
return fn(ctx, v)
@ -401,7 +401,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Mention" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Mention" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMention) error); ok {
if v, ok := o.(vocab.ActivityStreamsMention); ok {
return fn(ctx, v)
@ -410,7 +410,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Move" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Move" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsMove) error); ok {
if v, ok := o.(vocab.ActivityStreamsMove); ok {
return fn(ctx, v)
@ -419,7 +419,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Note" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Note" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsNote) error); ok {
if v, ok := o.(vocab.ActivityStreamsNote); ok {
return fn(ctx, v)
@ -428,7 +428,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Object" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Object" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsObject) error); ok {
if v, ok := o.(vocab.ActivityStreamsObject); ok {
return fn(ctx, v)
@ -437,7 +437,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Offer" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Offer" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOffer) error); ok {
if v, ok := o.(vocab.ActivityStreamsOffer); ok {
return fn(ctx, v)
@ -446,7 +446,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "OrderedCollection" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "OrderedCollection" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollection) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollection); ok {
return fn(ctx, v)
@ -455,7 +455,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "OrderedCollectionPage" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "OrderedCollectionPage" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrderedCollectionPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrderedCollectionPage); ok {
return fn(ctx, v)
@ -464,7 +464,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Organization" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Organization" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsOrganization) error); ok {
if v, ok := o.(vocab.ActivityStreamsOrganization); ok {
return fn(ctx, v)
@ -473,7 +473,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Page" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Page" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPage) error); ok {
if v, ok := o.(vocab.ActivityStreamsPage); ok {
return fn(ctx, v)
@ -482,7 +482,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Person" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Person" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPerson) error); ok {
if v, ok := o.(vocab.ActivityStreamsPerson); ok {
return fn(ctx, v)
@ -491,7 +491,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Place" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Place" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsPlace) error); ok {
if v, ok := o.(vocab.ActivityStreamsPlace); ok {
return fn(ctx, v)
@ -500,7 +500,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Profile" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Profile" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsProfile) error); ok {
if v, ok := o.(vocab.ActivityStreamsProfile); ok {
return fn(ctx, v)
@ -509,7 +509,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Question" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Question" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsQuestion) error); ok {
if v, ok := o.(vocab.ActivityStreamsQuestion); ok {
return fn(ctx, v)
@ -518,7 +518,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Read" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Read" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRead) error); ok {
if v, ok := o.(vocab.ActivityStreamsRead); ok {
return fn(ctx, v)
@ -527,7 +527,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Reject" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Reject" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsReject) error); ok {
if v, ok := o.(vocab.ActivityStreamsReject); ok {
return fn(ctx, v)
@ -536,7 +536,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Relationship" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Relationship" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRelationship) error); ok {
if v, ok := o.(vocab.ActivityStreamsRelationship); ok {
return fn(ctx, v)
@ -545,7 +545,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Remove" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Remove" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsRemove) error); ok {
if v, ok := o.(vocab.ActivityStreamsRemove); ok {
return fn(ctx, v)
@ -554,7 +554,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Service" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Service" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsService) error); ok {
if v, ok := o.(vocab.ActivityStreamsService); ok {
return fn(ctx, v)
@ -563,7 +563,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "TentativeAccept" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "TentativeAccept" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeAccept) error); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeAccept); ok {
return fn(ctx, v)
@ -572,7 +572,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "TentativeReject" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "TentativeReject" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTentativeReject) error); ok {
if v, ok := o.(vocab.ActivityStreamsTentativeReject); ok {
return fn(ctx, v)
@ -581,7 +581,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Tombstone" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Tombstone" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTombstone) error); ok {
if v, ok := o.(vocab.ActivityStreamsTombstone); ok {
return fn(ctx, v)
@ -590,7 +590,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Travel" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Travel" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsTravel) error); ok {
if v, ok := o.(vocab.ActivityStreamsTravel); ok {
return fn(ctx, v)
@ -599,7 +599,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Undo" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Undo" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUndo) error); ok {
if v, ok := o.(vocab.ActivityStreamsUndo); ok {
return fn(ctx, v)
@ -608,7 +608,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Update" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Update" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsUpdate) error); ok {
if v, ok := o.(vocab.ActivityStreamsUpdate); ok {
return fn(ctx, v)
@ -617,7 +617,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "Video" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "Video" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsVideo) error); ok {
if v, ok := o.(vocab.ActivityStreamsVideo); ok {
return fn(ctx, v)
@ -626,7 +626,7 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
return errCannotTypeAssertType
}
}
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetName() == "View" {
} else if o.VocabularyURI() == "https://www.w3.org/TR/activitystreams-vocabulary" && o.GetTypeName() == "View" {
if fn, ok := i.(func(context.Context, vocab.ActivityStreamsView) error); ok {
if v, ok := o.(vocab.ActivityStreamsView); ok {
return fn(ctx, v)

ファイルの表示

@ -92,7 +92,7 @@ type ActivityStreamsAccept struct {
func AcceptIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -104,7 +104,7 @@ func AcceptIsDisjointWith(other vocab.Type) bool {
func AcceptIsExtendedBy(other vocab.Type) bool {
extensions := []string{"TentativeAccept"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -116,7 +116,7 @@ func AcceptIsExtendedBy(other vocab.Type) bool {
func ActivityStreamsAcceptExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -669,8 +669,8 @@ func (this ActivityStreamsAccept) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsAccept) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsAccept) GetTypeName() string {
return "Accept"
}

ファイルの表示

@ -72,7 +72,7 @@ type ActivityStreamsActivity struct {
func ActivityIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -84,7 +84,7 @@ func ActivityIsDisjointWith(other vocab.Type) bool {
func ActivityIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Accept", "Add", "Announce", "Arrive", "Block", "Create", "Delete", "Dislike", "Flag", "Follow", "Ignore", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Offer", "Question", "Read", "Reject", "Remove", "TentativeAccept", "TentativeReject", "Travel", "Undo", "Update", "View"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -96,7 +96,7 @@ func ActivityIsExtendedBy(other vocab.Type) bool {
func ActivityStreamsActivityExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -649,8 +649,8 @@ func (this ActivityStreamsActivity) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsActivity) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsActivity) GetTypeName() string {
return "Activity"
}

ファイルの表示

@ -92,7 +92,7 @@ type ActivityStreamsAdd struct {
func ActivityStreamsAddExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -104,7 +104,7 @@ func ActivityStreamsAddExtends(other vocab.Type) bool {
func AddIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -664,8 +664,8 @@ func (this ActivityStreamsAdd) GetActivityStreamsUrl() vocab.ActivityStreamsUrlP
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsAdd) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsAdd) GetTypeName() string {
return "Add"
}

ファイルの表示

@ -74,7 +74,7 @@ type ActivityStreamsAnnounce struct {
func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -86,7 +86,7 @@ func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
func AnnounceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -646,8 +646,8 @@ func (this ActivityStreamsAnnounce) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsAnnounce) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsAnnounce) GetTypeName() string {
return "Announce"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsApplication struct {
func ActivityStreamsApplicationExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -74,7 +74,7 @@ func ActivityStreamsApplicationExtends(other vocab.Type) bool {
func ApplicationIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -662,8 +662,8 @@ func (this ActivityStreamsApplication) GetActivityStreamsUrl() vocab.ActivityStr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsApplication) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsApplication) GetTypeName() string {
return "Application"
}

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsArrive struct {
func ActivityStreamsArriveExtends(other vocab.Type) bool {
extensions := []string{"Activity", "IntransitiveActivity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -85,7 +85,7 @@ func ActivityStreamsArriveExtends(other vocab.Type) bool {
func ArriveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -632,8 +632,8 @@ func (this ActivityStreamsArrive) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsArrive) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsArrive) GetTypeName() string {
return "Arrive"
}

ファイルの表示

@ -58,7 +58,7 @@ type ActivityStreamsArticle struct {
func ActivityStreamsArticleExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -70,7 +70,7 @@ func ActivityStreamsArticleExtends(other vocab.Type) bool {
func ArticleIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -565,8 +565,8 @@ func (this ActivityStreamsArticle) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsArticle) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsArticle) GetTypeName() string {
return "Article"
}

ファイルの表示

@ -60,7 +60,7 @@ type ActivityStreamsAudio struct {
func ActivityStreamsAudioExtends(other vocab.Type) bool {
extensions := []string{"Document", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -72,7 +72,7 @@ func ActivityStreamsAudioExtends(other vocab.Type) bool {
func AudioIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -567,8 +567,8 @@ func (this ActivityStreamsAudio) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsAudio) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsAudio) GetTypeName() string {
return "Audio"
}

ファイルの表示

@ -65,7 +65,7 @@ type ActivityStreamsBlock struct {
func ActivityStreamsBlockExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Ignore", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -77,7 +77,7 @@ func ActivityStreamsBlockExtends(other vocab.Type) bool {
func BlockIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -637,8 +637,8 @@ func (this ActivityStreamsBlock) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsBlock) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsBlock) GetTypeName() string {
return "Block"
}

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsCollection struct {
func ActivityStreamsCollectionExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -85,7 +85,7 @@ func ActivityStreamsCollectionExtends(other vocab.Type) bool {
func CollectionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -97,7 +97,7 @@ func CollectionIsDisjointWith(other vocab.Type) bool {
func CollectionIsExtendedBy(other vocab.Type) bool {
extensions := []string{"CollectionPage", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -650,8 +650,8 @@ func (this ActivityStreamsCollection) GetActivityStreamsUrl() vocab.ActivityStre
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsCollection) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsCollection) GetTypeName() string {
return "Collection"
}

ファイルの表示

@ -77,7 +77,7 @@ type ActivityStreamsCollectionPage struct {
func ActivityStreamsCollectionPageExtends(other vocab.Type) bool {
extensions := []string{"Collection", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -89,7 +89,7 @@ func ActivityStreamsCollectionPageExtends(other vocab.Type) bool {
func CollectionPageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -101,7 +101,7 @@ func CollectionPageIsDisjointWith(other vocab.Type) bool {
func CollectionPageIsExtendedBy(other vocab.Type) bool {
extensions := []string{"OrderedCollectionPage"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -693,8 +693,8 @@ func (this ActivityStreamsCollectionPage) GetActivityStreamsUrl() vocab.Activity
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsCollectionPage) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsCollectionPage) GetTypeName() string {
return "CollectionPage"
}

ファイルの表示

@ -69,7 +69,7 @@ type ActivityStreamsCreate struct {
func ActivityStreamsCreateExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -81,7 +81,7 @@ func ActivityStreamsCreateExtends(other vocab.Type) bool {
func CreateIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -641,8 +641,8 @@ func (this ActivityStreamsCreate) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsCreate) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsCreate) GetTypeName() string {
return "Create"
}

ファイルの表示

@ -70,7 +70,7 @@ type ActivityStreamsDelete struct {
func ActivityStreamsDeleteExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -82,7 +82,7 @@ func ActivityStreamsDeleteExtends(other vocab.Type) bool {
func DeleteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -642,8 +642,8 @@ func (this ActivityStreamsDelete) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsDelete) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsDelete) GetTypeName() string {
return "Delete"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsDislike struct {
func ActivityStreamsDislikeExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -390,7 +390,7 @@ func DeserializeDislike(m map[string]interface{}, aliasMap map[string]string) (*
func DislikeIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -634,8 +634,8 @@ func (this ActivityStreamsDislike) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsDislike) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsDislike) GetTypeName() string {
return "Dislike"
}

ファイルの表示

@ -56,7 +56,7 @@ type ActivityStreamsDocument struct {
func ActivityStreamsDocumentExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -349,7 +349,7 @@ func DeserializeDocument(m map[string]interface{}, aliasMap map[string]string) (
func DocumentIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -361,7 +361,7 @@ func DocumentIsDisjointWith(other vocab.Type) bool {
func DocumentIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Audio", "Image", "Page", "Video"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -568,8 +568,8 @@ func (this ActivityStreamsDocument) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsDocument) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsDocument) GetTypeName() string {
return "Document"
}

ファイルの表示

@ -57,7 +57,7 @@ type ActivityStreamsEvent struct {
func ActivityStreamsEventExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -350,7 +350,7 @@ func DeserializeEvent(m map[string]interface{}, aliasMap map[string]string) (*Ac
func EventIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -564,8 +564,8 @@ func (this ActivityStreamsEvent) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsEvent) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsEvent) GetTypeName() string {
return "Event"
}

ファイルの表示

@ -67,7 +67,7 @@ type ActivityStreamsFlag struct {
func ActivityStreamsFlagExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -395,7 +395,7 @@ func DeserializeFlag(m map[string]interface{}, aliasMap map[string]string) (*Act
func FlagIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -639,8 +639,8 @@ func (this ActivityStreamsFlag) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsFlag) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsFlag) GetTypeName() string {
return "Flag"
}

ファイルの表示

@ -71,7 +71,7 @@ type ActivityStreamsFollow struct {
func ActivityStreamsFollowExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -399,7 +399,7 @@ func DeserializeFollow(m map[string]interface{}, aliasMap map[string]string) (*A
func FollowIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -643,8 +643,8 @@ func (this ActivityStreamsFollow) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsFollow) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsFollow) GetTypeName() string {
return "Follow"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsGroup struct {
func ActivityStreamsGroupExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -406,7 +406,7 @@ func DeserializeGroup(m map[string]interface{}, aliasMap map[string]string) (*Ac
func GroupIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -662,8 +662,8 @@ func (this ActivityStreamsGroup) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsGroup) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsGroup) GetTypeName() string {
return "Group"
}

ファイルの表示

@ -66,7 +66,7 @@ type ActivityStreamsIgnore struct {
func ActivityStreamsIgnoreExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -394,7 +394,7 @@ func DeserializeIgnore(m map[string]interface{}, aliasMap map[string]string) (*A
func IgnoreIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -406,7 +406,7 @@ func IgnoreIsDisjointWith(other vocab.Type) bool {
func IgnoreIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Block"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -643,8 +643,8 @@ func (this ActivityStreamsIgnore) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsIgnore) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsIgnore) GetTypeName() string {
return "Ignore"
}

ファイルの表示

@ -69,7 +69,7 @@ type ActivityStreamsImage struct {
func ActivityStreamsImageExtends(other vocab.Type) bool {
extensions := []string{"Document", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -376,7 +376,7 @@ func DeserializeImage(m map[string]interface{}, aliasMap map[string]string) (*Ac
func ImageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -602,8 +602,8 @@ func (this ActivityStreamsImage) GetActivityStreamsWidth() vocab.ActivityStreams
return this.ActivityStreamsWidth
}
// GetName returns the name of this type.
func (this ActivityStreamsImage) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsImage) GetTypeName() string {
return "Image"
}

ファイルの表示

@ -69,7 +69,7 @@ type ActivityStreamsIntransitiveActivity struct {
func ActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -390,7 +390,7 @@ func DeserializeIntransitiveActivity(m map[string]interface{}, aliasMap map[stri
func IntransitiveActivityIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -402,7 +402,7 @@ func IntransitiveActivityIsDisjointWith(other vocab.Type) bool {
func IntransitiveActivityIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Arrive", "Question", "Travel"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -633,8 +633,8 @@ func (this ActivityStreamsIntransitiveActivity) GetActivityStreamsUrl() vocab.Ac
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsIntransitiveActivity) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsIntransitiveActivity) GetTypeName() string {
return "IntransitiveActivity"
}

ファイルの表示

@ -79,7 +79,7 @@ type ActivityStreamsInvite struct {
func ActivityStreamsInviteExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object", "Offer"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -407,7 +407,7 @@ func DeserializeInvite(m map[string]interface{}, aliasMap map[string]string) (*A
func InviteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -651,8 +651,8 @@ func (this ActivityStreamsInvite) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsInvite) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsInvite) GetTypeName() string {
return "Invite"
}

ファイルの表示

@ -69,7 +69,7 @@ type ActivityStreamsJoin struct {
func ActivityStreamsJoinExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -397,7 +397,7 @@ func DeserializeJoin(m map[string]interface{}, aliasMap map[string]string) (*Act
func JoinIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -641,8 +641,8 @@ func (this ActivityStreamsJoin) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsJoin) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsJoin) GetTypeName() string {
return "Join"
}

ファイルの表示

@ -83,7 +83,7 @@ type ActivityStreamsLeave struct {
func ActivityStreamsLeaveExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -411,7 +411,7 @@ func DeserializeLeave(m map[string]interface{}, aliasMap map[string]string) (*Ac
func LeaveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -655,8 +655,8 @@ func (this ActivityStreamsLeave) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsLeave) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsLeave) GetTypeName() string {
return "Leave"
}

ファイルの表示

@ -66,7 +66,7 @@ type ActivityStreamsLike struct {
func ActivityStreamsLikeExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -394,7 +394,7 @@ func DeserializeLike(m map[string]interface{}, aliasMap map[string]string) (*Act
func LikeIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -638,8 +638,8 @@ func (this ActivityStreamsLike) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsLike) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsLike) GetTypeName() string {
return "Like"
}

ファイルの表示

@ -190,7 +190,7 @@ func DeserializeLink(m map[string]interface{}, aliasMap map[string]string) (*Act
func LinkIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Event", "Flag", "Follow", "Group", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -202,7 +202,7 @@ func LinkIsDisjointWith(other vocab.Type) bool {
func LinkIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Mention"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -291,8 +291,8 @@ func (this ActivityStreamsLink) GetActivityStreamsWidth() vocab.ActivityStreamsW
return this.ActivityStreamsWidth
}
// GetName returns the name of this type.
func (this ActivityStreamsLink) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsLink) GetTypeName() string {
return "Link"
}

ファイルの表示

@ -65,7 +65,7 @@ type ActivityStreamsListen struct {
func ActivityStreamsListenExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -393,7 +393,7 @@ func DeserializeListen(m map[string]interface{}, aliasMap map[string]string) (*A
func ListenIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -637,8 +637,8 @@ func (this ActivityStreamsListen) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsListen) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsListen) GetTypeName() string {
return "Listen"
}

ファイルの表示

@ -37,7 +37,7 @@ type ActivityStreamsMention struct {
func ActivityStreamsMentionExtends(other vocab.Type) bool {
extensions := []string{"Link"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -188,7 +188,7 @@ func DeserializeMention(m map[string]interface{}, aliasMap map[string]string) (*
func MentionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Event", "Flag", "Follow", "Group", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "Object", "Offer", "OrderedCollection", "OrderedCollectionPage", "OrderedCollectionPage", "Organization", "Page", "Person", "Place", "Profile", "Question", "Read", "Reject", "Relationship", "Remove", "Service", "TentativeAccept", "TentativeReject", "Tombstone", "Travel", "Undo", "Update", "Video", "View"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -284,8 +284,8 @@ func (this ActivityStreamsMention) GetActivityStreamsWidth() vocab.ActivityStrea
return this.ActivityStreamsWidth
}
// GetName returns the name of this type.
func (this ActivityStreamsMention) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsMention) GetTypeName() string {
return "Mention"
}

ファイルの表示

@ -74,7 +74,7 @@ type ActivityStreamsMove struct {
func ActivityStreamsMoveExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -402,7 +402,7 @@ func DeserializeMove(m map[string]interface{}, aliasMap map[string]string) (*Act
func MoveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -646,8 +646,8 @@ func (this ActivityStreamsMove) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsMove) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsMove) GetTypeName() string {
return "Move"
}

ファイルの表示

@ -57,7 +57,7 @@ type ActivityStreamsNote struct {
func ActivityStreamsNoteExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -361,7 +361,7 @@ func NewActivityStreamsNote() *ActivityStreamsNote {
func NoteIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -564,8 +564,8 @@ func (this ActivityStreamsNote) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsNote) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsNote) GetTypeName() string {
return "Note"
}

ファイルの表示

@ -358,7 +358,7 @@ func NewActivityStreamsObject() *ActivityStreamsObject {
func ObjectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -370,7 +370,7 @@ func ObjectIsDisjointWith(other vocab.Type) bool {
func ObjectIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Accept", "Activity", "Add", "Announce", "Application", "Arrive", "Article", "Audio", "Block", "Collection", "CollectionPage", "Create", "Delete", "Dislike", "Document", "Event", "Flag", "Follow", "Group", "Ignore", "Image", "IntransitiveActivity", "Invite", "Join", "Leave", "Like", "Listen", "Move", "Note", "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.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -566,8 +566,8 @@ func (this ActivityStreamsObject) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsObject) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsObject) GetTypeName() string {
return "Object"
}

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsOffer struct {
func ActivityStreamsOfferExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -412,7 +412,7 @@ func NewActivityStreamsOffer() *ActivityStreamsOffer {
func OfferIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -424,7 +424,7 @@ func OfferIsDisjointWith(other vocab.Type) bool {
func OfferIsExtendedBy(other vocab.Type) bool {
extensions := []string{"Invite"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -650,8 +650,8 @@ func (this ActivityStreamsOffer) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsOffer) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsOffer) GetTypeName() string {
return "Offer"
}

ファイルの表示

@ -72,7 +72,7 @@ type ActivityStreamsOrderedCollection struct {
func ActivityStreamsOrderedCollectionExtends(other vocab.Type) bool {
extensions := []string{"Collection", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -411,7 +411,7 @@ func NewActivityStreamsOrderedCollection() *ActivityStreamsOrderedCollection {
func OrderedCollectionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -423,7 +423,7 @@ func OrderedCollectionIsDisjointWith(other vocab.Type) bool {
func OrderedCollectionIsExtendedBy(other vocab.Type) bool {
extensions := []string{"OrderedCollectionPage"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -649,8 +649,8 @@ func (this ActivityStreamsOrderedCollection) GetActivityStreamsUrl() vocab.Activ
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsOrderedCollection) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsOrderedCollection) GetTypeName() string {
return "OrderedCollection"
}

ファイルの表示

@ -78,7 +78,7 @@ type ActivityStreamsOrderedCollectionPage struct {
func ActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool {
extensions := []string{"Collection", "CollectionPage", "Object", "OrderedCollection"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -445,7 +445,7 @@ func NewActivityStreamsOrderedCollectionPage() *ActivityStreamsOrderedCollection
func OrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -702,8 +702,8 @@ func (this ActivityStreamsOrderedCollectionPage) GetActivityStreamsUrl() vocab.A
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsOrderedCollectionPage) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsOrderedCollectionPage) GetTypeName() string {
return "OrderedCollectionPage"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsOrganization struct {
func ActivityStreamsOrganizationExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -417,7 +417,7 @@ func NewActivityStreamsOrganization() *ActivityStreamsOrganization {
func OrganizationIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -662,8 +662,8 @@ func (this ActivityStreamsOrganization) GetActivityStreamsUrl() vocab.ActivitySt
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsOrganization) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsOrganization) GetTypeName() string {
return "Organization"
}

ファイルの表示

@ -56,7 +56,7 @@ type ActivityStreamsPage struct {
func ActivityStreamsPageExtends(other vocab.Type) bool {
extensions := []string{"Document", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -360,7 +360,7 @@ func NewActivityStreamsPage() *ActivityStreamsPage {
func PageIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -563,8 +563,8 @@ func (this ActivityStreamsPage) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsPage) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsPage) GetTypeName() string {
return "Page"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsPerson struct {
func ActivityStreamsPersonExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -417,7 +417,7 @@ func NewActivityStreamsPerson() *ActivityStreamsPerson {
func PersonIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -662,8 +662,8 @@ func (this ActivityStreamsPerson) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsPerson) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsPerson) GetTypeName() string {
return "Person"
}

ファイルの表示

@ -71,7 +71,7 @@ type ActivityStreamsPlace struct {
func ActivityStreamsPlaceExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -410,7 +410,7 @@ func NewActivityStreamsPlace() *ActivityStreamsPlace {
func PlaceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -643,8 +643,8 @@ func (this ActivityStreamsPlace) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsPlace) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsPlace) GetTypeName() string {
return "Place"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsProfile struct {
func ActivityStreamsProfileExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -373,7 +373,7 @@ func NewActivityStreamsProfile() *ActivityStreamsProfile {
func ProfileIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -582,8 +582,8 @@ func (this ActivityStreamsProfile) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsProfile) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsProfile) GetTypeName() string {
return "Profile"
}

ファイルの表示

@ -84,7 +84,7 @@ type ActivityStreamsQuestion struct {
func ActivityStreamsQuestionExtends(other vocab.Type) bool {
extensions := []string{"Activity", "IntransitiveActivity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -437,7 +437,7 @@ func NewActivityStreamsQuestion() *ActivityStreamsQuestion {
func QuestionIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -682,8 +682,8 @@ func (this ActivityStreamsQuestion) GetActivityStreamsUrl() vocab.ActivityStream
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsQuestion) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsQuestion) GetTypeName() string {
return "Question"
}

ファイルの表示

@ -65,7 +65,7 @@ type ActivityStreamsRead struct {
func ActivityStreamsReadExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -404,7 +404,7 @@ func NewActivityStreamsRead() *ActivityStreamsRead {
func ReadIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -637,8 +637,8 @@ func (this ActivityStreamsRead) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsRead) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsRead) GetTypeName() string {
return "Read"
}

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsReject struct {
func ActivityStreamsRejectExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -412,7 +412,7 @@ func NewActivityStreamsReject() *ActivityStreamsReject {
func RejectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -424,7 +424,7 @@ func RejectIsDisjointWith(other vocab.Type) bool {
func RejectIsExtendedBy(other vocab.Type) bool {
extensions := []string{"TentativeReject"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -650,8 +650,8 @@ func (this ActivityStreamsReject) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsReject) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsReject) GetTypeName() string {
return "Reject"
}

ファイルの表示

@ -68,7 +68,7 @@ type ActivityStreamsRelationship struct {
func ActivityStreamsRelationshipExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -386,7 +386,7 @@ func NewActivityStreamsRelationship() *ActivityStreamsRelationship {
func RelationshipIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -601,8 +601,8 @@ func (this ActivityStreamsRelationship) GetActivityStreamsUrl() vocab.ActivitySt
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsRelationship) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsRelationship) GetTypeName() string {
return "Relationship"
}

ファイルの表示

@ -88,7 +88,7 @@ type ActivityStreamsRemove struct {
func ActivityStreamsRemoveExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -427,7 +427,7 @@ func NewActivityStreamsRemove() *ActivityStreamsRemove {
func RemoveIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -660,8 +660,8 @@ func (this ActivityStreamsRemove) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsRemove) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsRemove) GetTypeName() string {
return "Remove"
}

ファイルの表示

@ -62,7 +62,7 @@ type ActivityStreamsService struct {
func ActivityStreamsServiceExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -417,7 +417,7 @@ func NewActivityStreamsService() *ActivityStreamsService {
func ServiceIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -662,8 +662,8 @@ func (this ActivityStreamsService) GetActivityStreamsUrl() vocab.ActivityStreams
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsService) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsService) GetTypeName() string {
return "Service"
}

ファイルの表示

@ -72,7 +72,7 @@ type ActivityStreamsTentativeAccept struct {
func ActivityStreamsTentativeAcceptExtends(other vocab.Type) bool {
extensions := []string{"Accept", "Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -411,7 +411,7 @@ func NewActivityStreamsTentativeAccept() *ActivityStreamsTentativeAccept {
func TentativeAcceptIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -644,8 +644,8 @@ func (this ActivityStreamsTentativeAccept) GetActivityStreamsUrl() vocab.Activit
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsTentativeAccept) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsTentativeAccept) GetTypeName() string {
return "TentativeAccept"
}

ファイルの表示

@ -72,7 +72,7 @@ type ActivityStreamsTentativeReject struct {
func ActivityStreamsTentativeRejectExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object", "Reject"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -411,7 +411,7 @@ func NewActivityStreamsTentativeReject() *ActivityStreamsTentativeReject {
func TentativeRejectIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -644,8 +644,8 @@ func (this ActivityStreamsTentativeReject) GetActivityStreamsUrl() vocab.Activit
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsTentativeReject) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsTentativeReject) GetTypeName() string {
return "TentativeReject"
}

ファイルの表示

@ -76,7 +76,7 @@ type ActivityStreamsTombstone struct {
func ActivityStreamsTombstoneExtends(other vocab.Type) bool {
extensions := []string{"Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -394,7 +394,7 @@ func NewActivityStreamsTombstone() *ActivityStreamsTombstone {
func TombstoneIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -609,8 +609,8 @@ func (this ActivityStreamsTombstone) GetActivityStreamsUrl() vocab.ActivityStrea
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsTombstone) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsTombstone) GetTypeName() string {
return "Tombstone"
}

ファイルの表示

@ -73,7 +73,7 @@ type ActivityStreamsTravel struct {
func ActivityStreamsTravelExtends(other vocab.Type) bool {
extensions := []string{"Activity", "IntransitiveActivity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -405,7 +405,7 @@ func NewActivityStreamsTravel() *ActivityStreamsTravel {
func TravelIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -632,8 +632,8 @@ func (this ActivityStreamsTravel) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsTravel) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsTravel) GetTypeName() string {
return "Travel"
}

ファイルの表示

@ -71,7 +71,7 @@ type ActivityStreamsUndo struct {
func ActivityStreamsUndoExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -410,7 +410,7 @@ func NewActivityStreamsUndo() *ActivityStreamsUndo {
func UndoIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -643,8 +643,8 @@ func (this ActivityStreamsUndo) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsUndo) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsUndo) GetTypeName() string {
return "Undo"
}

ファイルの表示

@ -68,7 +68,7 @@ type ActivityStreamsUpdate struct {
func ActivityStreamsUpdateExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -407,7 +407,7 @@ func NewActivityStreamsUpdate() *ActivityStreamsUpdate {
func UpdateIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -640,8 +640,8 @@ func (this ActivityStreamsUpdate) GetActivityStreamsUrl() vocab.ActivityStreamsU
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsUpdate) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsUpdate) GetTypeName() string {
return "Update"
}

ファイルの表示

@ -57,7 +57,7 @@ type ActivityStreamsVideo struct {
func ActivityStreamsVideoExtends(other vocab.Type) bool {
extensions := []string{"Document", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -361,7 +361,7 @@ func NewActivityStreamsVideo() *ActivityStreamsVideo {
func VideoIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -564,8 +564,8 @@ func (this ActivityStreamsVideo) GetActivityStreamsUrl() vocab.ActivityStreamsUr
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsVideo) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsVideo) GetTypeName() string {
return "Video"
}

ファイルの表示

@ -68,7 +68,7 @@ type ActivityStreamsView struct {
func ActivityStreamsViewExtends(other vocab.Type) bool {
extensions := []string{"Activity", "Object"}
for _, ext := range extensions {
if ext == other.GetName() {
if ext == other.GetTypeName() {
return true
}
}
@ -407,7 +407,7 @@ func NewActivityStreamsView() *ActivityStreamsView {
func ViewIsDisjointWith(other vocab.Type) bool {
disjointWith := []string{"Link", "Mention"}
for _, disjoint := range disjointWith {
if disjoint == other.GetName() {
if disjoint == other.GetTypeName() {
return true
}
}
@ -640,8 +640,8 @@ func (this ActivityStreamsView) GetActivityStreamsUrl() vocab.ActivityStreamsUrl
return this.ActivityStreamsUrl
}
// GetName returns the name of this type.
func (this ActivityStreamsView) GetName() string {
// GetTypeName returns the name of this type.
func (this ActivityStreamsView) GetTypeName() string {
return "View"
}

ファイルの表示

@ -5,8 +5,8 @@ type Type interface {
// GetActivityStreamsId returns the "id" property if it exists, and nil
// otherwise.
GetActivityStreamsId() ActivityStreamsIdProperty
// GetName returns the ActivityStreams type name.
GetName() string
// GetTypeName returns the ActivityStreams type name.
GetTypeName() string
// JSONLDContext returns the JSONLD URIs required in the context string
// for this property and the specific values that are set. The value
// in the map is the alias used to import the property's value or

ファイルの表示

@ -151,8 +151,8 @@ type ActivityStreamsAccept interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Accept
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -131,8 +131,8 @@ type ActivityStreamsActivity interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Activity
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -151,8 +151,8 @@ type ActivityStreamsAdd interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Add type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -133,8 +133,8 @@ type ActivityStreamsAnnounce interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Announce
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -125,8 +125,8 @@ type ActivityStreamsApplication interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Application
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -130,8 +130,8 @@ type ActivityStreamsArrive interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Arrive
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -107,8 +107,8 @@ type ActivityStreamsArticle interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Article
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -109,8 +109,8 @@ type ActivityStreamsAudio interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Audio type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -124,8 +124,8 @@ type ActivityStreamsBlock interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Block type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -132,8 +132,8 @@ type ActivityStreamsCollection interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Collection
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -142,8 +142,8 @@ type ActivityStreamsCollectionPage interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the
// CollectionPage type. Note that this should not be used by app
// developers. It is only used to help determine which implementation

ファイルの表示

@ -128,8 +128,8 @@ type ActivityStreamsCreate interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Create
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -129,8 +129,8 @@ type ActivityStreamsDelete interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Delete
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -121,8 +121,8 @@ type ActivityStreamsDislike interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Dislike
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -105,8 +105,8 @@ type ActivityStreamsDocument interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Document
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -106,8 +106,8 @@ type ActivityStreamsEvent interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Event type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -126,8 +126,8 @@ type ActivityStreamsFlag interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Flag type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -130,8 +130,8 @@ type ActivityStreamsFollow interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Follow
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -125,8 +125,8 @@ type ActivityStreamsGroup interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Group type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -125,8 +125,8 @@ type ActivityStreamsIgnore interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Ignore
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -122,8 +122,8 @@ type ActivityStreamsImage interface {
// GetActivityStreamsWidth returns the "width" property if it exists, and
// nil otherwise.
GetActivityStreamsWidth() ActivityStreamsWidthProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Image type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -126,8 +126,8 @@ type ActivityStreamsIntransitiveActivity interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the
// IntransitiveActivity type. Note that this should not be used by app
// developers. It is only used to help determine which implementation

ファイルの表示

@ -138,8 +138,8 @@ type ActivityStreamsInvite interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Invite
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -128,8 +128,8 @@ type ActivityStreamsJoin interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Join type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -142,8 +142,8 @@ type ActivityStreamsLeave interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Leave type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -125,8 +125,8 @@ type ActivityStreamsLike interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Like type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -53,8 +53,8 @@ type ActivityStreamsLink interface {
// GetActivityStreamsWidth returns the "width" property if it exists, and
// nil otherwise.
GetActivityStreamsWidth() ActivityStreamsWidthProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Link type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -124,8 +124,8 @@ type ActivityStreamsListen interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Listen
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -46,8 +46,8 @@ type ActivityStreamsMention interface {
// GetActivityStreamsWidth returns the "width" property if it exists, and
// nil otherwise.
GetActivityStreamsWidth() ActivityStreamsWidthProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Mention
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -133,8 +133,8 @@ type ActivityStreamsMove interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Move type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -106,8 +106,8 @@ type ActivityStreamsNote interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Note type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -108,8 +108,8 @@ type ActivityStreamsObject interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Object
// type. Note that this should not be used by app developers. It is
// only used to help determine which implementation is LessThan the

ファイルの表示

@ -132,8 +132,8 @@ type ActivityStreamsOffer interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Offer type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

ファイルの表示

@ -131,8 +131,8 @@ type ActivityStreamsOrderedCollection interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the
// OrderedCollection type. Note that this should not be used by app
// developers. It is only used to help determine which implementation

ファイルの表示

@ -145,8 +145,8 @@ type ActivityStreamsOrderedCollectionPage interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the
// OrderedCollectionPage type. Note that this should not be used by
// app developers. It is only used to help determine which

ファイルの表示

@ -125,8 +125,8 @@ type ActivityStreamsOrganization interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the
// Organization type. Note that this should not be used by app
// developers. It is only used to help determine which implementation

ファイルの表示

@ -105,8 +105,8 @@ type ActivityStreamsPage interface {
// GetActivityStreamsUrl returns the "url" property if it exists, and nil
// otherwise.
GetActivityStreamsUrl() ActivityStreamsUrlProperty
// GetName returns the name of this type.
GetName() string
// GetTypeName returns the name of this type.
GetTypeName() string
// GetUnknownProperties returns the unknown properties for the Page type.
// Note that this should not be used by app developers. It is only
// used to help determine which implementation is LessThan the other.

変更されたファイルが多すぎるため、一部のファイルは表示されません さらに表示