mirror of
https://gitea.com/gitea/go-fed-activity.git
synced 2024-06-01 09:46:47 +05:30
Update generated code for tests.
All but 1 of the tests migrated from streams_old passes.
This commit is contained in:
parent
ff02890ddf
commit
ff885a86b3
|
@ -132,120 +132,120 @@ var mgr *Manager
|
|||
// of those interfaces.
|
||||
func init() {
|
||||
mgr = &Manager{}
|
||||
typetravel.SetManager(mgr)
|
||||
typeorderedcollectionpage.SetManager(mgr)
|
||||
propertyduration.SetManager(mgr)
|
||||
propertyendtime.SetManager(mgr)
|
||||
propertyoneof.SetManager(mgr)
|
||||
propertyradius.SetManager(mgr)
|
||||
propertytag.SetManager(mgr)
|
||||
propertylongitude.SetManager(mgr)
|
||||
typearrive.SetManager(mgr)
|
||||
typegroup.SetManager(mgr)
|
||||
propertyinstrument.SetManager(mgr)
|
||||
typedelete.SetManager(mgr)
|
||||
typeorganization.SetManager(mgr)
|
||||
propertylocation.SetManager(mgr)
|
||||
typeprofile.SetManager(mgr)
|
||||
typearticle.SetManager(mgr)
|
||||
typeapplication.SetManager(mgr)
|
||||
propertyhreflang.SetManager(mgr)
|
||||
propertyitems.SetManager(mgr)
|
||||
propertytarget.SetManager(mgr)
|
||||
propertygenerator.SetManager(mgr)
|
||||
typeactivity.SetManager(mgr)
|
||||
propertybto.SetManager(mgr)
|
||||
propertyresult.SetManager(mgr)
|
||||
typeleave.SetManager(mgr)
|
||||
typeimage.SetManager(mgr)
|
||||
typelisten.SetManager(mgr)
|
||||
propertycurrent.SetManager(mgr)
|
||||
propertyheight.SetManager(mgr)
|
||||
propertyinreplyto.SetManager(mgr)
|
||||
typeblock.SetManager(mgr)
|
||||
typecreate.SetManager(mgr)
|
||||
typerelationship.SetManager(mgr)
|
||||
typelike.SetManager(mgr)
|
||||
propertytotalitems.SetManager(mgr)
|
||||
propertysummary.SetManager(mgr)
|
||||
typeplace.SetManager(mgr)
|
||||
typeobject.SetManager(mgr)
|
||||
typecollection.SetManager(mgr)
|
||||
propertyicon.SetManager(mgr)
|
||||
typelink.SetManager(mgr)
|
||||
propertyreplies.SetManager(mgr)
|
||||
propertymediatype.SetManager(mgr)
|
||||
propertyaltitude.SetManager(mgr)
|
||||
typemove.SetManager(mgr)
|
||||
typeperson.SetManager(mgr)
|
||||
propertyupdated.SetManager(mgr)
|
||||
propertynext.SetManager(mgr)
|
||||
typeannounce.SetManager(mgr)
|
||||
typedislike.SetManager(mgr)
|
||||
typeevent.SetManager(mgr)
|
||||
typeread.SetManager(mgr)
|
||||
propertybcc.SetManager(mgr)
|
||||
typeinvite.SetManager(mgr)
|
||||
propertylast.SetManager(mgr)
|
||||
propertyimage.SetManager(mgr)
|
||||
propertyactor.SetManager(mgr)
|
||||
typeflag.SetManager(mgr)
|
||||
propertyformertype.SetManager(mgr)
|
||||
typeintransitiveactivity.SetManager(mgr)
|
||||
typevideo.SetManager(mgr)
|
||||
propertypartof.SetManager(mgr)
|
||||
propertypublished.SetManager(mgr)
|
||||
propertyanyof.SetManager(mgr)
|
||||
typequestion.SetManager(mgr)
|
||||
typeremove.SetManager(mgr)
|
||||
typeadd.SetManager(mgr)
|
||||
propertyorigin.SetManager(mgr)
|
||||
typenote.SetManager(mgr)
|
||||
typeoffer.SetManager(mgr)
|
||||
typeignore.SetManager(mgr)
|
||||
typeundo.SetManager(mgr)
|
||||
typetentativereject.SetManager(mgr)
|
||||
typedocument.SetManager(mgr)
|
||||
typepage.SetManager(mgr)
|
||||
propertyunits.SetManager(mgr)
|
||||
propertyaccuracy.SetManager(mgr)
|
||||
propertyprev.SetManager(mgr)
|
||||
typeaccept.SetManager(mgr)
|
||||
typetombstone.SetManager(mgr)
|
||||
propertyattributedto.SetManager(mgr)
|
||||
propertyrel.SetManager(mgr)
|
||||
propertycontent.SetManager(mgr)
|
||||
typefollow.SetManager(mgr)
|
||||
propertylatitude.SetManager(mgr)
|
||||
propertydescribes.SetManager(mgr)
|
||||
propertyid.SetManager(mgr)
|
||||
propertycontext.SetManager(mgr)
|
||||
typemention.SetManager(mgr)
|
||||
propertysubject.SetManager(mgr)
|
||||
propertydeleted.SetManager(mgr)
|
||||
propertywidth.SetManager(mgr)
|
||||
propertyattachment.SetManager(mgr)
|
||||
propertyaudience.SetManager(mgr)
|
||||
typeupdate.SetManager(mgr)
|
||||
propertyfirst.SetManager(mgr)
|
||||
propertystartindex.SetManager(mgr)
|
||||
propertycc.SetManager(mgr)
|
||||
propertyobject.SetManager(mgr)
|
||||
typecollectionpage.SetManager(mgr)
|
||||
propertyurl.SetManager(mgr)
|
||||
propertyname.SetManager(mgr)
|
||||
typeservice.SetManager(mgr)
|
||||
typeaudio.SetManager(mgr)
|
||||
typeorderedcollection.SetManager(mgr)
|
||||
propertyhref.SetManager(mgr)
|
||||
propertystarttime.SetManager(mgr)
|
||||
propertyto.SetManager(mgr)
|
||||
propertypreview.SetManager(mgr)
|
||||
typetentativeaccept.SetManager(mgr)
|
||||
typeview.SetManager(mgr)
|
||||
propertytype.SetManager(mgr)
|
||||
typejoin.SetManager(mgr)
|
||||
propertyclosed.SetManager(mgr)
|
||||
propertyrelationship.SetManager(mgr)
|
||||
typeignore.SetManager(mgr)
|
||||
typereject.SetManager(mgr)
|
||||
propertybto.SetManager(mgr)
|
||||
typeblock.SetManager(mgr)
|
||||
propertyname.SetManager(mgr)
|
||||
propertylast.SetManager(mgr)
|
||||
propertystartindex.SetManager(mgr)
|
||||
typeorderedcollection.SetManager(mgr)
|
||||
typeflag.SetManager(mgr)
|
||||
typeleave.SetManager(mgr)
|
||||
typemove.SetManager(mgr)
|
||||
typeservice.SetManager(mgr)
|
||||
typevideo.SetManager(mgr)
|
||||
propertycontext.SetManager(mgr)
|
||||
typeapplication.SetManager(mgr)
|
||||
typeorderedcollectionpage.SetManager(mgr)
|
||||
typetentativeaccept.SetManager(mgr)
|
||||
propertyorigin.SetManager(mgr)
|
||||
typeintransitiveactivity.SetManager(mgr)
|
||||
typeview.SetManager(mgr)
|
||||
propertyheight.SetManager(mgr)
|
||||
propertyprev.SetManager(mgr)
|
||||
typearticle.SetManager(mgr)
|
||||
typepage.SetManager(mgr)
|
||||
typetombstone.SetManager(mgr)
|
||||
typeundo.SetManager(mgr)
|
||||
propertyitems.SetManager(mgr)
|
||||
propertyurl.SetManager(mgr)
|
||||
propertywidth.SetManager(mgr)
|
||||
typejoin.SetManager(mgr)
|
||||
typeorganization.SetManager(mgr)
|
||||
typeactivity.SetManager(mgr)
|
||||
typeupdate.SetManager(mgr)
|
||||
propertyaltitude.SetManager(mgr)
|
||||
propertyattachment.SetManager(mgr)
|
||||
propertyinreplyto.SetManager(mgr)
|
||||
typeperson.SetManager(mgr)
|
||||
typeevent.SetManager(mgr)
|
||||
typeprofile.SetManager(mgr)
|
||||
propertylocation.SetManager(mgr)
|
||||
typeaudio.SetManager(mgr)
|
||||
propertyicon.SetManager(mgr)
|
||||
propertyreplies.SetManager(mgr)
|
||||
typedislike.SetManager(mgr)
|
||||
propertydescribes.SetManager(mgr)
|
||||
propertyduration.SetManager(mgr)
|
||||
propertylatitude.SetManager(mgr)
|
||||
propertypublished.SetManager(mgr)
|
||||
propertytag.SetManager(mgr)
|
||||
propertybcc.SetManager(mgr)
|
||||
typeplace.SetManager(mgr)
|
||||
propertyattributedto.SetManager(mgr)
|
||||
propertyhreflang.SetManager(mgr)
|
||||
propertyradius.SetManager(mgr)
|
||||
typeannounce.SetManager(mgr)
|
||||
typenote.SetManager(mgr)
|
||||
propertytype.SetManager(mgr)
|
||||
typefollow.SetManager(mgr)
|
||||
typeremove.SetManager(mgr)
|
||||
typetravel.SetManager(mgr)
|
||||
propertyformertype.SetManager(mgr)
|
||||
propertymediatype.SetManager(mgr)
|
||||
typelink.SetManager(mgr)
|
||||
propertycontent.SetManager(mgr)
|
||||
propertydeleted.SetManager(mgr)
|
||||
propertysummary.SetManager(mgr)
|
||||
typedocument.SetManager(mgr)
|
||||
propertycurrent.SetManager(mgr)
|
||||
propertycc.SetManager(mgr)
|
||||
typetentativereject.SetManager(mgr)
|
||||
propertyimage.SetManager(mgr)
|
||||
typelike.SetManager(mgr)
|
||||
typeinvite.SetManager(mgr)
|
||||
typeobject.SetManager(mgr)
|
||||
propertyhref.SetManager(mgr)
|
||||
typegroup.SetManager(mgr)
|
||||
propertyclosed.SetManager(mgr)
|
||||
propertyendtime.SetManager(mgr)
|
||||
propertyid.SetManager(mgr)
|
||||
propertyoneof.SetManager(mgr)
|
||||
typecreate.SetManager(mgr)
|
||||
typeoffer.SetManager(mgr)
|
||||
typearrive.SetManager(mgr)
|
||||
propertyfirst.SetManager(mgr)
|
||||
propertyinstrument.SetManager(mgr)
|
||||
propertynext.SetManager(mgr)
|
||||
propertyupdated.SetManager(mgr)
|
||||
propertyaccuracy.SetManager(mgr)
|
||||
typemention.SetManager(mgr)
|
||||
typequestion.SetManager(mgr)
|
||||
typecollection.SetManager(mgr)
|
||||
typeread.SetManager(mgr)
|
||||
propertystarttime.SetManager(mgr)
|
||||
propertysubject.SetManager(mgr)
|
||||
propertyunits.SetManager(mgr)
|
||||
typelisten.SetManager(mgr)
|
||||
propertyactor.SetManager(mgr)
|
||||
propertyanyof.SetManager(mgr)
|
||||
propertygenerator.SetManager(mgr)
|
||||
propertypartof.SetManager(mgr)
|
||||
typedelete.SetManager(mgr)
|
||||
propertytarget.SetManager(mgr)
|
||||
propertyto.SetManager(mgr)
|
||||
propertyobject.SetManager(mgr)
|
||||
propertyresult.SetManager(mgr)
|
||||
propertyaudience.SetManager(mgr)
|
||||
propertyrel.SetManager(mgr)
|
||||
propertyrelationship.SetManager(mgr)
|
||||
typeimage.SetManager(mgr)
|
||||
propertypreview.SetManager(mgr)
|
||||
propertytotalitems.SetManager(mgr)
|
||||
typeaccept.SetManager(mgr)
|
||||
}
|
||||
|
|
|
@ -29,114 +29,114 @@ type InterfacePredicatedResolver struct {
|
|||
func NewInterfacePredicatedResolver(delegate Resolver, predicate interface{}) (*InterfacePredicatedResolver, error) {
|
||||
// The predicate must satisfy one known predicate function signature, or else we will generate a runtime error instead of silently fail.
|
||||
switch predicate.(type) {
|
||||
case func(context.Context, vocab.InviteInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.BlockInterface) (bool, error):
|
||||
case func(context.Context, vocab.AcceptInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ActivityInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ArticleInterface) (bool, error):
|
||||
case func(context.Context, vocab.AddInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ArriveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.CreateInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.AddInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) (bool, error):
|
||||
case func(context.Context, vocab.ArticleInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.AudioInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.JoinInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.IgnoreInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.GroupInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.FlagInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.DislikeInterface) (bool, error):
|
||||
case func(context.Context, vocab.BlockInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.CollectionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.CollectionPageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.EventInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ImageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) (bool, error):
|
||||
case func(context.Context, vocab.CreateInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.DeleteInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.FollowInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) (bool, error):
|
||||
case func(context.Context, vocab.DislikeInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.DocumentInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) (bool, error):
|
||||
case func(context.Context, vocab.EventInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) (bool, error):
|
||||
case func(context.Context, vocab.FlagInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) (bool, error):
|
||||
case func(context.Context, vocab.FollowInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) (bool, error):
|
||||
case func(context.Context, vocab.GroupInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.AcceptInterface) (bool, error):
|
||||
case func(context.Context, vocab.IgnoreInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) (bool, error):
|
||||
case func(context.Context, vocab.ImageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.IntransitiveActivityInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) (bool, error):
|
||||
case func(context.Context, vocab.InviteInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) (bool, error):
|
||||
case func(context.Context, vocab.JoinInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.NoteInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) (bool, error):
|
||||
// Do nothing, this predicate has a correct signature.
|
||||
default:
|
||||
return nil, errors.New("the predicate function is of the wrong signature and would never be called")
|
||||
}
|
||||
|
@ -160,14 +160,8 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
var predicatePasses bool
|
||||
var err error
|
||||
switch fn := this.predicate.(type) {
|
||||
case func(context.Context, vocab.InviteInterface) (bool, error):
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.BlockInterface) (bool, error):
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
case func(context.Context, vocab.AcceptInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -178,8 +172,20 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ArticleInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
case func(context.Context, vocab.AddInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.AnnounceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ApplicationInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -190,68 +196,8 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OfferInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.CreateInterface) (bool, error):
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.AddInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.MentionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LeaveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LinkInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ObjectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ViewInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PlaceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
case func(context.Context, vocab.ArticleInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -262,44 +208,8 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.JoinInterface) (bool, error):
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.IgnoreInterface) (bool, error):
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.VideoInterface) (bool, error):
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.GroupInterface) (bool, error):
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.FlagInterface) (bool, error):
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.UndoInterface) (bool, error):
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.DislikeInterface) (bool, error):
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
case func(context.Context, vocab.BlockInterface) (bool, error):
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -316,38 +226,8 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ApplicationInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.EventInterface) (bool, error):
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ImageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PersonInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ReadInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
case func(context.Context, vocab.CreateInterface) (bool, error):
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -358,14 +238,8 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.FollowInterface) (bool, error):
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TentativeRejectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
case func(context.Context, vocab.DislikeInterface) (bool, error):
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -376,86 +250,38 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RelationshipInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
case func(context.Context, vocab.EventInterface) (bool, error):
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
case func(context.Context, vocab.FlagInterface) (bool, error):
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ListenInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
case func(context.Context, vocab.FollowInterface) (bool, error):
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RejectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
case func(context.Context, vocab.GroupInterface) (bool, error):
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.AcceptInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
case func(context.Context, vocab.IgnoreInterface) (bool, error):
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LikeInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrganizationInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TombstoneInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.UpdateInterface) (bool, error):
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ProfileInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.MoveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.QuestionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ServiceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RemoveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
case func(context.Context, vocab.ImageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -466,14 +292,50 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TravelInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
case func(context.Context, vocab.InviteInterface) (bool, error):
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.AnnounceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
case func(context.Context, vocab.JoinInterface) (bool, error):
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LeaveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LikeInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.LinkInterface) (bool, error):
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ListenInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.MentionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.MoveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
|
@ -484,6 +346,144 @@ func (this InterfacePredicatedResolver) Apply(ctx context.Context, o ActivityStr
|
|||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ObjectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OfferInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.OrganizationInterface) (bool, error):
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PageInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PersonInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.PlaceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ProfileInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.QuestionInterface) (bool, error):
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ReadInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RejectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RelationshipInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.RemoveInterface) (bool, error):
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ServiceInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TentativeRejectInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TombstoneInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.TravelInterface) (bool, error):
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.UndoInterface) (bool, error):
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.UpdateInterface) (bool, error):
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.VideoInterface) (bool, error):
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
case func(context.Context, vocab.ViewInterface) (bool, error):
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
predicatePasses, err = fn(ctx, v)
|
||||
} else {
|
||||
return false, ErrPredicateUnmatched
|
||||
}
|
||||
default:
|
||||
// The constructor should guard against this error. If it is encountered, then there is a bug in the code generator.
|
||||
|
||||
|
|
|
@ -27,114 +27,114 @@ func NewInterfaceResolver(callbacks []interface{}) (*InterfaceResolver, error) {
|
|||
for _, cb := range callbacks {
|
||||
// Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail.
|
||||
switch cb.(type) {
|
||||
case func(context.Context, vocab.InviteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.BlockInterface) error:
|
||||
case func(context.Context, vocab.AcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ArticleInterface) error:
|
||||
case func(context.Context, vocab.AddInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ArriveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CreateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AddInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) error:
|
||||
case func(context.Context, vocab.ArticleInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AudioInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.JoinInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.IgnoreInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GroupInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.FlagInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DislikeInterface) error:
|
||||
case func(context.Context, vocab.BlockInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.EventInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ImageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) error:
|
||||
case func(context.Context, vocab.CreateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DeleteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.FollowInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) error:
|
||||
case func(context.Context, vocab.DislikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DocumentInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) error:
|
||||
case func(context.Context, vocab.EventInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) error:
|
||||
case func(context.Context, vocab.FlagInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) error:
|
||||
case func(context.Context, vocab.FollowInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) error:
|
||||
case func(context.Context, vocab.GroupInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AcceptInterface) error:
|
||||
case func(context.Context, vocab.IgnoreInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) error:
|
||||
case func(context.Context, vocab.ImageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.IntransitiveActivityInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) error:
|
||||
case func(context.Context, vocab.InviteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) error:
|
||||
case func(context.Context, vocab.JoinInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.NoteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
default:
|
||||
return nil, errors.New("a callback function is of the wrong signature and would never be called")
|
||||
}
|
||||
|
@ -153,14 +153,8 @@ func NewInterfaceResolver(callbacks []interface{}) (*InterfaceResolver, error) {
|
|||
// is not go-fed compatible.
|
||||
func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error {
|
||||
for _, i := range this.callbacks {
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.InviteInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.BlockInterface) error); ok {
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AcceptInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -171,8 +165,20 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ArticleInterface) error); ok {
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AddInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AnnounceInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ApplicationInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -183,68 +189,8 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OfferInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.CreateInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AddInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.MentionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeAcceptInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LeaveInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LinkInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ObjectInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ViewInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionPageInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PlaceInterface) error); ok {
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ArticleInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -255,44 +201,8 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.JoinInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.IgnoreInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.VideoInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.GroupInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.FlagInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.UndoInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.DislikeInterface) error); ok {
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.BlockInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -309,38 +219,8 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ApplicationInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.EventInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ImageInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PersonInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ReadInterface) error); ok {
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.CreateInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -351,14 +231,8 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.FollowInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeRejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.DislikeInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -369,86 +243,38 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RelationshipInterface) error); ok {
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.EventInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PageInterface) error); ok {
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.FlagInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ListenInterface) error); ok {
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.FollowInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.GroupInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AcceptInterface) error); ok {
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.IgnoreInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LikeInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrganizationInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TombstoneInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.UpdateInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ProfileInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.MoveInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.QuestionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ServiceInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RemoveInterface) error); ok {
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ImageInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -459,14 +285,50 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TravelInterface) error); ok {
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.InviteInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.AnnounceInterface) error); ok {
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.JoinInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LeaveInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LikeInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.LinkInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ListenInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.MentionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.MoveInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
|
@ -477,6 +339,144 @@ func (this InterfaceResolver) Resolve(ctx context.Context, o ActivityStreamsInte
|
|||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ObjectInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OfferInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionPageInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.OrganizationInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PageInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PersonInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.PlaceInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ProfileInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.QuestionInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ReadInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RejectInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RelationshipInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.RemoveInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ServiceInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeAcceptInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeRejectInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TombstoneInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.TravelInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.UndoInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.UpdateInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.VideoInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
if fn, ok := i.(func(context.Context, vocab.ViewInterface) error); ok {
|
||||
return fn(ctx, v)
|
||||
}
|
||||
// Else: this callback function doesn't support this duck-typed interface.
|
||||
}
|
||||
|
||||
}
|
||||
return ErrNoCallbackMatch
|
||||
|
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -58,46 +58,46 @@ import (
|
|||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the
|
||||
// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool {
|
||||
return typelink.LinkIsDisjointWith(other)
|
||||
func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool {
|
||||
return typeaccept.AcceptIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool {
|
||||
return typeobject.ObjectIsDisjointWith(other)
|
||||
// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool {
|
||||
return typeactivity.ActivityIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the
|
||||
// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool {
|
||||
return typeview.ViewIsDisjointWith(other)
|
||||
func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool {
|
||||
return typeadd.AddIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if
|
||||
// OrderedCollectionPage is disjoint with the other's type.
|
||||
func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other)
|
||||
// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeplace.PlaceIsDisjointWith(other)
|
||||
// ActivityStreamsApplicationIsDisjointWith returns true if Application is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the
|
||||
// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool {
|
||||
return typegroup.GroupIsDisjointWith(other)
|
||||
func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool {
|
||||
return typearrive.ArriveIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool {
|
||||
return typeflag.FlagIsDisjointWith(other)
|
||||
// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool {
|
||||
return typearticle.ArticleIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAudioIsDisjointWith returns true if Audio is disjoint with the
|
||||
|
@ -106,22 +106,10 @@ func ActivityStreamsAudioIsDisjointWith(other vocab.Type) bool {
|
|||
return typeaudio.AudioIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the
|
||||
// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool {
|
||||
return typejoin.JoinIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool {
|
||||
return typeignore.IgnoreIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool {
|
||||
return typevideo.VideoIsDisjointWith(other)
|
||||
func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool {
|
||||
return typeblock.BlockIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCollectionIsDisjointWith returns true if Collection is disjoint
|
||||
|
@ -136,46 +124,10 @@ func ActivityStreamsCollectionPageIsDisjointWith(other vocab.Type) bool {
|
|||
return typecollectionpage.CollectionPageIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsApplicationIsDisjointWith returns true if Application is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsApplicationIsDisjointWith(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the
|
||||
// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool {
|
||||
return typeevent.EventIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool {
|
||||
return typeundo.UndoIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool {
|
||||
return typedislike.DislikeIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool {
|
||||
return typeperson.PersonIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionIsDisjointWith returns true if
|
||||
// OrderedCollection is disjoint with the other's type.
|
||||
func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool {
|
||||
return typeread.ReadIsDisjointWith(other)
|
||||
func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool {
|
||||
return typecreate.CreateIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDeleteIsDisjointWith returns true if Delete is disjoint with the
|
||||
|
@ -184,22 +136,10 @@ func ActivityStreamsDeleteIsDisjointWith(other vocab.Type) bool {
|
|||
return typedelete.DeleteIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool {
|
||||
return typeimage.ImageIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool {
|
||||
return typefollow.FollowIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectIsDisjointWith(other)
|
||||
// ActivityStreamsDislikeIsDisjointWith returns true if Dislike is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsDislikeIsDisjointWith(other vocab.Type) bool {
|
||||
return typedislike.DislikeIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDocumentIsDisjointWith returns true if Document is disjoint with
|
||||
|
@ -208,88 +148,40 @@ func ActivityStreamsDocumentIsDisjointWith(other vocab.Type) bool {
|
|||
return typedocument.DocumentIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the
|
||||
// ActivityStreamsEventIsDisjointWith returns true if Event is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool {
|
||||
return typepage.PageIsDisjointWith(other)
|
||||
func ActivityStreamsEventIsDisjointWith(other vocab.Type) bool {
|
||||
return typeevent.EventIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the
|
||||
// ActivityStreamsFlagIsDisjointWith returns true if Flag is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool {
|
||||
return typereject.RejectIsDisjointWith(other)
|
||||
func ActivityStreamsFlagIsDisjointWith(other vocab.Type) bool {
|
||||
return typeflag.FlagIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAcceptIsDisjointWith returns true if Accept is disjoint with the
|
||||
// ActivityStreamsFollowIsDisjointWith returns true if Follow is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsAcceptIsDisjointWith(other vocab.Type) bool {
|
||||
return typeaccept.AcceptIsDisjointWith(other)
|
||||
func ActivityStreamsFollowIsDisjointWith(other vocab.Type) bool {
|
||||
return typefollow.FollowIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the
|
||||
// ActivityStreamsGroupIsDisjointWith returns true if Group is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool {
|
||||
return typelisten.ListenIsDisjointWith(other)
|
||||
func ActivityStreamsGroupIsDisjointWith(other vocab.Type) bool {
|
||||
return typegroup.GroupIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the
|
||||
// ActivityStreamsIgnoreIsDisjointWith returns true if Ignore is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool {
|
||||
return typelike.LikeIsDisjointWith(other)
|
||||
func ActivityStreamsIgnoreIsDisjointWith(other vocab.Type) bool {
|
||||
return typeignore.IgnoreIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint
|
||||
// with the other's type.
|
||||
func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the
|
||||
// ActivityStreamsImageIsDisjointWith returns true if Image is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool {
|
||||
return typeupdate.UpdateIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool {
|
||||
return typeprofile.ProfileIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool {
|
||||
return typemove.MoveIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool {
|
||||
return typequestion.QuestionIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeservice.ServiceIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool {
|
||||
return typeremove.RemoveIsDisjointWith(other)
|
||||
func ActivityStreamsImageIsDisjointWith(other vocab.Type) bool {
|
||||
return typeimage.ImageIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIntransitiveActivityIsDisjointWith returns true if
|
||||
|
@ -298,52 +190,40 @@ func ActivityStreamsIntransitiveActivityIsDisjointWith(other vocab.Type) bool {
|
|||
return typeintransitiveactivity.IntransitiveActivityIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool {
|
||||
return typetravel.TravelIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAnnounceIsDisjointWith returns true if Announce is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsAnnounceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool {
|
||||
return typenote.NoteIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsInviteIsDisjointWith returns true if Invite is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsInviteIsDisjointWith(other vocab.Type) bool {
|
||||
return typeinvite.InviteIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsBlockIsDisjointWith returns true if Block is disjoint with the
|
||||
// ActivityStreamsJoinIsDisjointWith returns true if Join is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsBlockIsDisjointWith(other vocab.Type) bool {
|
||||
return typeblock.BlockIsDisjointWith(other)
|
||||
func ActivityStreamsJoinIsDisjointWith(other vocab.Type) bool {
|
||||
return typejoin.JoinIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsActivityIsDisjointWith returns true if Activity is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsActivityIsDisjointWith(other vocab.Type) bool {
|
||||
return typeactivity.ActivityIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArticleIsDisjointWith returns true if Article is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsArticleIsDisjointWith(other vocab.Type) bool {
|
||||
return typearticle.ArticleIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArriveIsDisjointWith returns true if Arrive is disjoint with the
|
||||
// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsArriveIsDisjointWith(other vocab.Type) bool {
|
||||
return typearrive.ArriveIsDisjointWith(other)
|
||||
func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool {
|
||||
return typeleave.LeaveIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLikeIsDisjointWith returns true if Like is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsLikeIsDisjointWith(other vocab.Type) bool {
|
||||
return typelike.LikeIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLinkIsDisjointWith returns true if Link is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsLinkIsDisjointWith(other vocab.Type) bool {
|
||||
return typelink.LinkIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenIsDisjointWith returns true if Listen is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsListenIsDisjointWith(other vocab.Type) bool {
|
||||
return typelisten.ListenIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMentionIsDisjointWith returns true if Mention is disjoint with
|
||||
|
@ -352,10 +232,22 @@ func ActivityStreamsMentionIsDisjointWith(other vocab.Type) bool {
|
|||
return typemention.MentionIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptIsDisjointWith(other)
|
||||
// ActivityStreamsMoveIsDisjointWith returns true if Move is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsMoveIsDisjointWith(other vocab.Type) bool {
|
||||
return typemove.MoveIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteIsDisjointWith returns true if Note is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsNoteIsDisjointWith(other vocab.Type) bool {
|
||||
return typenote.NoteIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectIsDisjointWith returns true if Object is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsObjectIsDisjointWith(other vocab.Type) bool {
|
||||
return typeobject.ObjectIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOfferIsDisjointWith returns true if Offer is disjoint with the
|
||||
|
@ -364,20 +256,128 @@ func ActivityStreamsOfferIsDisjointWith(other vocab.Type) bool {
|
|||
return typeoffer.OfferIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCreateIsDisjointWith returns true if Create is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsCreateIsDisjointWith(other vocab.Type) bool {
|
||||
return typecreate.CreateIsDisjointWith(other)
|
||||
// ActivityStreamsOrderedCollectionIsDisjointWith returns true if
|
||||
// OrderedCollection is disjoint with the other's type.
|
||||
func ActivityStreamsOrderedCollectionIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAddIsDisjointWith returns true if Add is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsAddIsDisjointWith(other vocab.Type) bool {
|
||||
return typeadd.AddIsDisjointWith(other)
|
||||
// ActivityStreamsOrderedCollectionPageIsDisjointWith returns true if
|
||||
// OrderedCollectionPage is disjoint with the other's type.
|
||||
func ActivityStreamsOrderedCollectionPageIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLeaveIsDisjointWith returns true if Leave is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsLeaveIsDisjointWith(other vocab.Type) bool {
|
||||
return typeleave.LeaveIsDisjointWith(other)
|
||||
// ActivityStreamsOrganizationIsDisjointWith returns true if Organization is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsOrganizationIsDisjointWith(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageIsDisjointWith returns true if Page is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPageIsDisjointWith(other vocab.Type) bool {
|
||||
return typepage.PageIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonIsDisjointWith returns true if Person is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPersonIsDisjointWith(other vocab.Type) bool {
|
||||
return typeperson.PersonIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPlaceIsDisjointWith returns true if Place is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsPlaceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeplace.PlaceIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsProfileIsDisjointWith returns true if Profile is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsProfileIsDisjointWith(other vocab.Type) bool {
|
||||
return typeprofile.ProfileIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionIsDisjointWith returns true if Question is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsQuestionIsDisjointWith(other vocab.Type) bool {
|
||||
return typequestion.QuestionIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadIsDisjointWith returns true if Read is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsReadIsDisjointWith(other vocab.Type) bool {
|
||||
return typeread.ReadIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectIsDisjointWith returns true if Reject is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsRejectIsDisjointWith(other vocab.Type) bool {
|
||||
return typereject.RejectIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipIsDisjointWith returns true if Relationship is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsRelationshipIsDisjointWith(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveIsDisjointWith returns true if Remove is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsRemoveIsDisjointWith(other vocab.Type) bool {
|
||||
return typeremove.RemoveIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceIsDisjointWith returns true if Service is disjoint with
|
||||
// the other's type.
|
||||
func ActivityStreamsServiceIsDisjointWith(other vocab.Type) bool {
|
||||
return typeservice.ServiceIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptIsDisjointWith returns true if TentativeAccept is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsTentativeAcceptIsDisjointWith(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectIsDisjointWith returns true if TentativeReject is
|
||||
// disjoint with the other's type.
|
||||
func ActivityStreamsTentativeRejectIsDisjointWith(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneIsDisjointWith returns true if Tombstone is disjoint
|
||||
// with the other's type.
|
||||
func ActivityStreamsTombstoneIsDisjointWith(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelIsDisjointWith returns true if Travel is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsTravelIsDisjointWith(other vocab.Type) bool {
|
||||
return typetravel.TravelIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoIsDisjointWith returns true if Undo is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsUndoIsDisjointWith(other vocab.Type) bool {
|
||||
return typeundo.UndoIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateIsDisjointWith returns true if Update is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsUpdateIsDisjointWith(other vocab.Type) bool {
|
||||
return typeupdate.UpdateIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoIsDisjointWith returns true if Video is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsVideoIsDisjointWith(other vocab.Type) bool {
|
||||
return typevideo.VideoIsDisjointWith(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewIsDisjointWith returns true if View is disjoint with the
|
||||
// other's type.
|
||||
func ActivityStreamsViewIsDisjointWith(other vocab.Type) bool {
|
||||
return typeview.ViewIsDisjointWith(other)
|
||||
}
|
||||
|
|
|
@ -58,46 +58,46 @@ import (
|
|||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from
|
||||
// Link.
|
||||
func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool {
|
||||
return typelink.LinkIsExtendedBy(other)
|
||||
// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from
|
||||
// Accept.
|
||||
func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool {
|
||||
return typeaccept.AcceptIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from
|
||||
// Object.
|
||||
func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool {
|
||||
return typeobject.ObjectIsExtendedBy(other)
|
||||
// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends
|
||||
// from Activity.
|
||||
func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool {
|
||||
return typeactivity.ActivityIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from
|
||||
// View.
|
||||
func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool {
|
||||
return typeview.ViewIsExtendedBy(other)
|
||||
// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from
|
||||
// Add.
|
||||
func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool {
|
||||
return typeadd.AddIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's
|
||||
// type extends from OrderedCollectionPage.
|
||||
func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other)
|
||||
// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends
|
||||
// from Announce.
|
||||
func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from
|
||||
// Place.
|
||||
func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeplace.PlaceIsExtendedBy(other)
|
||||
// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends
|
||||
// from Application.
|
||||
func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from
|
||||
// Group.
|
||||
func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool {
|
||||
return typegroup.GroupIsExtendedBy(other)
|
||||
// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from
|
||||
// Arrive.
|
||||
func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool {
|
||||
return typearrive.ArriveIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from
|
||||
// Flag.
|
||||
func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool {
|
||||
return typeflag.FlagIsExtendedBy(other)
|
||||
// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends
|
||||
// from Article.
|
||||
func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool {
|
||||
return typearticle.ArticleIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAudioIsExtendedBy returns true if the other's type extends from
|
||||
|
@ -106,22 +106,10 @@ func ActivityStreamsAudioIsExtendedBy(other vocab.Type) bool {
|
|||
return typeaudio.AudioIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from
|
||||
// Join.
|
||||
func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool {
|
||||
return typejoin.JoinIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from
|
||||
// Ignore.
|
||||
func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool {
|
||||
return typeignore.IgnoreIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from
|
||||
// Video.
|
||||
func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool {
|
||||
return typevideo.VideoIsExtendedBy(other)
|
||||
// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from
|
||||
// Block.
|
||||
func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool {
|
||||
return typeblock.BlockIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCollectionIsExtendedBy returns true if the other's type extends
|
||||
|
@ -136,46 +124,10 @@ func ActivityStreamsCollectionPageIsExtendedBy(other vocab.Type) bool {
|
|||
return typecollectionpage.CollectionPageIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsApplicationIsExtendedBy returns true if the other's type extends
|
||||
// from Application.
|
||||
func ActivityStreamsApplicationIsExtendedBy(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from
|
||||
// Event.
|
||||
func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool {
|
||||
return typeevent.EventIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from
|
||||
// Undo.
|
||||
func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool {
|
||||
return typeundo.UndoIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends
|
||||
// from Dislike.
|
||||
func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool {
|
||||
return typedislike.DislikeIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from
|
||||
// Person.
|
||||
func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool {
|
||||
return typeperson.PersonIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type
|
||||
// extends from OrderedCollection.
|
||||
func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from
|
||||
// Read.
|
||||
func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool {
|
||||
return typeread.ReadIsExtendedBy(other)
|
||||
// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from
|
||||
// Create.
|
||||
func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool {
|
||||
return typecreate.CreateIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDeleteIsExtendedBy returns true if the other's type extends from
|
||||
|
@ -184,22 +136,10 @@ func ActivityStreamsDeleteIsExtendedBy(other vocab.Type) bool {
|
|||
return typedelete.DeleteIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from
|
||||
// Image.
|
||||
func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool {
|
||||
return typeimage.ImageIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from
|
||||
// Follow.
|
||||
func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool {
|
||||
return typefollow.FollowIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type
|
||||
// extends from TentativeReject.
|
||||
func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectIsExtendedBy(other)
|
||||
// ActivityStreamsDislikeIsExtendedBy returns true if the other's type extends
|
||||
// from Dislike.
|
||||
func ActivityStreamsDislikeIsExtendedBy(other vocab.Type) bool {
|
||||
return typedislike.DislikeIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDocumentIsExtendedBy returns true if the other's type extends
|
||||
|
@ -208,88 +148,40 @@ func ActivityStreamsDocumentIsExtendedBy(other vocab.Type) bool {
|
|||
return typedocument.DocumentIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type
|
||||
// extends from Relationship.
|
||||
func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipIsExtendedBy(other)
|
||||
// ActivityStreamsEventIsExtendedBy returns true if the other's type extends from
|
||||
// Event.
|
||||
func ActivityStreamsEventIsExtendedBy(other vocab.Type) bool {
|
||||
return typeevent.EventIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from
|
||||
// Page.
|
||||
func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool {
|
||||
return typepage.PageIsExtendedBy(other)
|
||||
// ActivityStreamsFlagIsExtendedBy returns true if the other's type extends from
|
||||
// Flag.
|
||||
func ActivityStreamsFlagIsExtendedBy(other vocab.Type) bool {
|
||||
return typeflag.FlagIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from
|
||||
// Reject.
|
||||
func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool {
|
||||
return typereject.RejectIsExtendedBy(other)
|
||||
// ActivityStreamsFollowIsExtendedBy returns true if the other's type extends from
|
||||
// Follow.
|
||||
func ActivityStreamsFollowIsExtendedBy(other vocab.Type) bool {
|
||||
return typefollow.FollowIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAcceptIsExtendedBy returns true if the other's type extends from
|
||||
// Accept.
|
||||
func ActivityStreamsAcceptIsExtendedBy(other vocab.Type) bool {
|
||||
return typeaccept.AcceptIsExtendedBy(other)
|
||||
// ActivityStreamsGroupIsExtendedBy returns true if the other's type extends from
|
||||
// Group.
|
||||
func ActivityStreamsGroupIsExtendedBy(other vocab.Type) bool {
|
||||
return typegroup.GroupIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from
|
||||
// Listen.
|
||||
func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool {
|
||||
return typelisten.ListenIsExtendedBy(other)
|
||||
// ActivityStreamsIgnoreIsExtendedBy returns true if the other's type extends from
|
||||
// Ignore.
|
||||
func ActivityStreamsIgnoreIsExtendedBy(other vocab.Type) bool {
|
||||
return typeignore.IgnoreIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from
|
||||
// Like.
|
||||
func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool {
|
||||
return typelike.LikeIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends
|
||||
// from Tombstone.
|
||||
func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from
|
||||
// Update.
|
||||
func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool {
|
||||
return typeupdate.UpdateIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type
|
||||
// extends from Organization.
|
||||
func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends
|
||||
// from Profile.
|
||||
func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool {
|
||||
return typeprofile.ProfileIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from
|
||||
// Move.
|
||||
func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool {
|
||||
return typemove.MoveIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends
|
||||
// from Question.
|
||||
func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool {
|
||||
return typequestion.QuestionIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends
|
||||
// from Service.
|
||||
func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeservice.ServiceIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from
|
||||
// Remove.
|
||||
func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool {
|
||||
return typeremove.RemoveIsExtendedBy(other)
|
||||
// ActivityStreamsImageIsExtendedBy returns true if the other's type extends from
|
||||
// Image.
|
||||
func ActivityStreamsImageIsExtendedBy(other vocab.Type) bool {
|
||||
return typeimage.ImageIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIntransitiveActivityIsExtendedBy returns true if the other's
|
||||
|
@ -298,52 +190,40 @@ func ActivityStreamsIntransitiveActivityIsExtendedBy(other vocab.Type) bool {
|
|||
return typeintransitiveactivity.IntransitiveActivityIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from
|
||||
// Travel.
|
||||
func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool {
|
||||
return typetravel.TravelIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAnnounceIsExtendedBy returns true if the other's type extends
|
||||
// from Announce.
|
||||
func ActivityStreamsAnnounceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from
|
||||
// Note.
|
||||
func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool {
|
||||
return typenote.NoteIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsInviteIsExtendedBy returns true if the other's type extends from
|
||||
// Invite.
|
||||
func ActivityStreamsInviteIsExtendedBy(other vocab.Type) bool {
|
||||
return typeinvite.InviteIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsBlockIsExtendedBy returns true if the other's type extends from
|
||||
// Block.
|
||||
func ActivityStreamsBlockIsExtendedBy(other vocab.Type) bool {
|
||||
return typeblock.BlockIsExtendedBy(other)
|
||||
// ActivityStreamsJoinIsExtendedBy returns true if the other's type extends from
|
||||
// Join.
|
||||
func ActivityStreamsJoinIsExtendedBy(other vocab.Type) bool {
|
||||
return typejoin.JoinIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsActivityIsExtendedBy returns true if the other's type extends
|
||||
// from Activity.
|
||||
func ActivityStreamsActivityIsExtendedBy(other vocab.Type) bool {
|
||||
return typeactivity.ActivityIsExtendedBy(other)
|
||||
// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from
|
||||
// Leave.
|
||||
func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool {
|
||||
return typeleave.LeaveIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArticleIsExtendedBy returns true if the other's type extends
|
||||
// from Article.
|
||||
func ActivityStreamsArticleIsExtendedBy(other vocab.Type) bool {
|
||||
return typearticle.ArticleIsExtendedBy(other)
|
||||
// ActivityStreamsLikeIsExtendedBy returns true if the other's type extends from
|
||||
// Like.
|
||||
func ActivityStreamsLikeIsExtendedBy(other vocab.Type) bool {
|
||||
return typelike.LikeIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArriveIsExtendedBy returns true if the other's type extends from
|
||||
// Arrive.
|
||||
func ActivityStreamsArriveIsExtendedBy(other vocab.Type) bool {
|
||||
return typearrive.ArriveIsExtendedBy(other)
|
||||
// ActivityStreamsLinkIsExtendedBy returns true if the other's type extends from
|
||||
// Link.
|
||||
func ActivityStreamsLinkIsExtendedBy(other vocab.Type) bool {
|
||||
return typelink.LinkIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenIsExtendedBy returns true if the other's type extends from
|
||||
// Listen.
|
||||
func ActivityStreamsListenIsExtendedBy(other vocab.Type) bool {
|
||||
return typelisten.ListenIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMentionIsExtendedBy returns true if the other's type extends
|
||||
|
@ -352,10 +232,22 @@ func ActivityStreamsMentionIsExtendedBy(other vocab.Type) bool {
|
|||
return typemention.MentionIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type
|
||||
// extends from TentativeAccept.
|
||||
func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptIsExtendedBy(other)
|
||||
// ActivityStreamsMoveIsExtendedBy returns true if the other's type extends from
|
||||
// Move.
|
||||
func ActivityStreamsMoveIsExtendedBy(other vocab.Type) bool {
|
||||
return typemove.MoveIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteIsExtendedBy returns true if the other's type extends from
|
||||
// Note.
|
||||
func ActivityStreamsNoteIsExtendedBy(other vocab.Type) bool {
|
||||
return typenote.NoteIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectIsExtendedBy returns true if the other's type extends from
|
||||
// Object.
|
||||
func ActivityStreamsObjectIsExtendedBy(other vocab.Type) bool {
|
||||
return typeobject.ObjectIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOfferIsExtendedBy returns true if the other's type extends from
|
||||
|
@ -364,20 +256,128 @@ func ActivityStreamsOfferIsExtendedBy(other vocab.Type) bool {
|
|||
return typeoffer.OfferIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCreateIsExtendedBy returns true if the other's type extends from
|
||||
// Create.
|
||||
func ActivityStreamsCreateIsExtendedBy(other vocab.Type) bool {
|
||||
return typecreate.CreateIsExtendedBy(other)
|
||||
// ActivityStreamsOrderedCollectionIsExtendedBy returns true if the other's type
|
||||
// extends from OrderedCollection.
|
||||
func ActivityStreamsOrderedCollectionIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAddIsExtendedBy returns true if the other's type extends from
|
||||
// Add.
|
||||
func ActivityStreamsAddIsExtendedBy(other vocab.Type) bool {
|
||||
return typeadd.AddIsExtendedBy(other)
|
||||
// ActivityStreamsOrderedCollectionPageIsExtendedBy returns true if the other's
|
||||
// type extends from OrderedCollectionPage.
|
||||
func ActivityStreamsOrderedCollectionPageIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLeaveIsExtendedBy returns true if the other's type extends from
|
||||
// Leave.
|
||||
func ActivityStreamsLeaveIsExtendedBy(other vocab.Type) bool {
|
||||
return typeleave.LeaveIsExtendedBy(other)
|
||||
// ActivityStreamsOrganizationIsExtendedBy returns true if the other's type
|
||||
// extends from Organization.
|
||||
func ActivityStreamsOrganizationIsExtendedBy(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageIsExtendedBy returns true if the other's type extends from
|
||||
// Page.
|
||||
func ActivityStreamsPageIsExtendedBy(other vocab.Type) bool {
|
||||
return typepage.PageIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonIsExtendedBy returns true if the other's type extends from
|
||||
// Person.
|
||||
func ActivityStreamsPersonIsExtendedBy(other vocab.Type) bool {
|
||||
return typeperson.PersonIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPlaceIsExtendedBy returns true if the other's type extends from
|
||||
// Place.
|
||||
func ActivityStreamsPlaceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeplace.PlaceIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsProfileIsExtendedBy returns true if the other's type extends
|
||||
// from Profile.
|
||||
func ActivityStreamsProfileIsExtendedBy(other vocab.Type) bool {
|
||||
return typeprofile.ProfileIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionIsExtendedBy returns true if the other's type extends
|
||||
// from Question.
|
||||
func ActivityStreamsQuestionIsExtendedBy(other vocab.Type) bool {
|
||||
return typequestion.QuestionIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadIsExtendedBy returns true if the other's type extends from
|
||||
// Read.
|
||||
func ActivityStreamsReadIsExtendedBy(other vocab.Type) bool {
|
||||
return typeread.ReadIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectIsExtendedBy returns true if the other's type extends from
|
||||
// Reject.
|
||||
func ActivityStreamsRejectIsExtendedBy(other vocab.Type) bool {
|
||||
return typereject.RejectIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipIsExtendedBy returns true if the other's type
|
||||
// extends from Relationship.
|
||||
func ActivityStreamsRelationshipIsExtendedBy(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveIsExtendedBy returns true if the other's type extends from
|
||||
// Remove.
|
||||
func ActivityStreamsRemoveIsExtendedBy(other vocab.Type) bool {
|
||||
return typeremove.RemoveIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceIsExtendedBy returns true if the other's type extends
|
||||
// from Service.
|
||||
func ActivityStreamsServiceIsExtendedBy(other vocab.Type) bool {
|
||||
return typeservice.ServiceIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptIsExtendedBy returns true if the other's type
|
||||
// extends from TentativeAccept.
|
||||
func ActivityStreamsTentativeAcceptIsExtendedBy(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectIsExtendedBy returns true if the other's type
|
||||
// extends from TentativeReject.
|
||||
func ActivityStreamsTentativeRejectIsExtendedBy(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneIsExtendedBy returns true if the other's type extends
|
||||
// from Tombstone.
|
||||
func ActivityStreamsTombstoneIsExtendedBy(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelIsExtendedBy returns true if the other's type extends from
|
||||
// Travel.
|
||||
func ActivityStreamsTravelIsExtendedBy(other vocab.Type) bool {
|
||||
return typetravel.TravelIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoIsExtendedBy returns true if the other's type extends from
|
||||
// Undo.
|
||||
func ActivityStreamsUndoIsExtendedBy(other vocab.Type) bool {
|
||||
return typeundo.UndoIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateIsExtendedBy returns true if the other's type extends from
|
||||
// Update.
|
||||
func ActivityStreamsUpdateIsExtendedBy(other vocab.Type) bool {
|
||||
return typeupdate.UpdateIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoIsExtendedBy returns true if the other's type extends from
|
||||
// Video.
|
||||
func ActivityStreamsVideoIsExtendedBy(other vocab.Type) bool {
|
||||
return typevideo.VideoIsExtendedBy(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewIsExtendedBy returns true if the other's type extends from
|
||||
// View.
|
||||
func ActivityStreamsViewIsExtendedBy(other vocab.Type) bool {
|
||||
return typeview.ViewIsExtendedBy(other)
|
||||
}
|
||||
|
|
|
@ -58,41 +58,45 @@ import (
|
|||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// ActivityStreamsLinkExtends returns true if Link extends from the other's type.
|
||||
func ActivityStreamsLinkExtends(other vocab.Type) bool {
|
||||
return typelink.LinkExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectExtends returns true if Object extends from the other's
|
||||
// ActivityStreamsAcceptExtends returns true if Accept extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsObjectExtends(other vocab.Type) bool {
|
||||
return typeobject.ObjectExtends(other)
|
||||
func ActivityStreamsAcceptExtends(other vocab.Type) bool {
|
||||
return typeaccept.AcceptExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewExtends returns true if View extends from the other's type.
|
||||
func ActivityStreamsViewExtends(other vocab.Type) bool {
|
||||
return typeview.ViewExtends(other)
|
||||
// ActivityStreamsActivityExtends returns true if Activity extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsActivityExtends(other vocab.Type) bool {
|
||||
return typeactivity.ActivityExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionPageExtends returns true if
|
||||
// OrderedCollectionPage extends from the other's type.
|
||||
func ActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageExtends(other)
|
||||
// ActivityStreamsAddExtends returns true if Add extends from the other's type.
|
||||
func ActivityStreamsAddExtends(other vocab.Type) bool {
|
||||
return typeadd.AddExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPlaceExtends returns true if Place extends from the other's type.
|
||||
func ActivityStreamsPlaceExtends(other vocab.Type) bool {
|
||||
return typeplace.PlaceExtends(other)
|
||||
// ActivityStreamsAnnounceExtends returns true if Announce extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsGroupExtends returns true if Group extends from the other's type.
|
||||
func ActivityStreamsGroupExtends(other vocab.Type) bool {
|
||||
return typegroup.GroupExtends(other)
|
||||
// ActivityStreamsApplicationExtends returns true if Application extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsApplicationExtends(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFlagExtends returns true if Flag extends from the other's type.
|
||||
func ActivityStreamsFlagExtends(other vocab.Type) bool {
|
||||
return typeflag.FlagExtends(other)
|
||||
// ActivityStreamsArriveExtends returns true if Arrive extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsArriveExtends(other vocab.Type) bool {
|
||||
return typearrive.ArriveExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArticleExtends returns true if Article extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsArticleExtends(other vocab.Type) bool {
|
||||
return typearticle.ArticleExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAudioExtends returns true if Audio extends from the other's type.
|
||||
|
@ -100,20 +104,9 @@ func ActivityStreamsAudioExtends(other vocab.Type) bool {
|
|||
return typeaudio.AudioExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsJoinExtends returns true if Join extends from the other's type.
|
||||
func ActivityStreamsJoinExtends(other vocab.Type) bool {
|
||||
return typejoin.JoinExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIgnoreExtends returns true if Ignore extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsIgnoreExtends(other vocab.Type) bool {
|
||||
return typeignore.IgnoreExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoExtends returns true if Video extends from the other's type.
|
||||
func ActivityStreamsVideoExtends(other vocab.Type) bool {
|
||||
return typevideo.VideoExtends(other)
|
||||
// ActivityStreamsBlockExtends returns true if Block extends from the other's type.
|
||||
func ActivityStreamsBlockExtends(other vocab.Type) bool {
|
||||
return typeblock.BlockExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCollectionExtends returns true if Collection extends from the
|
||||
|
@ -128,43 +121,10 @@ func ActivityStreamsCollectionPageExtends(other vocab.Type) bool {
|
|||
return typecollectionpage.CollectionPageExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsApplicationExtends returns true if Application extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsApplicationExtends(other vocab.Type) bool {
|
||||
return typeapplication.ApplicationExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsEventExtends returns true if Event extends from the other's type.
|
||||
func ActivityStreamsEventExtends(other vocab.Type) bool {
|
||||
return typeevent.EventExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoExtends returns true if Undo extends from the other's type.
|
||||
func ActivityStreamsUndoExtends(other vocab.Type) bool {
|
||||
return typeundo.UndoExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDislikeExtends returns true if Dislike extends from the other's
|
||||
// ActivityStreamsCreateExtends returns true if Create extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsDislikeExtends(other vocab.Type) bool {
|
||||
return typedislike.DislikeExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonExtends returns true if Person extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsPersonExtends(other vocab.Type) bool {
|
||||
return typeperson.PersonExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionExtends returns true if OrderedCollection
|
||||
// extends from the other's type.
|
||||
func ActivityStreamsOrderedCollectionExtends(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadExtends returns true if Read extends from the other's type.
|
||||
func ActivityStreamsReadExtends(other vocab.Type) bool {
|
||||
return typeread.ReadExtends(other)
|
||||
func ActivityStreamsCreateExtends(other vocab.Type) bool {
|
||||
return typecreate.CreateExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDeleteExtends returns true if Delete extends from the other's
|
||||
|
@ -173,21 +133,10 @@ func ActivityStreamsDeleteExtends(other vocab.Type) bool {
|
|||
return typedelete.DeleteExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsImageExtends returns true if Image extends from the other's type.
|
||||
func ActivityStreamsImageExtends(other vocab.Type) bool {
|
||||
return typeimage.ImageExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsFollowExtends returns true if Follow extends from the other's
|
||||
// ActivityStreamsDislikeExtends returns true if Dislike extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsFollowExtends(other vocab.Type) bool {
|
||||
return typefollow.FollowExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectExtends returns true if TentativeReject extends
|
||||
// from the other's type.
|
||||
func ActivityStreamsTentativeRejectExtends(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectExtends(other)
|
||||
func ActivityStreamsDislikeExtends(other vocab.Type) bool {
|
||||
return typedislike.DislikeExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsDocumentExtends returns true if Document extends from the
|
||||
|
@ -196,85 +145,36 @@ func ActivityStreamsDocumentExtends(other vocab.Type) bool {
|
|||
return typedocument.DocumentExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipExtends returns true if Relationship extends from
|
||||
// the other's type.
|
||||
func ActivityStreamsRelationshipExtends(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipExtends(other)
|
||||
// ActivityStreamsEventExtends returns true if Event extends from the other's type.
|
||||
func ActivityStreamsEventExtends(other vocab.Type) bool {
|
||||
return typeevent.EventExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageExtends returns true if Page extends from the other's type.
|
||||
func ActivityStreamsPageExtends(other vocab.Type) bool {
|
||||
return typepage.PageExtends(other)
|
||||
// ActivityStreamsFlagExtends returns true if Flag extends from the other's type.
|
||||
func ActivityStreamsFlagExtends(other vocab.Type) bool {
|
||||
return typeflag.FlagExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectExtends returns true if Reject extends from the other's
|
||||
// ActivityStreamsFollowExtends returns true if Follow extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsRejectExtends(other vocab.Type) bool {
|
||||
return typereject.RejectExtends(other)
|
||||
func ActivityStreamsFollowExtends(other vocab.Type) bool {
|
||||
return typefollow.FollowExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAcceptExtends returns true if Accept extends from the other's
|
||||
// ActivityStreamsGroupExtends returns true if Group extends from the other's type.
|
||||
func ActivityStreamsGroupExtends(other vocab.Type) bool {
|
||||
return typegroup.GroupExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIgnoreExtends returns true if Ignore extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsAcceptExtends(other vocab.Type) bool {
|
||||
return typeaccept.AcceptExtends(other)
|
||||
func ActivityStreamsIgnoreExtends(other vocab.Type) bool {
|
||||
return typeignore.IgnoreExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenExtends returns true if Listen extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsListenExtends(other vocab.Type) bool {
|
||||
return typelisten.ListenExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLikeExtends returns true if Like extends from the other's type.
|
||||
func ActivityStreamsLikeExtends(other vocab.Type) bool {
|
||||
return typelike.LikeExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneExtends returns true if Tombstone extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsTombstoneExtends(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateExtends returns true if Update extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsUpdateExtends(other vocab.Type) bool {
|
||||
return typeupdate.UpdateExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrganizationExtends returns true if Organization extends from
|
||||
// the other's type.
|
||||
func ActivityStreamsOrganizationExtends(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsProfileExtends returns true if Profile extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsProfileExtends(other vocab.Type) bool {
|
||||
return typeprofile.ProfileExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMoveExtends returns true if Move extends from the other's type.
|
||||
func ActivityStreamsMoveExtends(other vocab.Type) bool {
|
||||
return typemove.MoveExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionExtends returns true if Question extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsQuestionExtends(other vocab.Type) bool {
|
||||
return typequestion.QuestionExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceExtends returns true if Service extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsServiceExtends(other vocab.Type) bool {
|
||||
return typeservice.ServiceExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveExtends returns true if Remove extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsRemoveExtends(other vocab.Type) bool {
|
||||
return typeremove.RemoveExtends(other)
|
||||
// ActivityStreamsImageExtends returns true if Image extends from the other's type.
|
||||
func ActivityStreamsImageExtends(other vocab.Type) bool {
|
||||
return typeimage.ImageExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsIntransitiveActivityExtends returns true if IntransitiveActivity
|
||||
|
@ -283,50 +183,36 @@ func ActivityStreamsIntransitiveActivityExtends(other vocab.Type) bool {
|
|||
return typeintransitiveactivity.IntransitiveActivityExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelExtends returns true if Travel extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsTravelExtends(other vocab.Type) bool {
|
||||
return typetravel.TravelExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAnnounceExtends returns true if Announce extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsAnnounceExtends(other vocab.Type) bool {
|
||||
return typeannounce.AnnounceExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteExtends returns true if Note extends from the other's type.
|
||||
func ActivityStreamsNoteExtends(other vocab.Type) bool {
|
||||
return typenote.NoteExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsInviteExtends returns true if Invite extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsInviteExtends(other vocab.Type) bool {
|
||||
return typeinvite.InviteExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsBlockExtends returns true if Block extends from the other's type.
|
||||
func ActivityStreamsBlockExtends(other vocab.Type) bool {
|
||||
return typeblock.BlockExtends(other)
|
||||
// ActivityStreamsJoinExtends returns true if Join extends from the other's type.
|
||||
func ActivityStreamsJoinExtends(other vocab.Type) bool {
|
||||
return typejoin.JoinExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsActivityExtends returns true if Activity extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsActivityExtends(other vocab.Type) bool {
|
||||
return typeactivity.ActivityExtends(other)
|
||||
// ActivityStreamsLeaveExtends returns true if Leave extends from the other's type.
|
||||
func ActivityStreamsLeaveExtends(other vocab.Type) bool {
|
||||
return typeleave.LeaveExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArticleExtends returns true if Article extends from the other's
|
||||
// ActivityStreamsLikeExtends returns true if Like extends from the other's type.
|
||||
func ActivityStreamsLikeExtends(other vocab.Type) bool {
|
||||
return typelike.LikeExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLinkExtends returns true if Link extends from the other's type.
|
||||
func ActivityStreamsLinkExtends(other vocab.Type) bool {
|
||||
return typelink.LinkExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsListenExtends returns true if Listen extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsArticleExtends(other vocab.Type) bool {
|
||||
return typearticle.ArticleExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsArriveExtends returns true if Arrive extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsArriveExtends(other vocab.Type) bool {
|
||||
return typearrive.ArriveExtends(other)
|
||||
func ActivityStreamsListenExtends(other vocab.Type) bool {
|
||||
return typelisten.ListenExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsMentionExtends returns true if Mention extends from the other's
|
||||
|
@ -335,10 +221,20 @@ func ActivityStreamsMentionExtends(other vocab.Type) bool {
|
|||
return typemention.MentionExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptExtends returns true if TentativeAccept extends
|
||||
// from the other's type.
|
||||
func ActivityStreamsTentativeAcceptExtends(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptExtends(other)
|
||||
// ActivityStreamsMoveExtends returns true if Move extends from the other's type.
|
||||
func ActivityStreamsMoveExtends(other vocab.Type) bool {
|
||||
return typemove.MoveExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsNoteExtends returns true if Note extends from the other's type.
|
||||
func ActivityStreamsNoteExtends(other vocab.Type) bool {
|
||||
return typenote.NoteExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsObjectExtends returns true if Object extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsObjectExtends(other vocab.Type) bool {
|
||||
return typeobject.ObjectExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOfferExtends returns true if Offer extends from the other's type.
|
||||
|
@ -346,18 +242,122 @@ func ActivityStreamsOfferExtends(other vocab.Type) bool {
|
|||
return typeoffer.OfferExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsCreateExtends returns true if Create extends from the other's
|
||||
// ActivityStreamsOrderedCollectionExtends returns true if OrderedCollection
|
||||
// extends from the other's type.
|
||||
func ActivityStreamsOrderedCollectionExtends(other vocab.Type) bool {
|
||||
return typeorderedcollection.OrderedCollectionExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrderedCollectionPageExtends returns true if
|
||||
// OrderedCollectionPage extends from the other's type.
|
||||
func ActivityStreamsOrderedCollectionPageExtends(other vocab.Type) bool {
|
||||
return typeorderedcollectionpage.OrderedCollectionPageExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsOrganizationExtends returns true if Organization extends from
|
||||
// the other's type.
|
||||
func ActivityStreamsOrganizationExtends(other vocab.Type) bool {
|
||||
return typeorganization.OrganizationExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPageExtends returns true if Page extends from the other's type.
|
||||
func ActivityStreamsPageExtends(other vocab.Type) bool {
|
||||
return typepage.PageExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsPersonExtends returns true if Person extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsCreateExtends(other vocab.Type) bool {
|
||||
return typecreate.CreateExtends(other)
|
||||
func ActivityStreamsPersonExtends(other vocab.Type) bool {
|
||||
return typeperson.PersonExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsAddExtends returns true if Add extends from the other's type.
|
||||
func ActivityStreamsAddExtends(other vocab.Type) bool {
|
||||
return typeadd.AddExtends(other)
|
||||
// ActivityStreamsPlaceExtends returns true if Place extends from the other's type.
|
||||
func ActivityStreamsPlaceExtends(other vocab.Type) bool {
|
||||
return typeplace.PlaceExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsLeaveExtends returns true if Leave extends from the other's type.
|
||||
func ActivityStreamsLeaveExtends(other vocab.Type) bool {
|
||||
return typeleave.LeaveExtends(other)
|
||||
// ActivityStreamsProfileExtends returns true if Profile extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsProfileExtends(other vocab.Type) bool {
|
||||
return typeprofile.ProfileExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsQuestionExtends returns true if Question extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsQuestionExtends(other vocab.Type) bool {
|
||||
return typequestion.QuestionExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsReadExtends returns true if Read extends from the other's type.
|
||||
func ActivityStreamsReadExtends(other vocab.Type) bool {
|
||||
return typeread.ReadExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRejectExtends returns true if Reject extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsRejectExtends(other vocab.Type) bool {
|
||||
return typereject.RejectExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRelationshipExtends returns true if Relationship extends from
|
||||
// the other's type.
|
||||
func ActivityStreamsRelationshipExtends(other vocab.Type) bool {
|
||||
return typerelationship.RelationshipExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsRemoveExtends returns true if Remove extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsRemoveExtends(other vocab.Type) bool {
|
||||
return typeremove.RemoveExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsServiceExtends returns true if Service extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsServiceExtends(other vocab.Type) bool {
|
||||
return typeservice.ServiceExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeAcceptExtends returns true if TentativeAccept extends
|
||||
// from the other's type.
|
||||
func ActivityStreamsTentativeAcceptExtends(other vocab.Type) bool {
|
||||
return typetentativeaccept.TentativeAcceptExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTentativeRejectExtends returns true if TentativeReject extends
|
||||
// from the other's type.
|
||||
func ActivityStreamsTentativeRejectExtends(other vocab.Type) bool {
|
||||
return typetentativereject.TentativeRejectExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTombstoneExtends returns true if Tombstone extends from the
|
||||
// other's type.
|
||||
func ActivityStreamsTombstoneExtends(other vocab.Type) bool {
|
||||
return typetombstone.TombstoneExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsTravelExtends returns true if Travel extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsTravelExtends(other vocab.Type) bool {
|
||||
return typetravel.TravelExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUndoExtends returns true if Undo extends from the other's type.
|
||||
func ActivityStreamsUndoExtends(other vocab.Type) bool {
|
||||
return typeundo.UndoExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsUpdateExtends returns true if Update extends from the other's
|
||||
// type.
|
||||
func ActivityStreamsUpdateExtends(other vocab.Type) bool {
|
||||
return typeupdate.UpdateExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsVideoExtends returns true if Video extends from the other's type.
|
||||
func ActivityStreamsVideoExtends(other vocab.Type) bool {
|
||||
return typevideo.VideoExtends(other)
|
||||
}
|
||||
|
||||
// ActivityStreamsViewExtends returns true if View extends from the other's type.
|
||||
func ActivityStreamsViewExtends(other vocab.Type) bool {
|
||||
return typeview.ViewExtends(other)
|
||||
}
|
||||
|
|
|
@ -66,49 +66,75 @@ import (
|
|||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// NewActivityStreamsHreflangProperty creates a new HreflangPropertyInterface
|
||||
func NewActivityStreamsHreflangProperty() vocab.HreflangPropertyInterface {
|
||||
return propertyhreflang.NewHreflangProperty()
|
||||
// NewActivityStreamsAccuracyProperty creates a new AccuracyPropertyInterface
|
||||
func NewActivityStreamsAccuracyProperty() vocab.AccuracyPropertyInterface {
|
||||
return propertyaccuracy.NewAccuracyProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIdProperty creates a new IdPropertyInterface
|
||||
func NewActivityStreamsIdProperty() vocab.IdPropertyInterface {
|
||||
return propertyid.NewIdProperty()
|
||||
// NewActivityStreamsActorProperty creates a new ActorPropertyInterface
|
||||
func NewActivityStreamsActorProperty() vocab.ActorPropertyInterface {
|
||||
return propertyactor.NewActorProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsEndTimeProperty creates a new EndTimePropertyInterface
|
||||
func NewActivityStreamsEndTimeProperty() vocab.EndTimePropertyInterface {
|
||||
return propertyendtime.NewEndTimeProperty()
|
||||
// NewActivityStreamsAltitudeProperty creates a new AltitudePropertyInterface
|
||||
func NewActivityStreamsAltitudeProperty() vocab.AltitudePropertyInterface {
|
||||
return propertyaltitude.NewAltitudeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsHrefProperty creates a new HrefPropertyInterface
|
||||
func NewActivityStreamsHrefProperty() vocab.HrefPropertyInterface {
|
||||
return propertyhref.NewHrefProperty()
|
||||
// NewActivityStreamsAnyOfProperty creates a new AnyOfPropertyInterface
|
||||
func NewActivityStreamsAnyOfProperty() vocab.AnyOfPropertyInterface {
|
||||
return propertyanyof.NewAnyOfProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUpdatedProperty creates a new UpdatedPropertyInterface
|
||||
func NewActivityStreamsUpdatedProperty() vocab.UpdatedPropertyInterface {
|
||||
return propertyupdated.NewUpdatedProperty()
|
||||
// NewActivityStreamsAttachmentProperty creates a new AttachmentPropertyInterface
|
||||
func NewActivityStreamsAttachmentProperty() vocab.AttachmentPropertyInterface {
|
||||
return propertyattachment.NewAttachmentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsNextProperty creates a new NextPropertyInterface
|
||||
func NewActivityStreamsNextProperty() vocab.NextPropertyInterface {
|
||||
return propertynext.NewNextProperty()
|
||||
// NewActivityStreamsAttributedToProperty creates a new
|
||||
// AttributedToPropertyInterface
|
||||
func NewActivityStreamsAttributedToProperty() vocab.AttributedToPropertyInterface {
|
||||
return propertyattributedto.NewAttributedToProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsSubjectProperty creates a new SubjectPropertyInterface
|
||||
func NewActivityStreamsSubjectProperty() vocab.SubjectPropertyInterface {
|
||||
return propertysubject.NewSubjectProperty()
|
||||
// NewActivityStreamsAudienceProperty creates a new AudiencePropertyInterface
|
||||
func NewActivityStreamsAudienceProperty() vocab.AudiencePropertyInterface {
|
||||
return propertyaudience.NewAudienceProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDurationProperty creates a new DurationPropertyInterface
|
||||
func NewActivityStreamsDurationProperty() vocab.DurationPropertyInterface {
|
||||
return propertyduration.NewDurationProperty()
|
||||
// NewActivityStreamsBccProperty creates a new BccPropertyInterface
|
||||
func NewActivityStreamsBccProperty() vocab.BccPropertyInterface {
|
||||
return propertybcc.NewBccProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFirstProperty creates a new FirstPropertyInterface
|
||||
func NewActivityStreamsFirstProperty() vocab.FirstPropertyInterface {
|
||||
return propertyfirst.NewFirstProperty()
|
||||
// NewActivityStreamsBtoProperty creates a new BtoPropertyInterface
|
||||
func NewActivityStreamsBtoProperty() vocab.BtoPropertyInterface {
|
||||
return propertybto.NewBtoProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCcProperty creates a new CcPropertyInterface
|
||||
func NewActivityStreamsCcProperty() vocab.CcPropertyInterface {
|
||||
return propertycc.NewCcProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsClosedProperty creates a new ClosedPropertyInterface
|
||||
func NewActivityStreamsClosedProperty() vocab.ClosedPropertyInterface {
|
||||
return propertyclosed.NewClosedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsContentProperty creates a new ContentPropertyInterface
|
||||
func NewActivityStreamsContentProperty() vocab.ContentPropertyInterface {
|
||||
return propertycontent.NewContentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsContextProperty creates a new ContextPropertyInterface
|
||||
func NewActivityStreamsContextProperty() vocab.ContextPropertyInterface {
|
||||
return propertycontext.NewContextProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCurrentProperty creates a new CurrentPropertyInterface
|
||||
func NewActivityStreamsCurrentProperty() vocab.CurrentPropertyInterface {
|
||||
return propertycurrent.NewCurrentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDeletedProperty creates a new DeletedPropertyInterface
|
||||
|
@ -116,14 +142,84 @@ func NewActivityStreamsDeletedProperty() vocab.DeletedPropertyInterface {
|
|||
return propertydeleted.NewDeletedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUnitsProperty creates a new UnitsPropertyInterface
|
||||
func NewActivityStreamsUnitsProperty() vocab.UnitsPropertyInterface {
|
||||
return propertyunits.NewUnitsProperty()
|
||||
// NewActivityStreamsDescribesProperty creates a new DescribesPropertyInterface
|
||||
func NewActivityStreamsDescribesProperty() vocab.DescribesPropertyInterface {
|
||||
return propertydescribes.NewDescribesProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTotalItemsProperty creates a new TotalItemsPropertyInterface
|
||||
func NewActivityStreamsTotalItemsProperty() vocab.TotalItemsPropertyInterface {
|
||||
return propertytotalitems.NewTotalItemsProperty()
|
||||
// NewActivityStreamsDurationProperty creates a new DurationPropertyInterface
|
||||
func NewActivityStreamsDurationProperty() vocab.DurationPropertyInterface {
|
||||
return propertyduration.NewDurationProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsEndTimeProperty creates a new EndTimePropertyInterface
|
||||
func NewActivityStreamsEndTimeProperty() vocab.EndTimePropertyInterface {
|
||||
return propertyendtime.NewEndTimeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFirstProperty creates a new FirstPropertyInterface
|
||||
func NewActivityStreamsFirstProperty() vocab.FirstPropertyInterface {
|
||||
return propertyfirst.NewFirstProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFormerTypeProperty creates a new FormerTypePropertyInterface
|
||||
func NewActivityStreamsFormerTypeProperty() vocab.FormerTypePropertyInterface {
|
||||
return propertyformertype.NewFormerTypeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsGeneratorProperty creates a new GeneratorPropertyInterface
|
||||
func NewActivityStreamsGeneratorProperty() vocab.GeneratorPropertyInterface {
|
||||
return propertygenerator.NewGeneratorProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsHeightProperty creates a new HeightPropertyInterface
|
||||
func NewActivityStreamsHeightProperty() vocab.HeightPropertyInterface {
|
||||
return propertyheight.NewHeightProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsHrefProperty creates a new HrefPropertyInterface
|
||||
func NewActivityStreamsHrefProperty() vocab.HrefPropertyInterface {
|
||||
return propertyhref.NewHrefProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsHreflangProperty creates a new HreflangPropertyInterface
|
||||
func NewActivityStreamsHreflangProperty() vocab.HreflangPropertyInterface {
|
||||
return propertyhreflang.NewHreflangProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIconProperty creates a new IconPropertyInterface
|
||||
func NewActivityStreamsIconProperty() vocab.IconPropertyInterface {
|
||||
return propertyicon.NewIconProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIdProperty creates a new IdPropertyInterface
|
||||
func NewActivityStreamsIdProperty() vocab.IdPropertyInterface {
|
||||
return propertyid.NewIdProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsImageProperty creates a new ImagePropertyInterface
|
||||
func NewActivityStreamsImageProperty() vocab.ImagePropertyInterface {
|
||||
return propertyimage.NewImageProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsInReplyToProperty creates a new InReplyToPropertyInterface
|
||||
func NewActivityStreamsInReplyToProperty() vocab.InReplyToPropertyInterface {
|
||||
return propertyinreplyto.NewInReplyToProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsInstrumentProperty creates a new InstrumentPropertyInterface
|
||||
func NewActivityStreamsInstrumentProperty() vocab.InstrumentPropertyInterface {
|
||||
return propertyinstrument.NewInstrumentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsItemsProperty creates a new ItemsPropertyInterface
|
||||
func NewActivityStreamsItemsProperty() vocab.ItemsPropertyInterface {
|
||||
return propertyitems.NewItemsProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLastProperty creates a new LastPropertyInterface
|
||||
func NewActivityStreamsLastProperty() vocab.LastPropertyInterface {
|
||||
return propertylast.NewLastProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLatitudeProperty creates a new LatitudePropertyInterface
|
||||
|
@ -131,9 +227,9 @@ func NewActivityStreamsLatitudeProperty() vocab.LatitudePropertyInterface {
|
|||
return propertylatitude.NewLatitudeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRepliesProperty creates a new RepliesPropertyInterface
|
||||
func NewActivityStreamsRepliesProperty() vocab.RepliesPropertyInterface {
|
||||
return propertyreplies.NewRepliesProperty()
|
||||
// NewActivityStreamsLocationProperty creates a new LocationPropertyInterface
|
||||
func NewActivityStreamsLocationProperty() vocab.LocationPropertyInterface {
|
||||
return propertylocation.NewLocationProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLongitudeProperty creates a new LongitudePropertyInterface
|
||||
|
@ -146,79 +242,14 @@ func NewActivityStreamsMediaTypeProperty() vocab.MediaTypePropertyInterface {
|
|||
return propertymediatype.NewMediaTypeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAccuracyProperty creates a new AccuracyPropertyInterface
|
||||
func NewActivityStreamsAccuracyProperty() vocab.AccuracyPropertyInterface {
|
||||
return propertyaccuracy.NewAccuracyProperty()
|
||||
// NewActivityStreamsNameProperty creates a new NamePropertyInterface
|
||||
func NewActivityStreamsNameProperty() vocab.NamePropertyInterface {
|
||||
return propertyname.NewNameProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsWidthProperty creates a new WidthPropertyInterface
|
||||
func NewActivityStreamsWidthProperty() vocab.WidthPropertyInterface {
|
||||
return propertywidth.NewWidthProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDescribesProperty creates a new DescribesPropertyInterface
|
||||
func NewActivityStreamsDescribesProperty() vocab.DescribesPropertyInterface {
|
||||
return propertydescribes.NewDescribesProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPartOfProperty creates a new PartOfPropertyInterface
|
||||
func NewActivityStreamsPartOfProperty() vocab.PartOfPropertyInterface {
|
||||
return propertypartof.NewPartOfProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRadiusProperty creates a new RadiusPropertyInterface
|
||||
func NewActivityStreamsRadiusProperty() vocab.RadiusPropertyInterface {
|
||||
return propertyradius.NewRadiusProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsStartIndexProperty creates a new StartIndexPropertyInterface
|
||||
func NewActivityStreamsStartIndexProperty() vocab.StartIndexPropertyInterface {
|
||||
return propertystartindex.NewStartIndexProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPrevProperty creates a new PrevPropertyInterface
|
||||
func NewActivityStreamsPrevProperty() vocab.PrevPropertyInterface {
|
||||
return propertyprev.NewPrevProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCurrentProperty creates a new CurrentPropertyInterface
|
||||
func NewActivityStreamsCurrentProperty() vocab.CurrentPropertyInterface {
|
||||
return propertycurrent.NewCurrentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsStartTimeProperty creates a new StartTimePropertyInterface
|
||||
func NewActivityStreamsStartTimeProperty() vocab.StartTimePropertyInterface {
|
||||
return propertystarttime.NewStartTimeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLastProperty creates a new LastPropertyInterface
|
||||
func NewActivityStreamsLastProperty() vocab.LastPropertyInterface {
|
||||
return propertylast.NewLastProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAltitudeProperty creates a new AltitudePropertyInterface
|
||||
func NewActivityStreamsAltitudeProperty() vocab.AltitudePropertyInterface {
|
||||
return propertyaltitude.NewAltitudeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsHeightProperty creates a new HeightPropertyInterface
|
||||
func NewActivityStreamsHeightProperty() vocab.HeightPropertyInterface {
|
||||
return propertyheight.NewHeightProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPublishedProperty creates a new PublishedPropertyInterface
|
||||
func NewActivityStreamsPublishedProperty() vocab.PublishedPropertyInterface {
|
||||
return propertypublished.NewPublishedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsInstrumentProperty creates a new InstrumentPropertyInterface
|
||||
func NewActivityStreamsInstrumentProperty() vocab.InstrumentPropertyInterface {
|
||||
return propertyinstrument.NewInstrumentProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsImageProperty creates a new ImagePropertyInterface
|
||||
func NewActivityStreamsImageProperty() vocab.ImagePropertyInterface {
|
||||
return propertyimage.NewImageProperty()
|
||||
// NewActivityStreamsNextProperty creates a new NextPropertyInterface
|
||||
func NewActivityStreamsNextProperty() vocab.NextPropertyInterface {
|
||||
return propertynext.NewNextProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsObjectProperty creates a new ObjectPropertyInterface
|
||||
|
@ -226,39 +257,44 @@ func NewActivityStreamsObjectProperty() vocab.ObjectPropertyInterface {
|
|||
return propertyobject.NewObjectProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsContentProperty creates a new ContentPropertyInterface
|
||||
func NewActivityStreamsContentProperty() vocab.ContentPropertyInterface {
|
||||
return propertycontent.NewContentProperty()
|
||||
// NewActivityStreamsOneOfProperty creates a new OneOfPropertyInterface
|
||||
func NewActivityStreamsOneOfProperty() vocab.OneOfPropertyInterface {
|
||||
return propertyoneof.NewOneOfProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsGeneratorProperty creates a new GeneratorPropertyInterface
|
||||
func NewActivityStreamsGeneratorProperty() vocab.GeneratorPropertyInterface {
|
||||
return propertygenerator.NewGeneratorProperty()
|
||||
// NewActivityStreamsOriginProperty creates a new OriginPropertyInterface
|
||||
func NewActivityStreamsOriginProperty() vocab.OriginPropertyInterface {
|
||||
return propertyorigin.NewOriginProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsBtoProperty creates a new BtoPropertyInterface
|
||||
func NewActivityStreamsBtoProperty() vocab.BtoPropertyInterface {
|
||||
return propertybto.NewBtoProperty()
|
||||
// NewActivityStreamsPartOfProperty creates a new PartOfPropertyInterface
|
||||
func NewActivityStreamsPartOfProperty() vocab.PartOfPropertyInterface {
|
||||
return propertypartof.NewPartOfProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActorProperty creates a new ActorPropertyInterface
|
||||
func NewActivityStreamsActorProperty() vocab.ActorPropertyInterface {
|
||||
return propertyactor.NewActorProperty()
|
||||
// NewActivityStreamsPrevProperty creates a new PrevPropertyInterface
|
||||
func NewActivityStreamsPrevProperty() vocab.PrevPropertyInterface {
|
||||
return propertyprev.NewPrevProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLocationProperty creates a new LocationPropertyInterface
|
||||
func NewActivityStreamsLocationProperty() vocab.LocationPropertyInterface {
|
||||
return propertylocation.NewLocationProperty()
|
||||
// NewActivityStreamsPreviewProperty creates a new PreviewPropertyInterface
|
||||
func NewActivityStreamsPreviewProperty() vocab.PreviewPropertyInterface {
|
||||
return propertypreview.NewPreviewProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAudienceProperty creates a new AudiencePropertyInterface
|
||||
func NewActivityStreamsAudienceProperty() vocab.AudiencePropertyInterface {
|
||||
return propertyaudience.NewAudienceProperty()
|
||||
// NewActivityStreamsPublishedProperty creates a new PublishedPropertyInterface
|
||||
func NewActivityStreamsPublishedProperty() vocab.PublishedPropertyInterface {
|
||||
return propertypublished.NewPublishedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsResultProperty creates a new ResultPropertyInterface
|
||||
func NewActivityStreamsResultProperty() vocab.ResultPropertyInterface {
|
||||
return propertyresult.NewResultProperty()
|
||||
// NewActivityStreamsRadiusProperty creates a new RadiusPropertyInterface
|
||||
func NewActivityStreamsRadiusProperty() vocab.RadiusPropertyInterface {
|
||||
return propertyradius.NewRadiusProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRelProperty creates a new RelPropertyInterface
|
||||
func NewActivityStreamsRelProperty() vocab.RelPropertyInterface {
|
||||
return propertyrel.NewRelProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRelationshipProperty creates a new
|
||||
|
@ -267,34 +303,29 @@ func NewActivityStreamsRelationshipProperty() vocab.RelationshipPropertyInterfac
|
|||
return propertyrelationship.NewRelationshipProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsInReplyToProperty creates a new InReplyToPropertyInterface
|
||||
func NewActivityStreamsInReplyToProperty() vocab.InReplyToPropertyInterface {
|
||||
return propertyinreplyto.NewInReplyToProperty()
|
||||
// NewActivityStreamsRepliesProperty creates a new RepliesPropertyInterface
|
||||
func NewActivityStreamsRepliesProperty() vocab.RepliesPropertyInterface {
|
||||
return propertyreplies.NewRepliesProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOriginProperty creates a new OriginPropertyInterface
|
||||
func NewActivityStreamsOriginProperty() vocab.OriginPropertyInterface {
|
||||
return propertyorigin.NewOriginProperty()
|
||||
// NewActivityStreamsResultProperty creates a new ResultPropertyInterface
|
||||
func NewActivityStreamsResultProperty() vocab.ResultPropertyInterface {
|
||||
return propertyresult.NewResultProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAnyOfProperty creates a new AnyOfPropertyInterface
|
||||
func NewActivityStreamsAnyOfProperty() vocab.AnyOfPropertyInterface {
|
||||
return propertyanyof.NewAnyOfProperty()
|
||||
// NewActivityStreamsStartIndexProperty creates a new StartIndexPropertyInterface
|
||||
func NewActivityStreamsStartIndexProperty() vocab.StartIndexPropertyInterface {
|
||||
return propertystartindex.NewStartIndexProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTagProperty creates a new TagPropertyInterface
|
||||
func NewActivityStreamsTagProperty() vocab.TagPropertyInterface {
|
||||
return propertytag.NewTagProperty()
|
||||
// NewActivityStreamsStartTimeProperty creates a new StartTimePropertyInterface
|
||||
func NewActivityStreamsStartTimeProperty() vocab.StartTimePropertyInterface {
|
||||
return propertystarttime.NewStartTimeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsNameProperty creates a new NamePropertyInterface
|
||||
func NewActivityStreamsNameProperty() vocab.NamePropertyInterface {
|
||||
return propertyname.NewNameProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsContextProperty creates a new ContextPropertyInterface
|
||||
func NewActivityStreamsContextProperty() vocab.ContextPropertyInterface {
|
||||
return propertycontext.NewContextProperty()
|
||||
// NewActivityStreamsSubjectProperty creates a new SubjectPropertyInterface
|
||||
func NewActivityStreamsSubjectProperty() vocab.SubjectPropertyInterface {
|
||||
return propertysubject.NewSubjectProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsSummaryProperty creates a new SummaryPropertyInterface
|
||||
|
@ -302,35 +333,9 @@ func NewActivityStreamsSummaryProperty() vocab.SummaryPropertyInterface {
|
|||
return propertysummary.NewSummaryProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUrlProperty creates a new UrlPropertyInterface
|
||||
func NewActivityStreamsUrlProperty() vocab.UrlPropertyInterface {
|
||||
return propertyurl.NewUrlProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAttributedToProperty creates a new
|
||||
// AttributedToPropertyInterface
|
||||
func NewActivityStreamsAttributedToProperty() vocab.AttributedToPropertyInterface {
|
||||
return propertyattributedto.NewAttributedToProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOneOfProperty creates a new OneOfPropertyInterface
|
||||
func NewActivityStreamsOneOfProperty() vocab.OneOfPropertyInterface {
|
||||
return propertyoneof.NewOneOfProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsItemsProperty creates a new ItemsPropertyInterface
|
||||
func NewActivityStreamsItemsProperty() vocab.ItemsPropertyInterface {
|
||||
return propertyitems.NewItemsProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTypeProperty creates a new TypePropertyInterface
|
||||
func NewActivityStreamsTypeProperty() vocab.TypePropertyInterface {
|
||||
return propertytype.NewTypeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAttachmentProperty creates a new AttachmentPropertyInterface
|
||||
func NewActivityStreamsAttachmentProperty() vocab.AttachmentPropertyInterface {
|
||||
return propertyattachment.NewAttachmentProperty()
|
||||
// NewActivityStreamsTagProperty creates a new TagPropertyInterface
|
||||
func NewActivityStreamsTagProperty() vocab.TagPropertyInterface {
|
||||
return propertytag.NewTagProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTargetProperty creates a new TargetPropertyInterface
|
||||
|
@ -338,42 +343,37 @@ func NewActivityStreamsTargetProperty() vocab.TargetPropertyInterface {
|
|||
return propertytarget.NewTargetProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFormerTypeProperty creates a new FormerTypePropertyInterface
|
||||
func NewActivityStreamsFormerTypeProperty() vocab.FormerTypePropertyInterface {
|
||||
return propertyformertype.NewFormerTypeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPreviewProperty creates a new PreviewPropertyInterface
|
||||
func NewActivityStreamsPreviewProperty() vocab.PreviewPropertyInterface {
|
||||
return propertypreview.NewPreviewProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsClosedProperty creates a new ClosedPropertyInterface
|
||||
func NewActivityStreamsClosedProperty() vocab.ClosedPropertyInterface {
|
||||
return propertyclosed.NewClosedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsToProperty creates a new ToPropertyInterface
|
||||
func NewActivityStreamsToProperty() vocab.ToPropertyInterface {
|
||||
return propertyto.NewToProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIconProperty creates a new IconPropertyInterface
|
||||
func NewActivityStreamsIconProperty() vocab.IconPropertyInterface {
|
||||
return propertyicon.NewIconProperty()
|
||||
// NewActivityStreamsTotalItemsProperty creates a new TotalItemsPropertyInterface
|
||||
func NewActivityStreamsTotalItemsProperty() vocab.TotalItemsPropertyInterface {
|
||||
return propertytotalitems.NewTotalItemsProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRelProperty creates a new RelPropertyInterface
|
||||
func NewActivityStreamsRelProperty() vocab.RelPropertyInterface {
|
||||
return propertyrel.NewRelProperty()
|
||||
// NewActivityStreamsTypeProperty creates a new TypePropertyInterface
|
||||
func NewActivityStreamsTypeProperty() vocab.TypePropertyInterface {
|
||||
return propertytype.NewTypeProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsBccProperty creates a new BccPropertyInterface
|
||||
func NewActivityStreamsBccProperty() vocab.BccPropertyInterface {
|
||||
return propertybcc.NewBccProperty()
|
||||
// NewActivityStreamsUnitsProperty creates a new UnitsPropertyInterface
|
||||
func NewActivityStreamsUnitsProperty() vocab.UnitsPropertyInterface {
|
||||
return propertyunits.NewUnitsProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCcProperty creates a new CcPropertyInterface
|
||||
func NewActivityStreamsCcProperty() vocab.CcPropertyInterface {
|
||||
return propertycc.NewCcProperty()
|
||||
// NewActivityStreamsUpdatedProperty creates a new UpdatedPropertyInterface
|
||||
func NewActivityStreamsUpdatedProperty() vocab.UpdatedPropertyInterface {
|
||||
return propertyupdated.NewUpdatedProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUrlProperty creates a new UrlPropertyInterface
|
||||
func NewActivityStreamsUrlProperty() vocab.UrlPropertyInterface {
|
||||
return propertyurl.NewUrlProperty()
|
||||
}
|
||||
|
||||
// NewActivityStreamsWidthProperty creates a new WidthPropertyInterface
|
||||
func NewActivityStreamsWidthProperty() vocab.WidthPropertyInterface {
|
||||
return propertywidth.NewWidthProperty()
|
||||
}
|
||||
|
|
|
@ -58,40 +58,39 @@ import (
|
|||
vocab "github.com/go-fed/activity/streams/vocab"
|
||||
)
|
||||
|
||||
// NewActivityStreamsLink creates a new LinkInterface
|
||||
func NewActivityStreamsLink() vocab.LinkInterface {
|
||||
return typelink.NewLink()
|
||||
// NewActivityStreamsAccept creates a new AcceptInterface
|
||||
func NewActivityStreamsAccept() vocab.AcceptInterface {
|
||||
return typeaccept.NewAccept()
|
||||
}
|
||||
|
||||
// NewActivityStreamsObject creates a new ObjectInterface
|
||||
func NewActivityStreamsObject() vocab.ObjectInterface {
|
||||
return typeobject.NewObject()
|
||||
// NewActivityStreamsActivity creates a new ActivityInterface
|
||||
func NewActivityStreamsActivity() vocab.ActivityInterface {
|
||||
return typeactivity.NewActivity()
|
||||
}
|
||||
|
||||
// NewActivityStreamsView creates a new ViewInterface
|
||||
func NewActivityStreamsView() vocab.ViewInterface {
|
||||
return typeview.NewView()
|
||||
// NewActivityStreamsAdd creates a new AddInterface
|
||||
func NewActivityStreamsAdd() vocab.AddInterface {
|
||||
return typeadd.NewAdd()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOrderedCollectionPage creates a new
|
||||
// OrderedCollectionPageInterface
|
||||
func NewActivityStreamsOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return typeorderedcollectionpage.NewOrderedCollectionPage()
|
||||
// NewActivityStreamsAnnounce creates a new AnnounceInterface
|
||||
func NewActivityStreamsAnnounce() vocab.AnnounceInterface {
|
||||
return typeannounce.NewAnnounce()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPlace creates a new PlaceInterface
|
||||
func NewActivityStreamsPlace() vocab.PlaceInterface {
|
||||
return typeplace.NewPlace()
|
||||
// NewActivityStreamsApplication creates a new ApplicationInterface
|
||||
func NewActivityStreamsApplication() vocab.ApplicationInterface {
|
||||
return typeapplication.NewApplication()
|
||||
}
|
||||
|
||||
// NewActivityStreamsGroup creates a new GroupInterface
|
||||
func NewActivityStreamsGroup() vocab.GroupInterface {
|
||||
return typegroup.NewGroup()
|
||||
// NewActivityStreamsArrive creates a new ArriveInterface
|
||||
func NewActivityStreamsArrive() vocab.ArriveInterface {
|
||||
return typearrive.NewArrive()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFlag creates a new FlagInterface
|
||||
func NewActivityStreamsFlag() vocab.FlagInterface {
|
||||
return typeflag.NewFlag()
|
||||
// NewActivityStreamsArticle creates a new ArticleInterface
|
||||
func NewActivityStreamsArticle() vocab.ArticleInterface {
|
||||
return typearticle.NewArticle()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAudio creates a new AudioInterface
|
||||
|
@ -99,19 +98,9 @@ func NewActivityStreamsAudio() vocab.AudioInterface {
|
|||
return typeaudio.NewAudio()
|
||||
}
|
||||
|
||||
// NewActivityStreamsJoin creates a new JoinInterface
|
||||
func NewActivityStreamsJoin() vocab.JoinInterface {
|
||||
return typejoin.NewJoin()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIgnore creates a new IgnoreInterface
|
||||
func NewActivityStreamsIgnore() vocab.IgnoreInterface {
|
||||
return typeignore.NewIgnore()
|
||||
}
|
||||
|
||||
// NewActivityStreamsVideo creates a new VideoInterface
|
||||
func NewActivityStreamsVideo() vocab.VideoInterface {
|
||||
return typevideo.NewVideo()
|
||||
// NewActivityStreamsBlock creates a new BlockInterface
|
||||
func NewActivityStreamsBlock() vocab.BlockInterface {
|
||||
return typeblock.NewBlock()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCollection creates a new CollectionInterface
|
||||
|
@ -124,39 +113,9 @@ func NewActivityStreamsCollectionPage() vocab.CollectionPageInterface {
|
|||
return typecollectionpage.NewCollectionPage()
|
||||
}
|
||||
|
||||
// NewActivityStreamsApplication creates a new ApplicationInterface
|
||||
func NewActivityStreamsApplication() vocab.ApplicationInterface {
|
||||
return typeapplication.NewApplication()
|
||||
}
|
||||
|
||||
// NewActivityStreamsEvent creates a new EventInterface
|
||||
func NewActivityStreamsEvent() vocab.EventInterface {
|
||||
return typeevent.NewEvent()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUndo creates a new UndoInterface
|
||||
func NewActivityStreamsUndo() vocab.UndoInterface {
|
||||
return typeundo.NewUndo()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDislike creates a new DislikeInterface
|
||||
func NewActivityStreamsDislike() vocab.DislikeInterface {
|
||||
return typedislike.NewDislike()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPerson creates a new PersonInterface
|
||||
func NewActivityStreamsPerson() vocab.PersonInterface {
|
||||
return typeperson.NewPerson()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOrderedCollection creates a new OrderedCollectionInterface
|
||||
func NewActivityStreamsOrderedCollection() vocab.OrderedCollectionInterface {
|
||||
return typeorderedcollection.NewOrderedCollection()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRead creates a new ReadInterface
|
||||
func NewActivityStreamsRead() vocab.ReadInterface {
|
||||
return typeread.NewRead()
|
||||
// NewActivityStreamsCreate creates a new CreateInterface
|
||||
func NewActivityStreamsCreate() vocab.CreateInterface {
|
||||
return typecreate.NewCreate()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDelete creates a new DeleteInterface
|
||||
|
@ -164,19 +123,9 @@ func NewActivityStreamsDelete() vocab.DeleteInterface {
|
|||
return typedelete.NewDelete()
|
||||
}
|
||||
|
||||
// NewActivityStreamsImage creates a new ImageInterface
|
||||
func NewActivityStreamsImage() vocab.ImageInterface {
|
||||
return typeimage.NewImage()
|
||||
}
|
||||
|
||||
// NewActivityStreamsFollow creates a new FollowInterface
|
||||
func NewActivityStreamsFollow() vocab.FollowInterface {
|
||||
return typefollow.NewFollow()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTentativeReject creates a new TentativeRejectInterface
|
||||
func NewActivityStreamsTentativeReject() vocab.TentativeRejectInterface {
|
||||
return typetentativereject.NewTentativeReject()
|
||||
// NewActivityStreamsDislike creates a new DislikeInterface
|
||||
func NewActivityStreamsDislike() vocab.DislikeInterface {
|
||||
return typedislike.NewDislike()
|
||||
}
|
||||
|
||||
// NewActivityStreamsDocument creates a new DocumentInterface
|
||||
|
@ -184,74 +133,34 @@ func NewActivityStreamsDocument() vocab.DocumentInterface {
|
|||
return typedocument.NewDocument()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRelationship creates a new RelationshipInterface
|
||||
func NewActivityStreamsRelationship() vocab.RelationshipInterface {
|
||||
return typerelationship.NewRelationship()
|
||||
// NewActivityStreamsEvent creates a new EventInterface
|
||||
func NewActivityStreamsEvent() vocab.EventInterface {
|
||||
return typeevent.NewEvent()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPage creates a new PageInterface
|
||||
func NewActivityStreamsPage() vocab.PageInterface {
|
||||
return typepage.NewPage()
|
||||
// NewActivityStreamsFlag creates a new FlagInterface
|
||||
func NewActivityStreamsFlag() vocab.FlagInterface {
|
||||
return typeflag.NewFlag()
|
||||
}
|
||||
|
||||
// NewActivityStreamsReject creates a new RejectInterface
|
||||
func NewActivityStreamsReject() vocab.RejectInterface {
|
||||
return typereject.NewReject()
|
||||
// NewActivityStreamsFollow creates a new FollowInterface
|
||||
func NewActivityStreamsFollow() vocab.FollowInterface {
|
||||
return typefollow.NewFollow()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAccept creates a new AcceptInterface
|
||||
func NewActivityStreamsAccept() vocab.AcceptInterface {
|
||||
return typeaccept.NewAccept()
|
||||
// NewActivityStreamsGroup creates a new GroupInterface
|
||||
func NewActivityStreamsGroup() vocab.GroupInterface {
|
||||
return typegroup.NewGroup()
|
||||
}
|
||||
|
||||
// NewActivityStreamsListen creates a new ListenInterface
|
||||
func NewActivityStreamsListen() vocab.ListenInterface {
|
||||
return typelisten.NewListen()
|
||||
// NewActivityStreamsIgnore creates a new IgnoreInterface
|
||||
func NewActivityStreamsIgnore() vocab.IgnoreInterface {
|
||||
return typeignore.NewIgnore()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLike creates a new LikeInterface
|
||||
func NewActivityStreamsLike() vocab.LikeInterface {
|
||||
return typelike.NewLike()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTombstone creates a new TombstoneInterface
|
||||
func NewActivityStreamsTombstone() vocab.TombstoneInterface {
|
||||
return typetombstone.NewTombstone()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUpdate creates a new UpdateInterface
|
||||
func NewActivityStreamsUpdate() vocab.UpdateInterface {
|
||||
return typeupdate.NewUpdate()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOrganization creates a new OrganizationInterface
|
||||
func NewActivityStreamsOrganization() vocab.OrganizationInterface {
|
||||
return typeorganization.NewOrganization()
|
||||
}
|
||||
|
||||
// NewActivityStreamsProfile creates a new ProfileInterface
|
||||
func NewActivityStreamsProfile() vocab.ProfileInterface {
|
||||
return typeprofile.NewProfile()
|
||||
}
|
||||
|
||||
// NewActivityStreamsMove creates a new MoveInterface
|
||||
func NewActivityStreamsMove() vocab.MoveInterface {
|
||||
return typemove.NewMove()
|
||||
}
|
||||
|
||||
// NewActivityStreamsQuestion creates a new QuestionInterface
|
||||
func NewActivityStreamsQuestion() vocab.QuestionInterface {
|
||||
return typequestion.NewQuestion()
|
||||
}
|
||||
|
||||
// NewActivityStreamsService creates a new ServiceInterface
|
||||
func NewActivityStreamsService() vocab.ServiceInterface {
|
||||
return typeservice.NewService()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRemove creates a new RemoveInterface
|
||||
func NewActivityStreamsRemove() vocab.RemoveInterface {
|
||||
return typeremove.NewRemove()
|
||||
// NewActivityStreamsImage creates a new ImageInterface
|
||||
func NewActivityStreamsImage() vocab.ImageInterface {
|
||||
return typeimage.NewImage()
|
||||
}
|
||||
|
||||
// NewActivityStreamsIntransitiveActivity creates a new
|
||||
|
@ -260,44 +169,34 @@ func NewActivityStreamsIntransitiveActivity() vocab.IntransitiveActivityInterfac
|
|||
return typeintransitiveactivity.NewIntransitiveActivity()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTravel creates a new TravelInterface
|
||||
func NewActivityStreamsTravel() vocab.TravelInterface {
|
||||
return typetravel.NewTravel()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAnnounce creates a new AnnounceInterface
|
||||
func NewActivityStreamsAnnounce() vocab.AnnounceInterface {
|
||||
return typeannounce.NewAnnounce()
|
||||
}
|
||||
|
||||
// NewActivityStreamsNote creates a new NoteInterface
|
||||
func NewActivityStreamsNote() vocab.NoteInterface {
|
||||
return typenote.NewNote()
|
||||
}
|
||||
|
||||
// NewActivityStreamsInvite creates a new InviteInterface
|
||||
func NewActivityStreamsInvite() vocab.InviteInterface {
|
||||
return typeinvite.NewInvite()
|
||||
}
|
||||
|
||||
// NewActivityStreamsBlock creates a new BlockInterface
|
||||
func NewActivityStreamsBlock() vocab.BlockInterface {
|
||||
return typeblock.NewBlock()
|
||||
// NewActivityStreamsJoin creates a new JoinInterface
|
||||
func NewActivityStreamsJoin() vocab.JoinInterface {
|
||||
return typejoin.NewJoin()
|
||||
}
|
||||
|
||||
// NewActivityStreamsActivity creates a new ActivityInterface
|
||||
func NewActivityStreamsActivity() vocab.ActivityInterface {
|
||||
return typeactivity.NewActivity()
|
||||
// NewActivityStreamsLeave creates a new LeaveInterface
|
||||
func NewActivityStreamsLeave() vocab.LeaveInterface {
|
||||
return typeleave.NewLeave()
|
||||
}
|
||||
|
||||
// NewActivityStreamsArticle creates a new ArticleInterface
|
||||
func NewActivityStreamsArticle() vocab.ArticleInterface {
|
||||
return typearticle.NewArticle()
|
||||
// NewActivityStreamsLike creates a new LikeInterface
|
||||
func NewActivityStreamsLike() vocab.LikeInterface {
|
||||
return typelike.NewLike()
|
||||
}
|
||||
|
||||
// NewActivityStreamsArrive creates a new ArriveInterface
|
||||
func NewActivityStreamsArrive() vocab.ArriveInterface {
|
||||
return typearrive.NewArrive()
|
||||
// NewActivityStreamsLink creates a new LinkInterface
|
||||
func NewActivityStreamsLink() vocab.LinkInterface {
|
||||
return typelink.NewLink()
|
||||
}
|
||||
|
||||
// NewActivityStreamsListen creates a new ListenInterface
|
||||
func NewActivityStreamsListen() vocab.ListenInterface {
|
||||
return typelisten.NewListen()
|
||||
}
|
||||
|
||||
// NewActivityStreamsMention creates a new MentionInterface
|
||||
|
@ -305,9 +204,19 @@ func NewActivityStreamsMention() vocab.MentionInterface {
|
|||
return typemention.NewMention()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTentativeAccept creates a new TentativeAcceptInterface
|
||||
func NewActivityStreamsTentativeAccept() vocab.TentativeAcceptInterface {
|
||||
return typetentativeaccept.NewTentativeAccept()
|
||||
// NewActivityStreamsMove creates a new MoveInterface
|
||||
func NewActivityStreamsMove() vocab.MoveInterface {
|
||||
return typemove.NewMove()
|
||||
}
|
||||
|
||||
// NewActivityStreamsNote creates a new NoteInterface
|
||||
func NewActivityStreamsNote() vocab.NoteInterface {
|
||||
return typenote.NewNote()
|
||||
}
|
||||
|
||||
// NewActivityStreamsObject creates a new ObjectInterface
|
||||
func NewActivityStreamsObject() vocab.ObjectInterface {
|
||||
return typeobject.NewObject()
|
||||
}
|
||||
|
||||
// NewActivityStreamsOffer creates a new OfferInterface
|
||||
|
@ -315,17 +224,108 @@ func NewActivityStreamsOffer() vocab.OfferInterface {
|
|||
return typeoffer.NewOffer()
|
||||
}
|
||||
|
||||
// NewActivityStreamsCreate creates a new CreateInterface
|
||||
func NewActivityStreamsCreate() vocab.CreateInterface {
|
||||
return typecreate.NewCreate()
|
||||
// NewActivityStreamsOrderedCollection creates a new OrderedCollectionInterface
|
||||
func NewActivityStreamsOrderedCollection() vocab.OrderedCollectionInterface {
|
||||
return typeorderedcollection.NewOrderedCollection()
|
||||
}
|
||||
|
||||
// NewActivityStreamsAdd creates a new AddInterface
|
||||
func NewActivityStreamsAdd() vocab.AddInterface {
|
||||
return typeadd.NewAdd()
|
||||
// NewActivityStreamsOrderedCollectionPage creates a new
|
||||
// OrderedCollectionPageInterface
|
||||
func NewActivityStreamsOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return typeorderedcollectionpage.NewOrderedCollectionPage()
|
||||
}
|
||||
|
||||
// NewActivityStreamsLeave creates a new LeaveInterface
|
||||
func NewActivityStreamsLeave() vocab.LeaveInterface {
|
||||
return typeleave.NewLeave()
|
||||
// NewActivityStreamsOrganization creates a new OrganizationInterface
|
||||
func NewActivityStreamsOrganization() vocab.OrganizationInterface {
|
||||
return typeorganization.NewOrganization()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPage creates a new PageInterface
|
||||
func NewActivityStreamsPage() vocab.PageInterface {
|
||||
return typepage.NewPage()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPerson creates a new PersonInterface
|
||||
func NewActivityStreamsPerson() vocab.PersonInterface {
|
||||
return typeperson.NewPerson()
|
||||
}
|
||||
|
||||
// NewActivityStreamsPlace creates a new PlaceInterface
|
||||
func NewActivityStreamsPlace() vocab.PlaceInterface {
|
||||
return typeplace.NewPlace()
|
||||
}
|
||||
|
||||
// NewActivityStreamsProfile creates a new ProfileInterface
|
||||
func NewActivityStreamsProfile() vocab.ProfileInterface {
|
||||
return typeprofile.NewProfile()
|
||||
}
|
||||
|
||||
// NewActivityStreamsQuestion creates a new QuestionInterface
|
||||
func NewActivityStreamsQuestion() vocab.QuestionInterface {
|
||||
return typequestion.NewQuestion()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRead creates a new ReadInterface
|
||||
func NewActivityStreamsRead() vocab.ReadInterface {
|
||||
return typeread.NewRead()
|
||||
}
|
||||
|
||||
// NewActivityStreamsReject creates a new RejectInterface
|
||||
func NewActivityStreamsReject() vocab.RejectInterface {
|
||||
return typereject.NewReject()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRelationship creates a new RelationshipInterface
|
||||
func NewActivityStreamsRelationship() vocab.RelationshipInterface {
|
||||
return typerelationship.NewRelationship()
|
||||
}
|
||||
|
||||
// NewActivityStreamsRemove creates a new RemoveInterface
|
||||
func NewActivityStreamsRemove() vocab.RemoveInterface {
|
||||
return typeremove.NewRemove()
|
||||
}
|
||||
|
||||
// NewActivityStreamsService creates a new ServiceInterface
|
||||
func NewActivityStreamsService() vocab.ServiceInterface {
|
||||
return typeservice.NewService()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTentativeAccept creates a new TentativeAcceptInterface
|
||||
func NewActivityStreamsTentativeAccept() vocab.TentativeAcceptInterface {
|
||||
return typetentativeaccept.NewTentativeAccept()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTentativeReject creates a new TentativeRejectInterface
|
||||
func NewActivityStreamsTentativeReject() vocab.TentativeRejectInterface {
|
||||
return typetentativereject.NewTentativeReject()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTombstone creates a new TombstoneInterface
|
||||
func NewActivityStreamsTombstone() vocab.TombstoneInterface {
|
||||
return typetombstone.NewTombstone()
|
||||
}
|
||||
|
||||
// NewActivityStreamsTravel creates a new TravelInterface
|
||||
func NewActivityStreamsTravel() vocab.TravelInterface {
|
||||
return typetravel.NewTravel()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUndo creates a new UndoInterface
|
||||
func NewActivityStreamsUndo() vocab.UndoInterface {
|
||||
return typeundo.NewUndo()
|
||||
}
|
||||
|
||||
// NewActivityStreamsUpdate creates a new UpdateInterface
|
||||
func NewActivityStreamsUpdate() vocab.UpdateInterface {
|
||||
return typeupdate.NewUpdate()
|
||||
}
|
||||
|
||||
// NewActivityStreamsVideo creates a new VideoInterface
|
||||
func NewActivityStreamsVideo() vocab.VideoInterface {
|
||||
return typevideo.NewVideo()
|
||||
}
|
||||
|
||||
// NewActivityStreamsView creates a new ViewInterface
|
||||
func NewActivityStreamsView() vocab.ViewInterface {
|
||||
return typeview.NewView()
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -26,114 +26,114 @@ func NewTypeResolver(callbacks []interface{}) (*TypeResolver, error) {
|
|||
for _, cb := range callbacks {
|
||||
// Each callback function must satisfy one known function signature, or else we will generate a runtime error instead of silently fail.
|
||||
switch cb.(type) {
|
||||
case func(context.Context, vocab.InviteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.BlockInterface) error:
|
||||
case func(context.Context, vocab.AcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ActivityInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ArticleInterface) error:
|
||||
case func(context.Context, vocab.AddInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ArriveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CreateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AddInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) error:
|
||||
case func(context.Context, vocab.ArticleInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AudioInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.JoinInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.IgnoreInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.GroupInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.FlagInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DislikeInterface) error:
|
||||
case func(context.Context, vocab.BlockInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.CollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ApplicationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.EventInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ImageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) error:
|
||||
case func(context.Context, vocab.CreateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DeleteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.FollowInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) error:
|
||||
case func(context.Context, vocab.DislikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.DocumentInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) error:
|
||||
case func(context.Context, vocab.EventInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) error:
|
||||
case func(context.Context, vocab.FlagInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) error:
|
||||
case func(context.Context, vocab.FollowInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) error:
|
||||
case func(context.Context, vocab.GroupInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AcceptInterface) error:
|
||||
case func(context.Context, vocab.IgnoreInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) error:
|
||||
case func(context.Context, vocab.ImageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.IntransitiveActivityInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) error:
|
||||
case func(context.Context, vocab.InviteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.AnnounceInterface) error:
|
||||
case func(context.Context, vocab.JoinInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LeaveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LikeInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.LinkInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ListenInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MentionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.MoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.NoteInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ObjectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OfferInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrderedCollectionPageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.OrganizationInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PageInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PersonInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.PlaceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ProfileInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.QuestionInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ReadInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RejectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RelationshipInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.RemoveInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ServiceInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeAcceptInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TentativeRejectInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TombstoneInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.TravelInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UndoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.UpdateInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.VideoInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
case func(context.Context, vocab.ViewInterface) error:
|
||||
// Do nothing, this callback has a correct signature.
|
||||
default:
|
||||
return nil, errors.New("a callback function is of the wrong signature and would never be called")
|
||||
}
|
||||
|
@ -150,18 +150,9 @@ func NewTypeResolver(callbacks []interface{}) (*TypeResolver, error) {
|
|||
func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface) error {
|
||||
for _, i := range this.callbacks {
|
||||
switch o.GetName() {
|
||||
case "Invite":
|
||||
if fn, ok := i.(func(context.Context, vocab.InviteInterface) error); ok {
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Block":
|
||||
if fn, ok := i.(func(context.Context, vocab.BlockInterface) error); ok {
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
case "Accept":
|
||||
if fn, ok := i.(func(context.Context, vocab.AcceptInterface) error); ok {
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -177,9 +168,27 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Article":
|
||||
if fn, ok := i.(func(context.Context, vocab.ArticleInterface) error); ok {
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
case "Add":
|
||||
if fn, ok := i.(func(context.Context, vocab.AddInterface) error); ok {
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Announce":
|
||||
if fn, ok := i.(func(context.Context, vocab.AnnounceInterface) error); ok {
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Application":
|
||||
if fn, ok := i.(func(context.Context, vocab.ApplicationInterface) error); ok {
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -195,99 +204,9 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Offer":
|
||||
if fn, ok := i.(func(context.Context, vocab.OfferInterface) error); ok {
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Create":
|
||||
if fn, ok := i.(func(context.Context, vocab.CreateInterface) error); ok {
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Add":
|
||||
if fn, ok := i.(func(context.Context, vocab.AddInterface) error); ok {
|
||||
if v, ok := o.(vocab.AddInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Mention":
|
||||
if fn, ok := i.(func(context.Context, vocab.MentionInterface) error); ok {
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "TentativeAccept":
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeAcceptInterface) error); ok {
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Leave":
|
||||
if fn, ok := i.(func(context.Context, vocab.LeaveInterface) error); ok {
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Link":
|
||||
if fn, ok := i.(func(context.Context, vocab.LinkInterface) error); ok {
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Object":
|
||||
if fn, ok := i.(func(context.Context, vocab.ObjectInterface) error); ok {
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "View":
|
||||
if fn, ok := i.(func(context.Context, vocab.ViewInterface) error); ok {
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "OrderedCollectionPage":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionPageInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Place":
|
||||
if fn, ok := i.(func(context.Context, vocab.PlaceInterface) error); ok {
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
case "Article":
|
||||
if fn, ok := i.(func(context.Context, vocab.ArticleInterface) error); ok {
|
||||
if v, ok := o.(vocab.ArticleInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -303,63 +222,9 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Join":
|
||||
if fn, ok := i.(func(context.Context, vocab.JoinInterface) error); ok {
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Ignore":
|
||||
if fn, ok := i.(func(context.Context, vocab.IgnoreInterface) error); ok {
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Video":
|
||||
if fn, ok := i.(func(context.Context, vocab.VideoInterface) error); ok {
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Group":
|
||||
if fn, ok := i.(func(context.Context, vocab.GroupInterface) error); ok {
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Flag":
|
||||
if fn, ok := i.(func(context.Context, vocab.FlagInterface) error); ok {
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Undo":
|
||||
if fn, ok := i.(func(context.Context, vocab.UndoInterface) error); ok {
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Dislike":
|
||||
if fn, ok := i.(func(context.Context, vocab.DislikeInterface) error); ok {
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
case "Block":
|
||||
if fn, ok := i.(func(context.Context, vocab.BlockInterface) error); ok {
|
||||
if v, ok := o.(vocab.BlockInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -384,54 +249,9 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Application":
|
||||
if fn, ok := i.(func(context.Context, vocab.ApplicationInterface) error); ok {
|
||||
if v, ok := o.(vocab.ApplicationInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Event":
|
||||
if fn, ok := i.(func(context.Context, vocab.EventInterface) error); ok {
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Image":
|
||||
if fn, ok := i.(func(context.Context, vocab.ImageInterface) error); ok {
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Person":
|
||||
if fn, ok := i.(func(context.Context, vocab.PersonInterface) error); ok {
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "OrderedCollection":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Read":
|
||||
if fn, ok := i.(func(context.Context, vocab.ReadInterface) error); ok {
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
case "Create":
|
||||
if fn, ok := i.(func(context.Context, vocab.CreateInterface) error); ok {
|
||||
if v, ok := o.(vocab.CreateInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -447,18 +267,9 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Follow":
|
||||
if fn, ok := i.(func(context.Context, vocab.FollowInterface) error); ok {
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "TentativeReject":
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeRejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
case "Dislike":
|
||||
if fn, ok := i.(func(context.Context, vocab.DislikeInterface) error); ok {
|
||||
if v, ok := o.(vocab.DislikeInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -474,126 +285,54 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Relationship":
|
||||
if fn, ok := i.(func(context.Context, vocab.RelationshipInterface) error); ok {
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
case "Event":
|
||||
if fn, ok := i.(func(context.Context, vocab.EventInterface) error); ok {
|
||||
if v, ok := o.(vocab.EventInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Page":
|
||||
if fn, ok := i.(func(context.Context, vocab.PageInterface) error); ok {
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
case "Flag":
|
||||
if fn, ok := i.(func(context.Context, vocab.FlagInterface) error); ok {
|
||||
if v, ok := o.(vocab.FlagInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Listen":
|
||||
if fn, ok := i.(func(context.Context, vocab.ListenInterface) error); ok {
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
case "Follow":
|
||||
if fn, ok := i.(func(context.Context, vocab.FollowInterface) error); ok {
|
||||
if v, ok := o.(vocab.FollowInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Reject":
|
||||
if fn, ok := i.(func(context.Context, vocab.RejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
case "Group":
|
||||
if fn, ok := i.(func(context.Context, vocab.GroupInterface) error); ok {
|
||||
if v, ok := o.(vocab.GroupInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Accept":
|
||||
if fn, ok := i.(func(context.Context, vocab.AcceptInterface) error); ok {
|
||||
if v, ok := o.(vocab.AcceptInterface); ok {
|
||||
case "Ignore":
|
||||
if fn, ok := i.(func(context.Context, vocab.IgnoreInterface) error); ok {
|
||||
if v, ok := o.(vocab.IgnoreInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Like":
|
||||
if fn, ok := i.(func(context.Context, vocab.LikeInterface) error); ok {
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Organization":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrganizationInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Tombstone":
|
||||
if fn, ok := i.(func(context.Context, vocab.TombstoneInterface) error); ok {
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Update":
|
||||
if fn, ok := i.(func(context.Context, vocab.UpdateInterface) error); ok {
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Profile":
|
||||
if fn, ok := i.(func(context.Context, vocab.ProfileInterface) error); ok {
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Move":
|
||||
if fn, ok := i.(func(context.Context, vocab.MoveInterface) error); ok {
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Question":
|
||||
if fn, ok := i.(func(context.Context, vocab.QuestionInterface) error); ok {
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Service":
|
||||
if fn, ok := i.(func(context.Context, vocab.ServiceInterface) error); ok {
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Remove":
|
||||
if fn, ok := i.(func(context.Context, vocab.RemoveInterface) error); ok {
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
case "Image":
|
||||
if fn, ok := i.(func(context.Context, vocab.ImageInterface) error); ok {
|
||||
if v, ok := o.(vocab.ImageInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -609,18 +348,72 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Travel":
|
||||
if fn, ok := i.(func(context.Context, vocab.TravelInterface) error); ok {
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
case "Invite":
|
||||
if fn, ok := i.(func(context.Context, vocab.InviteInterface) error); ok {
|
||||
if v, ok := o.(vocab.InviteInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Announce":
|
||||
if fn, ok := i.(func(context.Context, vocab.AnnounceInterface) error); ok {
|
||||
if v, ok := o.(vocab.AnnounceInterface); ok {
|
||||
case "Join":
|
||||
if fn, ok := i.(func(context.Context, vocab.JoinInterface) error); ok {
|
||||
if v, ok := o.(vocab.JoinInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Leave":
|
||||
if fn, ok := i.(func(context.Context, vocab.LeaveInterface) error); ok {
|
||||
if v, ok := o.(vocab.LeaveInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Like":
|
||||
if fn, ok := i.(func(context.Context, vocab.LikeInterface) error); ok {
|
||||
if v, ok := o.(vocab.LikeInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Link":
|
||||
if fn, ok := i.(func(context.Context, vocab.LinkInterface) error); ok {
|
||||
if v, ok := o.(vocab.LinkInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Listen":
|
||||
if fn, ok := i.(func(context.Context, vocab.ListenInterface) error); ok {
|
||||
if v, ok := o.(vocab.ListenInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Mention":
|
||||
if fn, ok := i.(func(context.Context, vocab.MentionInterface) error); ok {
|
||||
if v, ok := o.(vocab.MentionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Move":
|
||||
if fn, ok := i.(func(context.Context, vocab.MoveInterface) error); ok {
|
||||
if v, ok := o.(vocab.MoveInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
|
@ -636,6 +429,213 @@ func (this TypeResolver) Resolve(ctx context.Context, o ActivityStreamsInterface
|
|||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Object":
|
||||
if fn, ok := i.(func(context.Context, vocab.ObjectInterface) error); ok {
|
||||
if v, ok := o.(vocab.ObjectInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Offer":
|
||||
if fn, ok := i.(func(context.Context, vocab.OfferInterface) error); ok {
|
||||
if v, ok := o.(vocab.OfferInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "OrderedCollection":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrderedCollectionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "OrderedCollectionPage":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrderedCollectionPageInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrderedCollectionPageInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Organization":
|
||||
if fn, ok := i.(func(context.Context, vocab.OrganizationInterface) error); ok {
|
||||
if v, ok := o.(vocab.OrganizationInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Page":
|
||||
if fn, ok := i.(func(context.Context, vocab.PageInterface) error); ok {
|
||||
if v, ok := o.(vocab.PageInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Person":
|
||||
if fn, ok := i.(func(context.Context, vocab.PersonInterface) error); ok {
|
||||
if v, ok := o.(vocab.PersonInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Place":
|
||||
if fn, ok := i.(func(context.Context, vocab.PlaceInterface) error); ok {
|
||||
if v, ok := o.(vocab.PlaceInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Profile":
|
||||
if fn, ok := i.(func(context.Context, vocab.ProfileInterface) error); ok {
|
||||
if v, ok := o.(vocab.ProfileInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Question":
|
||||
if fn, ok := i.(func(context.Context, vocab.QuestionInterface) error); ok {
|
||||
if v, ok := o.(vocab.QuestionInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Read":
|
||||
if fn, ok := i.(func(context.Context, vocab.ReadInterface) error); ok {
|
||||
if v, ok := o.(vocab.ReadInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Reject":
|
||||
if fn, ok := i.(func(context.Context, vocab.RejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.RejectInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Relationship":
|
||||
if fn, ok := i.(func(context.Context, vocab.RelationshipInterface) error); ok {
|
||||
if v, ok := o.(vocab.RelationshipInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Remove":
|
||||
if fn, ok := i.(func(context.Context, vocab.RemoveInterface) error); ok {
|
||||
if v, ok := o.(vocab.RemoveInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Service":
|
||||
if fn, ok := i.(func(context.Context, vocab.ServiceInterface) error); ok {
|
||||
if v, ok := o.(vocab.ServiceInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "TentativeAccept":
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeAcceptInterface) error); ok {
|
||||
if v, ok := o.(vocab.TentativeAcceptInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "TentativeReject":
|
||||
if fn, ok := i.(func(context.Context, vocab.TentativeRejectInterface) error); ok {
|
||||
if v, ok := o.(vocab.TentativeRejectInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Tombstone":
|
||||
if fn, ok := i.(func(context.Context, vocab.TombstoneInterface) error); ok {
|
||||
if v, ok := o.(vocab.TombstoneInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Travel":
|
||||
if fn, ok := i.(func(context.Context, vocab.TravelInterface) error); ok {
|
||||
if v, ok := o.(vocab.TravelInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Undo":
|
||||
if fn, ok := i.(func(context.Context, vocab.UndoInterface) error); ok {
|
||||
if v, ok := o.(vocab.UndoInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Update":
|
||||
if fn, ok := i.(func(context.Context, vocab.UpdateInterface) error); ok {
|
||||
if v, ok := o.(vocab.UpdateInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "Video":
|
||||
if fn, ok := i.(func(context.Context, vocab.VideoInterface) error); ok {
|
||||
if v, ok := o.(vocab.VideoInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
case "View":
|
||||
if fn, ok := i.(func(context.Context, vocab.ViewInterface) error); ok {
|
||||
if v, ok := o.(vocab.ViewInterface); ok {
|
||||
return fn(ctx, v)
|
||||
} else {
|
||||
// This occurs when the value is either not a go-fed type and is improperly satisfying various interfaces, or there is a bug in the go-fed generated code.
|
||||
return errCannotTypeAssertType
|
||||
}
|
||||
}
|
||||
default:
|
||||
return ErrUnhandledType
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// AccuracyProperty is the functional property "accuracy". It is permitted to be a
|
||||
// single default-valued value type.
|
||||
type AccuracyProperty struct {
|
||||
floatMember float32
|
||||
floatMember float64
|
||||
hasFloatMember bool
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
|
@ -33,7 +33,8 @@ func DeserializeAccuracyProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &AccuracyProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeAccuracyProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := float.DeserializeFloat(i); err != nil {
|
||||
if v, err := float.DeserializeFloat(i); err == nil {
|
||||
this := &AccuracyProperty{
|
||||
alias: alias,
|
||||
floatMember: v,
|
||||
hasFloatMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &AccuracyProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -76,7 +77,7 @@ func (this *AccuracyProperty) Clear() {
|
|||
|
||||
// Get returns the value of this property. When IsFloat returns false, Get will
|
||||
// return any arbitrary value.
|
||||
func (this AccuracyProperty) Get() float32 {
|
||||
func (this AccuracyProperty) Get() float64 {
|
||||
return this.floatMember
|
||||
}
|
||||
|
||||
|
@ -178,12 +179,12 @@ func (this AccuracyProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsFloat afterwards will return
|
||||
// true.
|
||||
func (this *AccuracyProperty) Set(v float32) {
|
||||
func (this *AccuracyProperty) Set(v float64) {
|
||||
this.Clear()
|
||||
this.floatMember = v
|
||||
this.hasFloatMember = true
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@ import (
|
|||
// AltitudeProperty is the functional property "altitude". It is permitted to be a
|
||||
// single default-valued value type.
|
||||
type AltitudeProperty struct {
|
||||
floatMember float32
|
||||
floatMember float64
|
||||
hasFloatMember bool
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
|
@ -33,7 +33,8 @@ func DeserializeAltitudeProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &AltitudeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeAltitudeProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := float.DeserializeFloat(i); err != nil {
|
||||
if v, err := float.DeserializeFloat(i); err == nil {
|
||||
this := &AltitudeProperty{
|
||||
alias: alias,
|
||||
floatMember: v,
|
||||
hasFloatMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &AltitudeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -76,7 +77,7 @@ func (this *AltitudeProperty) Clear() {
|
|||
|
||||
// Get returns the value of this property. When IsFloat returns false, Get will
|
||||
// return any arbitrary value.
|
||||
func (this AltitudeProperty) Get() float32 {
|
||||
func (this AltitudeProperty) Get() float64 {
|
||||
return this.floatMember
|
||||
}
|
||||
|
||||
|
@ -178,12 +179,12 @@ func (this AltitudeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsFloat afterwards will return
|
||||
// true.
|
||||
func (this *AltitudeProperty) Set(v float32) {
|
||||
func (this *AltitudeProperty) Set(v float64) {
|
||||
this.Clear()
|
||||
this.floatMember = v
|
||||
this.hasFloatMember = true
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -40,7 +40,8 @@ func deserializeContentPropertyIterator(i interface{}, aliasMap map[string]strin
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &ContentPropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -48,23 +49,23 @@ func deserializeContentPropertyIterator(i interface{}, aliasMap map[string]strin
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err != nil {
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &ContentPropertyIterator{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
stringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := langstring.DeserializeLangString(i); err != nil {
|
||||
} else if v, err := langstring.DeserializeLangString(i); err == nil {
|
||||
this := &ContentPropertyIterator{
|
||||
alias: alias,
|
||||
langStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &ContentPropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -290,7 +291,7 @@ func (this ContentPropertyIterator) serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// ContentProperty is the non-functional property "content". It is permitted to
|
||||
|
@ -307,7 +308,6 @@ func DeserializeContentProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *ContentProperty
|
||||
propName := "content"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "content")
|
||||
|
@ -337,8 +337,9 @@ func DeserializeContentProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewContentProperty creates a new content property.
|
||||
|
@ -560,6 +561,10 @@ func (this ContentProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -15,6 +15,14 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,13 @@ import (
|
|||
// one of the 'Is' methods will return true. It is possible to clear all
|
||||
// values, so that this property is empty.
|
||||
type CurrentProperty struct {
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeCurrentProperty creates a "current" property from an interface
|
||||
|
@ -35,7 +37,8 @@ func DeserializeCurrentProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &CurrentProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +47,35 @@ func DeserializeCurrentProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &CurrentProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &CurrentProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &CurrentProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &CurrentProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &CurrentProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +95,8 @@ func NewCurrentProperty() *CurrentProperty {
|
|||
func (this *CurrentProperty) Clear() {
|
||||
this.CollectionPageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -102,10 +119,25 @@ func (this CurrentProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this CurrentProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this CurrentProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this CurrentProperty) HasAny() bool {
|
||||
return this.IsCollectionPage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +160,19 @@ func (this CurrentProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this CurrentProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this CurrentProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +183,10 @@ func (this CurrentProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +209,12 @@ func (this CurrentProperty) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +236,10 @@ func (this CurrentProperty) LessThan(o vocab.CurrentPropertyInterface) bool {
|
|||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +260,14 @@ func (this CurrentProperty) Serialize() (interface{}, error) {
|
|||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
|
@ -225,3 +288,17 @@ func (this *CurrentProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *CurrentProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *CurrentProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -34,7 +34,8 @@ func DeserializeDeletedProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &DeletedProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func DeserializeDeletedProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := datetime.DeserializeDateTime(i); err != nil {
|
||||
if v, err := datetime.DeserializeDateTime(i); err == nil {
|
||||
this := &DeletedProperty{
|
||||
alias: alias,
|
||||
dateTimeMember: v,
|
||||
hasDateTimeMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &DeletedProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -179,7 +180,7 @@ func (this DeletedProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsDateTime afterwards will return
|
||||
|
|
|
@ -7,10 +7,214 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -34,7 +34,8 @@ func DeserializeDurationProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &DurationProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func DeserializeDurationProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := duration.DeserializeDuration(i); err != nil {
|
||||
if v, err := duration.DeserializeDuration(i); err == nil {
|
||||
this := &DurationProperty{
|
||||
alias: alias,
|
||||
durationMember: v,
|
||||
hasDurationMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &DurationProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -179,7 +180,7 @@ func (this DurationProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsDuration afterwards will return
|
||||
|
|
|
@ -34,7 +34,8 @@ func DeserializeEndTimeProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &EndTimeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func DeserializeEndTimeProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := datetime.DeserializeDateTime(i); err != nil {
|
||||
if v, err := datetime.DeserializeDateTime(i); err == nil {
|
||||
this := &EndTimeProperty{
|
||||
alias: alias,
|
||||
dateTimeMember: v,
|
||||
hasDateTimeMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &EndTimeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -179,7 +180,7 @@ func (this EndTimeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsDateTime afterwards will return
|
||||
|
|
|
@ -15,6 +15,14 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,13 @@ import (
|
|||
// of the 'Is' methods will return true. It is possible to clear all values,
|
||||
// so that this property is empty.
|
||||
type FirstProperty struct {
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeFirstProperty creates a "first" property from an interface
|
||||
|
@ -35,7 +37,8 @@ func DeserializeFirstProperty(m map[string]interface{}, aliasMap map[string]stri
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &FirstProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +47,35 @@ func DeserializeFirstProperty(m map[string]interface{}, aliasMap map[string]stri
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &FirstProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &FirstProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &FirstProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &FirstProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &FirstProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +95,8 @@ func NewFirstProperty() *FirstProperty {
|
|||
func (this *FirstProperty) Clear() {
|
||||
this.CollectionPageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -102,10 +119,25 @@ func (this FirstProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this FirstProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this FirstProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this FirstProperty) HasAny() bool {
|
||||
return this.IsCollectionPage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +160,19 @@ func (this FirstProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this FirstProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this FirstProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +183,10 @@ func (this FirstProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +209,12 @@ func (this FirstProperty) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +236,10 @@ func (this FirstProperty) LessThan(o vocab.FirstPropertyInterface) bool {
|
|||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +260,14 @@ func (this FirstProperty) Serialize() (interface{}, error) {
|
|||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
|
@ -225,3 +288,17 @@ func (this *FirstProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *FirstProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *FirstProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -7,10 +7,214 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,7 +33,8 @@ func DeserializeHeightProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &HeightProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeHeightProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err != nil {
|
||||
if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
|
||||
this := &HeightProperty{
|
||||
alias: alias,
|
||||
hasNonNegativeIntegerMember: true,
|
||||
nonNegativeIntegerMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &HeightProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -178,7 +179,7 @@ func (this HeightProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsNonNegativeInteger afterwards
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
type HrefProperty struct {
|
||||
anyURIMember *url.URL
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
|
@ -29,16 +28,16 @@ func DeserializeHrefProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
propName = fmt.Sprintf("%s:%s", alias, "href")
|
||||
}
|
||||
if i, ok := m[propName]; ok {
|
||||
if v, err := anyuri.DeserializeAnyURI(i); err != nil {
|
||||
if v, err := anyuri.DeserializeAnyURI(i); err == nil {
|
||||
this := &HrefProperty{
|
||||
alias: alias,
|
||||
anyURIMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &HrefProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -57,7 +56,6 @@ func NewHrefProperty() *HrefProperty {
|
|||
// will return false.
|
||||
func (this *HrefProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.anyURIMember = nil
|
||||
}
|
||||
|
||||
|
@ -70,12 +68,12 @@ func (this HrefProperty) Get() *url.URL {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this HrefProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
return this.anyURIMember
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this HrefProperty) HasAny() bool {
|
||||
return this.IsAnyURI() || this.iri != nil
|
||||
return this.IsAnyURI()
|
||||
}
|
||||
|
||||
// IsAnyURI returns true if this property is set and not an IRI.
|
||||
|
@ -85,7 +83,7 @@ func (this HrefProperty) IsAnyURI() bool {
|
|||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this HrefProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
return this.anyURIMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
|
@ -124,10 +122,7 @@ func (this HrefProperty) KindIndex() int {
|
|||
// help alternative implementations to go-fed to be able to normalize
|
||||
// nonfunctional properties.
|
||||
func (this HrefProperty) LessThan(o vocab.HrefPropertyInterface) bool {
|
||||
// LessThan comparison for if either or both are IRIs.
|
||||
if this.IsIRI() && o.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
} else if this.IsIRI() {
|
||||
if this.IsIRI() {
|
||||
// IRIs are always less than other values, none, or unknowns
|
||||
return true
|
||||
} else if o.IsIRI() {
|
||||
|
@ -162,10 +157,8 @@ func (this HrefProperty) Name() string {
|
|||
func (this HrefProperty) Serialize() (interface{}, error) {
|
||||
if this.IsAnyURI() {
|
||||
return anyuri.SerializeAnyURI(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsAnyURI afterwards will return
|
||||
|
@ -179,5 +172,5 @@ func (this *HrefProperty) Set(v *url.URL) {
|
|||
// true.
|
||||
func (this *HrefProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
this.Set(v)
|
||||
}
|
||||
|
|
|
@ -33,7 +33,8 @@ func DeserializeHreflangProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &HreflangProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeHreflangProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := bcp47.DeserializeBcp47(i); err != nil {
|
||||
if v, err := bcp47.DeserializeBcp47(i); err == nil {
|
||||
this := &HreflangProperty{
|
||||
alias: alias,
|
||||
bcp47Member: v,
|
||||
hasBcp47Member: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &HreflangProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -178,7 +179,7 @@ func (this HreflangProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsBcp47 afterwards will return
|
||||
|
|
|
@ -15,6 +15,10 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,13 +12,14 @@ import (
|
|||
// one of the 'Is' methods will return true. It is possible to clear all
|
||||
// values, so that this property is empty.
|
||||
type IconPropertyIterator struct {
|
||||
ImageMember vocab.ImageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.IconPropertyInterface
|
||||
ImageMember vocab.ImageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.IconPropertyInterface
|
||||
}
|
||||
|
||||
// NewIconPropertyIterator creates a new icon property.
|
||||
|
@ -36,7 +37,8 @@ func deserializeIconPropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &IconPropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -45,23 +47,29 @@ func deserializeIconPropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &IconPropertyIterator{
|
||||
ImageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &IconPropertyIterator{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &IconPropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &IconPropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -86,10 +94,17 @@ func (this IconPropertyIterator) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this IconPropertyIterator) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this IconPropertyIterator) HasAny() bool {
|
||||
return this.IsImage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -111,6 +126,12 @@ func (this IconPropertyIterator) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this IconPropertyIterator) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -121,6 +142,8 @@ func (this IconPropertyIterator) JSONLDContext() map[string]string {
|
|||
child = this.GetImage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -143,6 +166,9 @@ func (this IconPropertyIterator) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -164,6 +190,8 @@ func (this IconPropertyIterator) LessThan(o vocab.IconPropertyIteratorInterface)
|
|||
return this.GetImage().LessThan(o.GetImage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -212,11 +240,19 @@ func (this *IconPropertyIterator) SetLink(v vocab.LinkInterface) {
|
|||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *IconPropertyIterator) SetMention(v vocab.MentionInterface) {
|
||||
this.clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// clear ensures no value of this property is set. Calling HasAny or any of the
|
||||
// 'Is' methods afterwards will return false.
|
||||
func (this *IconPropertyIterator) clear() {
|
||||
this.ImageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -230,10 +266,12 @@ func (this IconPropertyIterator) serialize() (interface{}, error) {
|
|||
return this.GetImage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// IconProperty is the non-functional property "icon". It is permitted to have one
|
||||
|
@ -250,7 +288,6 @@ func DeserializeIconProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *IconProperty
|
||||
propName := "icon"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "icon")
|
||||
|
@ -280,8 +317,9 @@ func DeserializeIconProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewIconProperty creates a new icon property.
|
||||
|
@ -321,6 +359,17 @@ func (this *IconProperty) AppendLink(v vocab.LinkInterface) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendMention appends a Mention value to the back of a list of the property
|
||||
// "icon". Invalidates iterators that are traversing using Prev.
|
||||
func (this *IconProperty) AppendMention(v vocab.MentionInterface) {
|
||||
this.properties = append(this.properties, &IconPropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
})
|
||||
}
|
||||
|
||||
// At returns the property value for the specified index. Panics if the index is
|
||||
// out of bounds.
|
||||
func (this IconProperty) At(index int) vocab.IconPropertyIteratorInterface {
|
||||
|
@ -398,6 +447,10 @@ func (this IconProperty) Less(i, j int) bool {
|
|||
lhs := this.properties[i].GetLink()
|
||||
rhs := this.properties[j].GetLink()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 2 {
|
||||
lhs := this.properties[i].GetMention()
|
||||
rhs := this.properties[j].GetMention()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == -2 {
|
||||
lhs := this.properties[i].GetIRI()
|
||||
rhs := this.properties[j].GetIRI()
|
||||
|
@ -474,6 +527,20 @@ func (this *IconProperty) PrependLink(v vocab.LinkInterface) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependMention prepends a Mention value to the front of a list of the property
|
||||
// "icon". Invalidates all iterators.
|
||||
func (this *IconProperty) PrependMention(v vocab.MentionInterface) {
|
||||
this.properties = append([]*IconPropertyIterator{{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// Remove deletes an element at the specified index from a list of the property
|
||||
// "icon", regardless of its type. Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
@ -500,6 +567,10 @@ func (this IconProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
@ -539,6 +610,18 @@ func (this *IconProperty) SetLink(idx int, v vocab.LinkInterface) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetMention sets a Mention value to be at the specified index for the property
|
||||
// "icon". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *IconProperty) SetMention(idx int, v vocab.MentionInterface) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &IconPropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
}
|
||||
|
||||
// Swap swaps the location of values at two indices for the "icon" property.
|
||||
func (this IconProperty) Swap(i, j int) {
|
||||
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
|
||||
|
|
|
@ -12,7 +12,6 @@ import (
|
|||
type IdProperty struct {
|
||||
anyURIMember *url.URL
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
|
@ -29,16 +28,16 @@ func DeserializeIdProperty(m map[string]interface{}, aliasMap map[string]string)
|
|||
propName = fmt.Sprintf("%s:%s", alias, "id")
|
||||
}
|
||||
if i, ok := m[propName]; ok {
|
||||
if v, err := anyuri.DeserializeAnyURI(i); err != nil {
|
||||
if v, err := anyuri.DeserializeAnyURI(i); err == nil {
|
||||
this := &IdProperty{
|
||||
alias: alias,
|
||||
anyURIMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &IdProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -57,7 +56,6 @@ func NewIdProperty() *IdProperty {
|
|||
// will return false.
|
||||
func (this *IdProperty) Clear() {
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.anyURIMember = nil
|
||||
}
|
||||
|
||||
|
@ -70,12 +68,12 @@ func (this IdProperty) Get() *url.URL {
|
|||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
func (this IdProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
return this.anyURIMember
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this IdProperty) HasAny() bool {
|
||||
return this.IsAnyURI() || this.iri != nil
|
||||
return this.IsAnyURI()
|
||||
}
|
||||
|
||||
// IsAnyURI returns true if this property is set and not an IRI.
|
||||
|
@ -85,7 +83,7 @@ func (this IdProperty) IsAnyURI() bool {
|
|||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
func (this IdProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
return this.anyURIMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
|
@ -124,10 +122,7 @@ func (this IdProperty) KindIndex() int {
|
|||
// help alternative implementations to go-fed to be able to normalize
|
||||
// nonfunctional properties.
|
||||
func (this IdProperty) LessThan(o vocab.IdPropertyInterface) bool {
|
||||
// LessThan comparison for if either or both are IRIs.
|
||||
if this.IsIRI() && o.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
} else if this.IsIRI() {
|
||||
if this.IsIRI() {
|
||||
// IRIs are always less than other values, none, or unknowns
|
||||
return true
|
||||
} else if o.IsIRI() {
|
||||
|
@ -162,10 +157,8 @@ func (this IdProperty) Name() string {
|
|||
func (this IdProperty) Serialize() (interface{}, error) {
|
||||
if this.IsAnyURI() {
|
||||
return anyuri.SerializeAnyURI(this.Get())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsAnyURI afterwards will return
|
||||
|
@ -179,5 +172,5 @@ func (this *IdProperty) Set(v *url.URL) {
|
|||
// true.
|
||||
func (this *IdProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
this.Set(v)
|
||||
}
|
||||
|
|
|
@ -15,6 +15,10 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,13 +12,14 @@ import (
|
|||
// one of the 'Is' methods will return true. It is possible to clear all
|
||||
// values, so that this property is empty.
|
||||
type ImagePropertyIterator struct {
|
||||
ImageMember vocab.ImageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.ImagePropertyInterface
|
||||
ImageMember vocab.ImageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
myIdx int
|
||||
parent vocab.ImagePropertyInterface
|
||||
}
|
||||
|
||||
// NewImagePropertyIterator creates a new image property.
|
||||
|
@ -36,7 +37,8 @@ func deserializeImagePropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &ImagePropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -45,23 +47,29 @@ func deserializeImagePropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeImageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ImagePropertyIterator{
|
||||
ImageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ImagePropertyIterator{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &ImagePropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &ImagePropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -86,10 +94,17 @@ func (this ImagePropertyIterator) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this ImagePropertyIterator) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this ImagePropertyIterator) HasAny() bool {
|
||||
return this.IsImage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -111,6 +126,12 @@ func (this ImagePropertyIterator) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this ImagePropertyIterator) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -121,6 +142,8 @@ func (this ImagePropertyIterator) JSONLDContext() map[string]string {
|
|||
child = this.GetImage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -143,6 +166,9 @@ func (this ImagePropertyIterator) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -164,6 +190,8 @@ func (this ImagePropertyIterator) LessThan(o vocab.ImagePropertyIteratorInterfac
|
|||
return this.GetImage().LessThan(o.GetImage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -212,11 +240,19 @@ func (this *ImagePropertyIterator) SetLink(v vocab.LinkInterface) {
|
|||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *ImagePropertyIterator) SetMention(v vocab.MentionInterface) {
|
||||
this.clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// clear ensures no value of this property is set. Calling HasAny or any of the
|
||||
// 'Is' methods afterwards will return false.
|
||||
func (this *ImagePropertyIterator) clear() {
|
||||
this.ImageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -230,10 +266,12 @@ func (this ImagePropertyIterator) serialize() (interface{}, error) {
|
|||
return this.GetImage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// ImageProperty is the non-functional property "image". It is permitted to have
|
||||
|
@ -250,7 +288,6 @@ func DeserializeImageProperty(m map[string]interface{}, aliasMap map[string]stri
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *ImageProperty
|
||||
propName := "image"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "image")
|
||||
|
@ -280,8 +317,9 @@ func DeserializeImageProperty(m map[string]interface{}, aliasMap map[string]stri
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewImageProperty creates a new image property.
|
||||
|
@ -321,6 +359,17 @@ func (this *ImageProperty) AppendLink(v vocab.LinkInterface) {
|
|||
})
|
||||
}
|
||||
|
||||
// AppendMention appends a Mention value to the back of a list of the property
|
||||
// "image". Invalidates iterators that are traversing using Prev.
|
||||
func (this *ImageProperty) AppendMention(v vocab.MentionInterface) {
|
||||
this.properties = append(this.properties, &ImagePropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: this.Len(),
|
||||
parent: this,
|
||||
})
|
||||
}
|
||||
|
||||
// At returns the property value for the specified index. Panics if the index is
|
||||
// out of bounds.
|
||||
func (this ImageProperty) At(index int) vocab.ImagePropertyIteratorInterface {
|
||||
|
@ -398,6 +447,10 @@ func (this ImageProperty) Less(i, j int) bool {
|
|||
lhs := this.properties[i].GetLink()
|
||||
rhs := this.properties[j].GetLink()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == 2 {
|
||||
lhs := this.properties[i].GetMention()
|
||||
rhs := this.properties[j].GetMention()
|
||||
return lhs.LessThan(rhs)
|
||||
} else if idx1 == -2 {
|
||||
lhs := this.properties[i].GetIRI()
|
||||
rhs := this.properties[j].GetIRI()
|
||||
|
@ -474,6 +527,20 @@ func (this *ImageProperty) PrependLink(v vocab.LinkInterface) {
|
|||
}
|
||||
}
|
||||
|
||||
// PrependMention prepends a Mention value to the front of a list of the property
|
||||
// "image". Invalidates all iterators.
|
||||
func (this *ImageProperty) PrependMention(v vocab.MentionInterface) {
|
||||
this.properties = append([]*ImagePropertyIterator{{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: 0,
|
||||
parent: this,
|
||||
}}, this.properties...)
|
||||
for i := 1; i < this.Len(); i++ {
|
||||
(this.properties)[i].myIdx = i
|
||||
}
|
||||
}
|
||||
|
||||
// Remove deletes an element at the specified index from a list of the property
|
||||
// "image", regardless of its type. Panics if the index is out of bounds.
|
||||
// Invalidates all iterators.
|
||||
|
@ -500,6 +567,10 @@ func (this ImageProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
@ -539,6 +610,18 @@ func (this *ImageProperty) SetLink(idx int, v vocab.LinkInterface) {
|
|||
}
|
||||
}
|
||||
|
||||
// SetMention sets a Mention value to be at the specified index for the property
|
||||
// "image". Panics if the index is out of bounds. Invalidates all iterators.
|
||||
func (this *ImageProperty) SetMention(idx int, v vocab.MentionInterface) {
|
||||
(this.properties)[idx].parent = nil
|
||||
(this.properties)[idx] = &ImagePropertyIterator{
|
||||
MentionMember: v,
|
||||
alias: this.alias,
|
||||
myIdx: idx,
|
||||
parent: this,
|
||||
}
|
||||
}
|
||||
|
||||
// Swap swaps the location of values at two indices for the "image" property.
|
||||
func (this ImageProperty) Swap(i, j int) {
|
||||
this.properties[i], this.properties[j] = this.properties[j], this.properties[i]
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -15,6 +15,14 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,13 @@ import (
|
|||
// of the 'Is' methods will return true. It is possible to clear all values,
|
||||
// so that this property is empty.
|
||||
type LastProperty struct {
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeLastProperty creates a "last" property from an interface
|
||||
|
@ -35,7 +37,8 @@ func DeserializeLastProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &LastProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +47,35 @@ func DeserializeLastProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &LastProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &LastProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &LastProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &LastProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &LastProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +95,8 @@ func NewLastProperty() *LastProperty {
|
|||
func (this *LastProperty) Clear() {
|
||||
this.CollectionPageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -102,10 +119,25 @@ func (this LastProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this LastProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this LastProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this LastProperty) HasAny() bool {
|
||||
return this.IsCollectionPage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +160,19 @@ func (this LastProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this LastProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this LastProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +183,10 @@ func (this LastProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +209,12 @@ func (this LastProperty) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +236,10 @@ func (this LastProperty) LessThan(o vocab.LastPropertyInterface) bool {
|
|||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +260,14 @@ func (this LastProperty) Serialize() (interface{}, error) {
|
|||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
|
@ -225,3 +288,17 @@ func (this *LastProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *LastProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *LastProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// LatitudeProperty is the functional property "latitude". It is permitted to be a
|
||||
// single default-valued value type.
|
||||
type LatitudeProperty struct {
|
||||
floatMember float32
|
||||
floatMember float64
|
||||
hasFloatMember bool
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
|
@ -33,7 +33,8 @@ func DeserializeLatitudeProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &LatitudeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeLatitudeProperty(m map[string]interface{}, aliasMap map[string]s
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := float.DeserializeFloat(i); err != nil {
|
||||
if v, err := float.DeserializeFloat(i); err == nil {
|
||||
this := &LatitudeProperty{
|
||||
alias: alias,
|
||||
floatMember: v,
|
||||
hasFloatMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &LatitudeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -76,7 +77,7 @@ func (this *LatitudeProperty) Clear() {
|
|||
|
||||
// Get returns the value of this property. When IsFloat returns false, Get will
|
||||
// return any arbitrary value.
|
||||
func (this LatitudeProperty) Get() float32 {
|
||||
func (this LatitudeProperty) Get() float64 {
|
||||
return this.floatMember
|
||||
}
|
||||
|
||||
|
@ -178,12 +179,12 @@ func (this LatitudeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsFloat afterwards will return
|
||||
// true.
|
||||
func (this *LatitudeProperty) Set(v float32) {
|
||||
func (this *LatitudeProperty) Set(v float64) {
|
||||
this.Clear()
|
||||
this.floatMember = v
|
||||
this.hasFloatMember = true
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -10,7 +10,7 @@ import (
|
|||
// LongitudeProperty is the functional property "longitude". It is permitted to be
|
||||
// a single default-valued value type.
|
||||
type LongitudeProperty struct {
|
||||
floatMember float32
|
||||
floatMember float64
|
||||
hasFloatMember bool
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
|
@ -33,7 +33,8 @@ func DeserializeLongitudeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &LongitudeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeLongitudeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := float.DeserializeFloat(i); err != nil {
|
||||
if v, err := float.DeserializeFloat(i); err == nil {
|
||||
this := &LongitudeProperty{
|
||||
alias: alias,
|
||||
floatMember: v,
|
||||
hasFloatMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &LongitudeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -76,7 +77,7 @@ func (this *LongitudeProperty) Clear() {
|
|||
|
||||
// Get returns the value of this property. When IsFloat returns false, Get will
|
||||
// return any arbitrary value.
|
||||
func (this LongitudeProperty) Get() float32 {
|
||||
func (this LongitudeProperty) Get() float64 {
|
||||
return this.floatMember
|
||||
}
|
||||
|
||||
|
@ -178,12 +179,12 @@ func (this LongitudeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsFloat afterwards will return
|
||||
// true.
|
||||
func (this *LongitudeProperty) Set(v float32) {
|
||||
func (this *LongitudeProperty) Set(v float64) {
|
||||
this.Clear()
|
||||
this.floatMember = v
|
||||
this.hasFloatMember = true
|
||||
|
|
|
@ -33,7 +33,8 @@ func DeserializeMediaTypeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &MediaTypeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeMediaTypeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := rfc2045.DeserializeRfc2045(i); err != nil {
|
||||
if v, err := rfc2045.DeserializeRfc2045(i); err == nil {
|
||||
this := &MediaTypeProperty{
|
||||
alias: alias,
|
||||
hasRfc2045Member: true,
|
||||
rfc2045Member: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &MediaTypeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -178,7 +179,7 @@ func (this MediaTypeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsRfc2045 afterwards will return
|
||||
|
|
|
@ -40,7 +40,8 @@ func deserializeNamePropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &NamePropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -48,23 +49,23 @@ func deserializeNamePropertyIterator(i interface{}, aliasMap map[string]string)
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err != nil {
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &NamePropertyIterator{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
stringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := langstring.DeserializeLangString(i); err != nil {
|
||||
} else if v, err := langstring.DeserializeLangString(i); err == nil {
|
||||
this := &NamePropertyIterator{
|
||||
alias: alias,
|
||||
langStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &NamePropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -290,7 +291,7 @@ func (this NamePropertyIterator) serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// NameProperty is the non-functional property "name". It is permitted to have one
|
||||
|
@ -307,7 +308,6 @@ func DeserializeNameProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *NameProperty
|
||||
propName := "name"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "name")
|
||||
|
@ -337,8 +337,9 @@ func DeserializeNameProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewNameProperty creates a new name property.
|
||||
|
@ -559,6 +560,10 @@ func (this NameProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -15,6 +15,14 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,13 @@ import (
|
|||
// of the 'Is' methods will return true. It is possible to clear all values,
|
||||
// so that this property is empty.
|
||||
type NextProperty struct {
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeNextProperty creates a "next" property from an interface
|
||||
|
@ -35,7 +37,8 @@ func DeserializeNextProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &NextProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +47,35 @@ func DeserializeNextProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &NextProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &NextProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &NextProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &NextProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &NextProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +95,8 @@ func NewNextProperty() *NextProperty {
|
|||
func (this *NextProperty) Clear() {
|
||||
this.CollectionPageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -102,10 +119,25 @@ func (this NextProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this NextProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this NextProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this NextProperty) HasAny() bool {
|
||||
return this.IsCollectionPage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +160,19 @@ func (this NextProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this NextProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this NextProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +183,10 @@ func (this NextProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +209,12 @@ func (this NextProperty) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +236,10 @@ func (this NextProperty) LessThan(o vocab.NextPropertyInterface) bool {
|
|||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +260,14 @@ func (this NextProperty) Serialize() (interface{}, error) {
|
|||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
|
@ -225,3 +288,17 @@ func (this *NextProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *NextProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *NextProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -11,10 +11,26 @@ type privateManager interface {
|
|||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,15 @@ import (
|
|||
// one of the 'Is' methods will return true. It is possible to clear all
|
||||
// values, so that this property is empty.
|
||||
type PartOfProperty struct {
|
||||
LinkMember vocab.LinkInterface
|
||||
CollectionMember vocab.CollectionInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
LinkMember vocab.LinkInterface
|
||||
CollectionMember vocab.CollectionInterface
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionMember vocab.OrderedCollectionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializePartOfProperty creates a "partOf" property from an interface
|
||||
|
@ -35,7 +39,8 @@ func DeserializePartOfProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &PartOfProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +49,47 @@ func DeserializePartOfProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
CollectionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
OrderedCollectionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PartOfProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &PartOfProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +109,10 @@ func NewPartOfProperty() *PartOfProperty {
|
|||
func (this *PartOfProperty) Clear() {
|
||||
this.LinkMember = nil
|
||||
this.CollectionMember = nil
|
||||
this.CollectionPageMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -90,6 +123,12 @@ func (this PartOfProperty) GetCollection() vocab.CollectionInterface {
|
|||
return this.CollectionMember
|
||||
}
|
||||
|
||||
// GetCollectionPage returns the value of this property. When IsCollectionPage
|
||||
// returns false, GetCollectionPage will return an arbitrary value.
|
||||
func (this PartOfProperty) GetCollectionPage() vocab.CollectionPageInterface {
|
||||
return this.CollectionPageMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return an arbitrary value.
|
||||
func (this PartOfProperty) GetIRI() *url.URL {
|
||||
|
@ -102,10 +141,34 @@ func (this PartOfProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this PartOfProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollection returns the value of this property. When
|
||||
// IsOrderedCollection returns false, GetOrderedCollection will return an
|
||||
// arbitrary value.
|
||||
func (this PartOfProperty) GetOrderedCollection() vocab.OrderedCollectionInterface {
|
||||
return this.OrderedCollectionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this PartOfProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this PartOfProperty) HasAny() bool {
|
||||
return this.IsLink() ||
|
||||
this.IsCollection() ||
|
||||
this.IsCollectionPage() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollection() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -116,6 +179,13 @@ func (this PartOfProperty) IsCollection() bool {
|
|||
return this.CollectionMember != nil
|
||||
}
|
||||
|
||||
// IsCollectionPage returns true if this property has a type of "CollectionPage".
|
||||
// When true, use the GetCollectionPage and SetCollectionPage methods to
|
||||
// access and set this property.
|
||||
func (this PartOfProperty) IsCollectionPage() bool {
|
||||
return this.CollectionPageMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
|
||||
// to access and set this property
|
||||
func (this PartOfProperty) IsIRI() bool {
|
||||
|
@ -128,6 +198,26 @@ func (this PartOfProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this PartOfProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollection returns true if this property has a type of
|
||||
// "OrderedCollection". When true, use the GetOrderedCollection and
|
||||
// SetOrderedCollection methods to access and set this property.
|
||||
func (this PartOfProperty) IsOrderedCollection() bool {
|
||||
return this.OrderedCollectionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this PartOfProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +228,14 @@ func (this PartOfProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsCollection() {
|
||||
child = this.GetCollection().JSONLDContext()
|
||||
} else if this.IsCollectionPage() {
|
||||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollection() {
|
||||
child = this.GetOrderedCollection().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +258,18 @@ func (this PartOfProperty) KindIndex() int {
|
|||
if this.IsCollection() {
|
||||
return 1
|
||||
}
|
||||
if this.IsCollectionPage() {
|
||||
return 2
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 3
|
||||
}
|
||||
if this.IsOrderedCollection() {
|
||||
return 4
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 5
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +291,14 @@ func (this PartOfProperty) LessThan(o vocab.PartOfPropertyInterface) bool {
|
|||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsCollection() {
|
||||
return this.GetCollection().LessThan(o.GetCollection())
|
||||
} else if this.IsCollectionPage() {
|
||||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollection() {
|
||||
return this.GetOrderedCollection().LessThan(o.GetOrderedCollection())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +319,18 @@ func (this PartOfProperty) Serialize() (interface{}, error) {
|
|||
return this.GetLink().Serialize()
|
||||
} else if this.IsCollection() {
|
||||
return this.GetCollection().Serialize()
|
||||
} else if this.IsCollectionPage() {
|
||||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollection() {
|
||||
return this.GetOrderedCollection().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollection sets the value of this property. Calling IsCollection afterwards
|
||||
|
@ -214,6 +340,13 @@ func (this *PartOfProperty) SetCollection(v vocab.CollectionInterface) {
|
|||
this.CollectionMember = v
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
// afterwards returns true.
|
||||
func (this *PartOfProperty) SetCollectionPage(v vocab.CollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.CollectionPageMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
|
||||
func (this *PartOfProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
|
@ -225,3 +358,24 @@ func (this *PartOfProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *PartOfProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollection sets the value of this property. Calling
|
||||
// IsOrderedCollection afterwards returns true.
|
||||
func (this *PartOfProperty) SetOrderedCollection(v vocab.OrderedCollectionInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *PartOfProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -15,6 +15,14 @@ type privateManager interface {
|
|||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -12,11 +12,13 @@ import (
|
|||
// of the 'Is' methods will return true. It is possible to clear all values,
|
||||
// so that this property is empty.
|
||||
type PrevProperty struct {
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
LinkMember vocab.LinkInterface
|
||||
MentionMember vocab.MentionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializePrevProperty creates a "prev" property from an interface
|
||||
|
@ -35,7 +37,8 @@ func DeserializePrevProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &PrevProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -44,23 +47,35 @@ func DeserializePrevProperty(m map[string]interface{}, aliasMap map[string]strin
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PrevProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err != nil {
|
||||
} else if v, err := mgr.DeserializeLinkActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PrevProperty{
|
||||
LinkMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeMentionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PrevProperty{
|
||||
MentionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &PrevProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &PrevProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -80,6 +95,8 @@ func NewPrevProperty() *PrevProperty {
|
|||
func (this *PrevProperty) Clear() {
|
||||
this.CollectionPageMember = nil
|
||||
this.LinkMember = nil
|
||||
this.MentionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
}
|
||||
|
@ -102,10 +119,25 @@ func (this PrevProperty) GetLink() vocab.LinkInterface {
|
|||
return this.LinkMember
|
||||
}
|
||||
|
||||
// GetMention returns the value of this property. When IsMention returns false,
|
||||
// GetMention will return an arbitrary value.
|
||||
func (this PrevProperty) GetMention() vocab.MentionInterface {
|
||||
return this.MentionMember
|
||||
}
|
||||
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this PrevProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this PrevProperty) HasAny() bool {
|
||||
return this.IsCollectionPage() ||
|
||||
this.IsLink() ||
|
||||
this.IsMention() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
|
@ -128,6 +160,19 @@ func (this PrevProperty) IsLink() bool {
|
|||
return this.LinkMember != nil
|
||||
}
|
||||
|
||||
// IsMention returns true if this property has a type of "Mention". When true, use
|
||||
// the GetMention and SetMention methods to access and set this property.
|
||||
func (this PrevProperty) IsMention() bool {
|
||||
return this.MentionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this PrevProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -138,6 +183,10 @@ func (this PrevProperty) JSONLDContext() map[string]string {
|
|||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsLink() {
|
||||
child = this.GetLink().JSONLDContext()
|
||||
} else if this.IsMention() {
|
||||
child = this.GetMention().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -160,6 +209,12 @@ func (this PrevProperty) KindIndex() int {
|
|||
if this.IsLink() {
|
||||
return 1
|
||||
}
|
||||
if this.IsMention() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -181,6 +236,10 @@ func (this PrevProperty) LessThan(o vocab.PrevPropertyInterface) bool {
|
|||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().LessThan(o.GetLink())
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().LessThan(o.GetMention())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
|
@ -201,10 +260,14 @@ func (this PrevProperty) Serialize() (interface{}, error) {
|
|||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsLink() {
|
||||
return this.GetLink().Serialize()
|
||||
} else if this.IsMention() {
|
||||
return this.GetMention().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
|
@ -225,3 +288,17 @@ func (this *PrevProperty) SetLink(v vocab.LinkInterface) {
|
|||
this.Clear()
|
||||
this.LinkMember = v
|
||||
}
|
||||
|
||||
// SetMention sets the value of this property. Calling IsMention afterwards
|
||||
// returns true.
|
||||
func (this *PrevProperty) SetMention(v vocab.MentionInterface) {
|
||||
this.Clear()
|
||||
this.MentionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *PrevProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -34,7 +34,8 @@ func DeserializePublishedProperty(m map[string]interface{}, aliasMap map[string]
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &PublishedProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func DeserializePublishedProperty(m map[string]interface{}, aliasMap map[string]
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := datetime.DeserializeDateTime(i); err != nil {
|
||||
if v, err := datetime.DeserializeDateTime(i); err == nil {
|
||||
this := &PublishedProperty{
|
||||
alias: alias,
|
||||
dateTimeMember: v,
|
||||
hasDateTimeMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &PublishedProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -179,7 +180,7 @@ func (this PublishedProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsDateTime afterwards will return
|
||||
|
|
|
@ -10,7 +10,7 @@ import (
|
|||
// RadiusProperty is the functional property "radius". It is permitted to be a
|
||||
// single default-valued value type.
|
||||
type RadiusProperty struct {
|
||||
floatMember float32
|
||||
floatMember float64
|
||||
hasFloatMember bool
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
|
@ -33,7 +33,8 @@ func DeserializeRadiusProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &RadiusProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeRadiusProperty(m map[string]interface{}, aliasMap map[string]str
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := float.DeserializeFloat(i); err != nil {
|
||||
if v, err := float.DeserializeFloat(i); err == nil {
|
||||
this := &RadiusProperty{
|
||||
alias: alias,
|
||||
floatMember: v,
|
||||
hasFloatMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &RadiusProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -76,7 +77,7 @@ func (this *RadiusProperty) Clear() {
|
|||
|
||||
// Get returns the value of this property. When IsFloat returns false, Get will
|
||||
// return any arbitrary value.
|
||||
func (this RadiusProperty) Get() float32 {
|
||||
func (this RadiusProperty) Get() float64 {
|
||||
return this.floatMember
|
||||
}
|
||||
|
||||
|
@ -178,12 +179,12 @@ func (this RadiusProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsFloat afterwards will return
|
||||
// true.
|
||||
func (this *RadiusProperty) Set(v float32) {
|
||||
func (this *RadiusProperty) Set(v float64) {
|
||||
this.Clear()
|
||||
this.floatMember = v
|
||||
this.hasFloatMember = true
|
||||
|
|
|
@ -34,7 +34,8 @@ func deserializeRelPropertyIterator(i interface{}, aliasMap map[string]string) (
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &RelPropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func deserializeRelPropertyIterator(i interface{}, aliasMap map[string]string) (
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := rfc5988.DeserializeRfc5988(i); err != nil {
|
||||
if v, err := rfc5988.DeserializeRfc5988(i); err == nil {
|
||||
this := &RelPropertyIterator{
|
||||
alias: alias,
|
||||
hasRfc5988Member: true,
|
||||
rfc5988Member: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &RelPropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -204,7 +205,7 @@ func (this RelPropertyIterator) serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// RelProperty is the non-functional property "rel". It is permitted to have one
|
||||
|
@ -221,7 +222,6 @@ func DeserializeRelProperty(m map[string]interface{}, aliasMap map[string]string
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *RelProperty
|
||||
propName := "rel"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "rel")
|
||||
|
@ -251,8 +251,9 @@ func DeserializeRelProperty(m map[string]interface{}, aliasMap map[string]string
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewRelProperty creates a new rel property.
|
||||
|
@ -444,6 +445,10 @@ func (this RelProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -7,10 +7,214 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -11,6 +11,18 @@ type privateManager interface {
|
|||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
|
@ -6,13 +6,19 @@ import (
|
|||
"net/url"
|
||||
)
|
||||
|
||||
// RepliesProperty is the functional property "replies". It is permitted to be a
|
||||
// single nilable value type.
|
||||
// RepliesProperty is the functional property "replies". It is permitted to be one
|
||||
// of multiple value types. At most, one type of value can be present, or none
|
||||
// at all. Setting a value will clear the other types of values so that only
|
||||
// one of the 'Is' methods will return true. It is possible to clear all
|
||||
// values, so that this property is empty.
|
||||
type RepliesProperty struct {
|
||||
CollectionMember vocab.CollectionInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
CollectionMember vocab.CollectionInterface
|
||||
CollectionPageMember vocab.CollectionPageInterface
|
||||
OrderedCollectionMember vocab.OrderedCollectionInterface
|
||||
OrderedCollectionPageMember vocab.OrderedCollectionPageInterface
|
||||
unknown []byte
|
||||
iri *url.URL
|
||||
alias string
|
||||
}
|
||||
|
||||
// DeserializeRepliesProperty creates a "replies" property from an interface
|
||||
|
@ -31,7 +37,8 @@ func DeserializeRepliesProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &RepliesProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -40,17 +47,35 @@ func DeserializeRepliesProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
}
|
||||
}
|
||||
if m, ok := i.(map[string]interface{}); ok {
|
||||
if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err != nil {
|
||||
if v, err := mgr.DeserializeCollectionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &RepliesProperty{
|
||||
CollectionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &RepliesProperty{
|
||||
CollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &RepliesProperty{
|
||||
OrderedCollectionMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := mgr.DeserializeOrderedCollectionPageActivityStreams()(m, aliasMap); err == nil {
|
||||
this := &RepliesProperty{
|
||||
OrderedCollectionPageMember: v,
|
||||
alias: alias,
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &RepliesProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -65,41 +90,92 @@ func NewRepliesProperty() *RepliesProperty {
|
|||
return &RepliesProperty{alias: ""}
|
||||
}
|
||||
|
||||
// Clear ensures no value of this property is set. Calling IsCollection afterwards
|
||||
// will return false.
|
||||
// Clear ensures no value of this property is set. Calling HasAny or any of the
|
||||
// 'Is' methods afterwards will return false.
|
||||
func (this *RepliesProperty) Clear() {
|
||||
this.CollectionMember = nil
|
||||
this.CollectionPageMember = nil
|
||||
this.OrderedCollectionMember = nil
|
||||
this.OrderedCollectionPageMember = nil
|
||||
this.unknown = nil
|
||||
this.iri = nil
|
||||
this.CollectionMember = nil
|
||||
}
|
||||
|
||||
// Get returns the value of this property. When IsCollection returns false, Get
|
||||
// will return any arbitrary value.
|
||||
func (this RepliesProperty) Get() vocab.CollectionInterface {
|
||||
// GetCollection returns the value of this property. When IsCollection returns
|
||||
// false, GetCollection will return an arbitrary value.
|
||||
func (this RepliesProperty) GetCollection() vocab.CollectionInterface {
|
||||
return this.CollectionMember
|
||||
}
|
||||
|
||||
// GetCollectionPage returns the value of this property. When IsCollectionPage
|
||||
// returns false, GetCollectionPage will return an arbitrary value.
|
||||
func (this RepliesProperty) GetCollectionPage() vocab.CollectionPageInterface {
|
||||
return this.CollectionPageMember
|
||||
}
|
||||
|
||||
// GetIRI returns the IRI of this property. When IsIRI returns false, GetIRI will
|
||||
// return any arbitrary value.
|
||||
// return an arbitrary value.
|
||||
func (this RepliesProperty) GetIRI() *url.URL {
|
||||
return this.iri
|
||||
}
|
||||
|
||||
// HasAny returns true if the value or IRI is set.
|
||||
func (this RepliesProperty) HasAny() bool {
|
||||
return this.IsCollection() || this.iri != nil
|
||||
// GetOrderedCollection returns the value of this property. When
|
||||
// IsOrderedCollection returns false, GetOrderedCollection will return an
|
||||
// arbitrary value.
|
||||
func (this RepliesProperty) GetOrderedCollection() vocab.OrderedCollectionInterface {
|
||||
return this.OrderedCollectionMember
|
||||
}
|
||||
|
||||
// IsCollection returns true if this property is set and not an IRI.
|
||||
// GetOrderedCollectionPage returns the value of this property. When
|
||||
// IsOrderedCollectionPage returns false, GetOrderedCollectionPage will return
|
||||
// an arbitrary value.
|
||||
func (this RepliesProperty) GetOrderedCollectionPage() vocab.OrderedCollectionPageInterface {
|
||||
return this.OrderedCollectionPageMember
|
||||
}
|
||||
|
||||
// HasAny returns true if any of the different values is set.
|
||||
func (this RepliesProperty) HasAny() bool {
|
||||
return this.IsCollection() ||
|
||||
this.IsCollectionPage() ||
|
||||
this.IsOrderedCollection() ||
|
||||
this.IsOrderedCollectionPage() ||
|
||||
this.iri != nil
|
||||
}
|
||||
|
||||
// IsCollection returns true if this property has a type of "Collection". When
|
||||
// true, use the GetCollection and SetCollection methods to access and set
|
||||
// this property.
|
||||
func (this RepliesProperty) IsCollection() bool {
|
||||
return this.CollectionMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI.
|
||||
// IsCollectionPage returns true if this property has a type of "CollectionPage".
|
||||
// When true, use the GetCollectionPage and SetCollectionPage methods to
|
||||
// access and set this property.
|
||||
func (this RepliesProperty) IsCollectionPage() bool {
|
||||
return this.CollectionPageMember != nil
|
||||
}
|
||||
|
||||
// IsIRI returns true if this property is an IRI. When true, use GetIRI and SetIRI
|
||||
// to access and set this property
|
||||
func (this RepliesProperty) IsIRI() bool {
|
||||
return this.iri != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollection returns true if this property has a type of
|
||||
// "OrderedCollection". When true, use the GetOrderedCollection and
|
||||
// SetOrderedCollection methods to access and set this property.
|
||||
func (this RepliesProperty) IsOrderedCollection() bool {
|
||||
return this.OrderedCollectionMember != nil
|
||||
}
|
||||
|
||||
// IsOrderedCollectionPage returns true if this property has a type of
|
||||
// "OrderedCollectionPage". When true, use the GetOrderedCollectionPage and
|
||||
// SetOrderedCollectionPage methods to access and set this property.
|
||||
func (this RepliesProperty) IsOrderedCollectionPage() bool {
|
||||
return this.OrderedCollectionPageMember != nil
|
||||
}
|
||||
|
||||
// JSONLDContext returns the JSONLD URIs required in the context string for this
|
||||
// property and the specific values that are set. The value in the map is the
|
||||
// alias used to import the property's value or values.
|
||||
|
@ -107,7 +183,13 @@ func (this RepliesProperty) JSONLDContext() map[string]string {
|
|||
m := map[string]string{"https://www.w3.org/TR/activitystreams-vocabulary": this.alias}
|
||||
var child map[string]string
|
||||
if this.IsCollection() {
|
||||
child = this.Get().JSONLDContext()
|
||||
child = this.GetCollection().JSONLDContext()
|
||||
} else if this.IsCollectionPage() {
|
||||
child = this.GetCollectionPage().JSONLDContext()
|
||||
} else if this.IsOrderedCollection() {
|
||||
child = this.GetOrderedCollection().JSONLDContext()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
child = this.GetOrderedCollectionPage().JSONLDContext()
|
||||
}
|
||||
/*
|
||||
Since the literal maps in this function are determined at
|
||||
|
@ -127,6 +209,15 @@ func (this RepliesProperty) KindIndex() int {
|
|||
if this.IsCollection() {
|
||||
return 0
|
||||
}
|
||||
if this.IsCollectionPage() {
|
||||
return 1
|
||||
}
|
||||
if this.IsOrderedCollection() {
|
||||
return 2
|
||||
}
|
||||
if this.IsOrderedCollectionPage() {
|
||||
return 3
|
||||
}
|
||||
if this.IsIRI() {
|
||||
return -2
|
||||
}
|
||||
|
@ -138,30 +229,24 @@ func (this RepliesProperty) KindIndex() int {
|
|||
// help alternative implementations to go-fed to be able to normalize
|
||||
// nonfunctional properties.
|
||||
func (this RepliesProperty) LessThan(o vocab.RepliesPropertyInterface) bool {
|
||||
// LessThan comparison for if either or both are IRIs.
|
||||
if this.IsIRI() && o.IsIRI() {
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
idx1 := this.KindIndex()
|
||||
idx2 := o.KindIndex()
|
||||
if idx1 < idx2 {
|
||||
return true
|
||||
} else if idx1 > idx2 {
|
||||
return false
|
||||
} else if this.IsCollection() {
|
||||
return this.GetCollection().LessThan(o.GetCollection())
|
||||
} else if this.IsCollectionPage() {
|
||||
return this.GetCollectionPage().LessThan(o.GetCollectionPage())
|
||||
} else if this.IsOrderedCollection() {
|
||||
return this.GetOrderedCollection().LessThan(o.GetOrderedCollection())
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().LessThan(o.GetOrderedCollectionPage())
|
||||
} else if this.IsIRI() {
|
||||
// IRIs are always less than other values, none, or unknowns
|
||||
return true
|
||||
} else if o.IsIRI() {
|
||||
// This other, none, or unknown value is always greater than IRIs
|
||||
return false
|
||||
}
|
||||
// LessThan comparison for the single value or unknown value.
|
||||
if !this.IsCollection() && !o.IsCollection() {
|
||||
// Both are unknowns.
|
||||
return false
|
||||
} else if this.IsCollection() && !o.IsCollection() {
|
||||
// Values are always greater than unknown values.
|
||||
return false
|
||||
} else if !this.IsCollection() && o.IsCollection() {
|
||||
// Unknowns are always less than known values.
|
||||
return true
|
||||
} else {
|
||||
// Actual comparison.
|
||||
return this.Get().LessThan(o.Get())
|
||||
return this.iri.String() < o.GetIRI().String()
|
||||
}
|
||||
return false
|
||||
}
|
||||
|
||||
// Name returns the name of this property: "replies".
|
||||
|
@ -175,23 +260,49 @@ func (this RepliesProperty) Name() string {
|
|||
// properties. It is exposed for alternatives to go-fed implementations to use.
|
||||
func (this RepliesProperty) Serialize() (interface{}, error) {
|
||||
if this.IsCollection() {
|
||||
return this.Get().Serialize()
|
||||
return this.GetCollection().Serialize()
|
||||
} else if this.IsCollectionPage() {
|
||||
return this.GetCollectionPage().Serialize()
|
||||
} else if this.IsOrderedCollection() {
|
||||
return this.GetOrderedCollection().Serialize()
|
||||
} else if this.IsOrderedCollectionPage() {
|
||||
return this.GetOrderedCollectionPage().Serialize()
|
||||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsCollection afterwards will
|
||||
// return true.
|
||||
func (this *RepliesProperty) Set(v vocab.CollectionInterface) {
|
||||
// SetCollection sets the value of this property. Calling IsCollection afterwards
|
||||
// returns true.
|
||||
func (this *RepliesProperty) SetCollection(v vocab.CollectionInterface) {
|
||||
this.Clear()
|
||||
this.CollectionMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards will return
|
||||
// true.
|
||||
// SetCollectionPage sets the value of this property. Calling IsCollectionPage
|
||||
// afterwards returns true.
|
||||
func (this *RepliesProperty) SetCollectionPage(v vocab.CollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.CollectionPageMember = v
|
||||
}
|
||||
|
||||
// SetIRI sets the value of this property. Calling IsIRI afterwards returns true.
|
||||
func (this *RepliesProperty) SetIRI(v *url.URL) {
|
||||
this.Clear()
|
||||
this.iri = v
|
||||
}
|
||||
|
||||
// SetOrderedCollection sets the value of this property. Calling
|
||||
// IsOrderedCollection afterwards returns true.
|
||||
func (this *RepliesProperty) SetOrderedCollection(v vocab.OrderedCollectionInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionMember = v
|
||||
}
|
||||
|
||||
// SetOrderedCollectionPage sets the value of this property. Calling
|
||||
// IsOrderedCollectionPage afterwards returns true.
|
||||
func (this *RepliesProperty) SetOrderedCollectionPage(v vocab.OrderedCollectionPageInterface) {
|
||||
this.Clear()
|
||||
this.OrderedCollectionPageMember = v
|
||||
}
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,7 +33,8 @@ func DeserializeStartIndexProperty(m map[string]interface{}, aliasMap map[string
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &StartIndexProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -41,17 +42,17 @@ func DeserializeStartIndexProperty(m map[string]interface{}, aliasMap map[string
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err != nil {
|
||||
if v, err := nonnegativeinteger.DeserializeNonNegativeInteger(i); err == nil {
|
||||
this := &StartIndexProperty{
|
||||
alias: alias,
|
||||
hasNonNegativeIntegerMember: true,
|
||||
nonNegativeIntegerMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &StartIndexProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -178,7 +179,7 @@ func (this StartIndexProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsNonNegativeInteger afterwards
|
||||
|
|
|
@ -34,7 +34,8 @@ func DeserializeStartTimeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &StartTimeProperty{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -42,17 +43,17 @@ func DeserializeStartTimeProperty(m map[string]interface{}, aliasMap map[string]
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := datetime.DeserializeDateTime(i); err != nil {
|
||||
if v, err := datetime.DeserializeDateTime(i); err == nil {
|
||||
this := &StartTimeProperty{
|
||||
alias: alias,
|
||||
dateTimeMember: v,
|
||||
hasDateTimeMember: true,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &StartTimeProperty{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
} else {
|
||||
|
@ -179,7 +180,7 @@ func (this StartTimeProperty) Serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// Set sets the value of this property. Calling IsDateTime afterwards will return
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -40,7 +40,8 @@ func deserializeSummaryPropertyIterator(i interface{}, aliasMap map[string]strin
|
|||
if s, ok := i.(string); ok {
|
||||
u, err := url.Parse(s)
|
||||
// If error exists, don't error out -- skip this and treat as unknown string ([]byte) at worst
|
||||
if err == nil {
|
||||
// Also, if no scheme exists, don't treat it as a URL -- net/url is greedy
|
||||
if err == nil && len(u.Scheme) > 0 {
|
||||
this := &SummaryPropertyIterator{
|
||||
alias: alias,
|
||||
iri: u,
|
||||
|
@ -48,23 +49,23 @@ func deserializeSummaryPropertyIterator(i interface{}, aliasMap map[string]strin
|
|||
return this, nil
|
||||
}
|
||||
}
|
||||
if v, err := string1.DeserializeString(i); err != nil {
|
||||
if v, err := string1.DeserializeString(i); err == nil {
|
||||
this := &SummaryPropertyIterator{
|
||||
alias: alias,
|
||||
hasStringMember: true,
|
||||
stringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, err := langstring.DeserializeLangString(i); err != nil {
|
||||
} else if v, err := langstring.DeserializeLangString(i); err == nil {
|
||||
this := &SummaryPropertyIterator{
|
||||
alias: alias,
|
||||
langStringMember: v,
|
||||
}
|
||||
return this, nil
|
||||
} else if v, ok := i.([]byte); ok {
|
||||
} else if str, ok := i.(string); ok {
|
||||
this := &SummaryPropertyIterator{
|
||||
alias: alias,
|
||||
unknown: v,
|
||||
unknown: []byte(str),
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
|
@ -290,7 +291,7 @@ func (this SummaryPropertyIterator) serialize() (interface{}, error) {
|
|||
} else if this.IsIRI() {
|
||||
return this.iri.String(), nil
|
||||
}
|
||||
return this.unknown, nil
|
||||
return string(this.unknown), nil
|
||||
}
|
||||
|
||||
// SummaryProperty is the non-functional property "summary". It is permitted to
|
||||
|
@ -307,7 +308,6 @@ func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
if a, ok := aliasMap["https://www.w3.org/TR/activitystreams-vocabulary"]; ok {
|
||||
alias = a
|
||||
}
|
||||
var this *SummaryProperty
|
||||
propName := "summary"
|
||||
if len(alias) > 0 {
|
||||
propName = fmt.Sprintf("%s:%s", alias, "summary")
|
||||
|
@ -337,8 +337,9 @@ func DeserializeSummaryProperty(m map[string]interface{}, aliasMap map[string]st
|
|||
ele.parent = this
|
||||
ele.myIdx = idx
|
||||
}
|
||||
return this, nil
|
||||
}
|
||||
return this, nil
|
||||
return nil, nil
|
||||
}
|
||||
|
||||
// NewSummaryProperty creates a new summary property.
|
||||
|
@ -560,6 +561,10 @@ func (this SummaryProperty) Serialize() (interface{}, error) {
|
|||
s = append(s, b)
|
||||
}
|
||||
}
|
||||
// Shortcut: if serializing one value, don't return an array -- pretty sure other Fediverse software would choke on a "type" value with array, for example.
|
||||
if len(s) == 1 {
|
||||
return s[0], nil
|
||||
}
|
||||
return s, nil
|
||||
}
|
||||
|
||||
|
|
|
@ -7,14 +7,222 @@ var mgr privateManager
|
|||
// privateManager abstracts the code-generated manager that provides access to
|
||||
// concrete implementations.
|
||||
type privateManager interface {
|
||||
// DeserializeAcceptActivityStreams returns the deserialization method for
|
||||
// the "AcceptInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AcceptInterface, error)
|
||||
// DeserializeActivityActivityStreams returns the deserialization method
|
||||
// for the "ActivityInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ActivityInterface, error)
|
||||
// DeserializeAddActivityStreams returns the deserialization method for
|
||||
// the "AddInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAddActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AddInterface, error)
|
||||
// DeserializeAnnounceActivityStreams returns the deserialization method
|
||||
// for the "AnnounceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeAnnounceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AnnounceInterface, error)
|
||||
// DeserializeApplicationActivityStreams returns the deserialization
|
||||
// method for the "ApplicationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeApplicationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ApplicationInterface, error)
|
||||
// DeserializeArriveActivityStreams returns the deserialization method for
|
||||
// the "ArriveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeArriveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArriveInterface, error)
|
||||
// DeserializeArticleActivityStreams returns the deserialization method
|
||||
// for the "ArticleInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeArticleActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ArticleInterface, error)
|
||||
// DeserializeAudioActivityStreams returns the deserialization method for
|
||||
// the "AudioInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeAudioActivityStreams() func(map[string]interface{}, map[string]string) (vocab.AudioInterface, error)
|
||||
// DeserializeBlockActivityStreams returns the deserialization method for
|
||||
// the "BlockInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeBlockActivityStreams() func(map[string]interface{}, map[string]string) (vocab.BlockInterface, error)
|
||||
// DeserializeCollectionActivityStreams returns the deserialization method
|
||||
// for the "CollectionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionInterface, error)
|
||||
// DeserializeCollectionPageActivityStreams returns the deserialization
|
||||
// method for the "CollectionPageInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CollectionPageInterface, error)
|
||||
// DeserializeCreateActivityStreams returns the deserialization method for
|
||||
// the "CreateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeCreateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.CreateInterface, error)
|
||||
// DeserializeDeleteActivityStreams returns the deserialization method for
|
||||
// the "DeleteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeDeleteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DeleteInterface, error)
|
||||
// DeserializeDislikeActivityStreams returns the deserialization method
|
||||
// for the "DislikeInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDislikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DislikeInterface, error)
|
||||
// DeserializeDocumentActivityStreams returns the deserialization method
|
||||
// for the "DocumentInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeDocumentActivityStreams() func(map[string]interface{}, map[string]string) (vocab.DocumentInterface, error)
|
||||
// DeserializeEventActivityStreams returns the deserialization method for
|
||||
// the "EventInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeEventActivityStreams() func(map[string]interface{}, map[string]string) (vocab.EventInterface, error)
|
||||
// DeserializeFlagActivityStreams returns the deserialization method for
|
||||
// the "FlagInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFlagActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FlagInterface, error)
|
||||
// DeserializeFollowActivityStreams returns the deserialization method for
|
||||
// the "FollowInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeFollowActivityStreams() func(map[string]interface{}, map[string]string) (vocab.FollowInterface, error)
|
||||
// DeserializeGroupActivityStreams returns the deserialization method for
|
||||
// the "GroupInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeGroupActivityStreams() func(map[string]interface{}, map[string]string) (vocab.GroupInterface, error)
|
||||
// DeserializeIgnoreActivityStreams returns the deserialization method for
|
||||
// the "IgnoreInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeIgnoreActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IgnoreInterface, error)
|
||||
// DeserializeImageActivityStreams returns the deserialization method for
|
||||
// the "ImageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeImageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ImageInterface, error)
|
||||
// DeserializeIntransitiveActivityActivityStreams returns the
|
||||
// deserialization method for the "IntransitiveActivityInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeIntransitiveActivityActivityStreams() func(map[string]interface{}, map[string]string) (vocab.IntransitiveActivityInterface, error)
|
||||
// DeserializeInviteActivityStreams returns the deserialization method for
|
||||
// the "InviteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeInviteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.InviteInterface, error)
|
||||
// DeserializeJoinActivityStreams returns the deserialization method for
|
||||
// the "JoinInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeJoinActivityStreams() func(map[string]interface{}, map[string]string) (vocab.JoinInterface, error)
|
||||
// DeserializeLeaveActivityStreams returns the deserialization method for
|
||||
// the "LeaveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLeaveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LeaveInterface, error)
|
||||
// DeserializeLikeActivityStreams returns the deserialization method for
|
||||
// the "LikeInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLikeActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LikeInterface, error)
|
||||
// DeserializeLinkActivityStreams returns the deserialization method for
|
||||
// the "LinkInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeLinkActivityStreams() func(map[string]interface{}, map[string]string) (vocab.LinkInterface, error)
|
||||
// DeserializeListenActivityStreams returns the deserialization method for
|
||||
// the "ListenInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeListenActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ListenInterface, error)
|
||||
// DeserializeMentionActivityStreams returns the deserialization method
|
||||
// for the "MentionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeMentionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MentionInterface, error)
|
||||
// DeserializeMoveActivityStreams returns the deserialization method for
|
||||
// the "MoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeMoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.MoveInterface, error)
|
||||
// DeserializeNoteActivityStreams returns the deserialization method for
|
||||
// the "NoteInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeNoteActivityStreams() func(map[string]interface{}, map[string]string) (vocab.NoteInterface, error)
|
||||
// DeserializeObjectActivityStreams returns the deserialization method for
|
||||
// the "ObjectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeObjectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ObjectInterface, error)
|
||||
// DeserializeOfferActivityStreams returns the deserialization method for
|
||||
// the "OfferInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeOfferActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OfferInterface, error)
|
||||
// DeserializeOrderedCollectionActivityStreams returns the deserialization
|
||||
// method for the "OrderedCollectionInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionInterface, error)
|
||||
// DeserializeOrderedCollectionPageActivityStreams returns the
|
||||
// deserialization method for the "OrderedCollectionPageInterface"
|
||||
// non-functional property in the vocabulary "ActivityStreams"
|
||||
DeserializeOrderedCollectionPageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrderedCollectionPageInterface, error)
|
||||
// DeserializeOrganizationActivityStreams returns the deserialization
|
||||
// method for the "OrganizationInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeOrganizationActivityStreams() func(map[string]interface{}, map[string]string) (vocab.OrganizationInterface, error)
|
||||
// DeserializePageActivityStreams returns the deserialization method for
|
||||
// the "PageInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePageActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PageInterface, error)
|
||||
// DeserializePersonActivityStreams returns the deserialization method for
|
||||
// the "PersonInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePersonActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PersonInterface, error)
|
||||
// DeserializePlaceActivityStreams returns the deserialization method for
|
||||
// the "PlaceInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializePlaceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.PlaceInterface, error)
|
||||
// DeserializeProfileActivityStreams returns the deserialization method
|
||||
// for the "ProfileInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeProfileActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ProfileInterface, error)
|
||||
// DeserializeQuestionActivityStreams returns the deserialization method
|
||||
// for the "QuestionInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeQuestionActivityStreams() func(map[string]interface{}, map[string]string) (vocab.QuestionInterface, error)
|
||||
// DeserializeReadActivityStreams returns the deserialization method for
|
||||
// the "ReadInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeReadActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ReadInterface, error)
|
||||
// DeserializeRejectActivityStreams returns the deserialization method for
|
||||
// the "RejectInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RejectInterface, error)
|
||||
// DeserializeRelationshipActivityStreams returns the deserialization
|
||||
// method for the "RelationshipInterface" non-functional property in
|
||||
// the vocabulary "ActivityStreams"
|
||||
DeserializeRelationshipActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RelationshipInterface, error)
|
||||
// DeserializeRemoveActivityStreams returns the deserialization method for
|
||||
// the "RemoveInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeRemoveActivityStreams() func(map[string]interface{}, map[string]string) (vocab.RemoveInterface, error)
|
||||
// DeserializeServiceActivityStreams returns the deserialization method
|
||||
// for the "ServiceInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeServiceActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ServiceInterface, error)
|
||||
// DeserializeTentativeAcceptActivityStreams returns the deserialization
|
||||
// method for the "TentativeAcceptInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeAcceptActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeAcceptInterface, error)
|
||||
// DeserializeTentativeRejectActivityStreams returns the deserialization
|
||||
// method for the "TentativeRejectInterface" non-functional property
|
||||
// in the vocabulary "ActivityStreams"
|
||||
DeserializeTentativeRejectActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TentativeRejectInterface, error)
|
||||
// DeserializeTombstoneActivityStreams returns the deserialization method
|
||||
// for the "TombstoneInterface" non-functional property in the
|
||||
// vocabulary "ActivityStreams"
|
||||
DeserializeTombstoneActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TombstoneInterface, error)
|
||||
// DeserializeTravelActivityStreams returns the deserialization method for
|
||||
// the "TravelInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeTravelActivityStreams() func(map[string]interface{}, map[string]string) (vocab.TravelInterface, error)
|
||||
// DeserializeUndoActivityStreams returns the deserialization method for
|
||||
// the "UndoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUndoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UndoInterface, error)
|
||||
// DeserializeUpdateActivityStreams returns the deserialization method for
|
||||
// the "UpdateInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeUpdateActivityStreams() func(map[string]interface{}, map[string]string) (vocab.UpdateInterface, error)
|
||||
// DeserializeVideoActivityStreams returns the deserialization method for
|
||||
// the "VideoInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeVideoActivityStreams() func(map[string]interface{}, map[string]string) (vocab.VideoInterface, error)
|
||||
// DeserializeViewActivityStreams returns the deserialization method for
|
||||
// the "ViewInterface" non-functional property in the vocabulary
|
||||
// "ActivityStreams"
|
||||
DeserializeViewActivityStreams() func(map[string]interface{}, map[string]string) (vocab.ViewInterface, error)
|
||||
}
|
||||
|
||||
// SetManager sets the manager package-global variable. For internal use only, do
|
||||
|
|
File diff suppressed because it is too large
Load diff
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue